Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
fd64d4e3
Commit
fd64d4e3
authored
Oct 09, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove two unreachable LHS conversion errors
parent
d1d81eb8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
src/Convert/Logic.hs
+1
-6
src/Convert/MultiplePacked.hs
+2
-4
No files found.
src/Convert/Logic.hs
View file @
fd64d4e3
...
@@ -141,12 +141,7 @@ traverseModuleItem ports scopes =
...
@@ -141,12 +141,7 @@ traverseModuleItem ports scopes =
items
=
items
=
[
MIPackageItem
$
Decl
decl
[
MIPackageItem
$
Decl
decl
,
always_comb
$
Asgn
AsgnOpEq
Nothing
lhs
tmpExpr
]
,
always_comb
$
Asgn
AsgnOpEq
Nothing
lhs
tmpExpr
]
lhs
=
case
exprToLHS
expr
of
Just
lhs
=
exprToLHS
expr
Just
l
->
l
Nothing
->
error
$
"bad non-lhs, non-net expr "
++
show
expr
++
" connected to output port "
++
portName
++
" of "
++
instanceName
maybeModulePorts
=
Map
.
lookup
moduleName
ports
maybeModulePorts
=
Map
.
lookup
moduleName
ports
fixModuleItem
other
=
other
fixModuleItem
other
=
other
...
...
src/Convert/MultiplePacked.hs
View file @
fd64d4e3
...
@@ -144,10 +144,8 @@ traverseLHSM = traverseNestedLHSsM traverseLHSSingleM
...
@@ -144,10 +144,8 @@ traverseLHSM = traverseNestedLHSsM traverseLHSSingleM
traverseLHSSingleM
lhs
=
do
traverseLHSSingleM
lhs
=
do
let
expr
=
lhsToExpr
lhs
let
expr
=
lhsToExpr
lhs
expr'
<-
convertExprM
expr
expr'
<-
convertExprM
expr
case
exprToLHS
expr'
of
let
Just
lhs'
=
exprToLHS
expr'
Just
lhs'
->
return
lhs'
return
lhs'
Nothing
->
error
$
"multi-packed conversion created non-LHS from "
++
(
show
expr
)
++
" to "
++
(
show
expr'
)
convertExprM
::
Expr
->
Scoper
TypeInfo
Expr
convertExprM
::
Expr
->
Scoper
TypeInfo
Expr
convertExprM
=
embedScopes
convertExpr
convertExprM
=
embedScopes
convertExpr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment