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
Hide 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 =
items
=
[
MIPackageItem
$
Decl
decl
,
always_comb
$
Asgn
AsgnOpEq
Nothing
lhs
tmpExpr
]
lhs
=
case
exprToLHS
expr
of
Just
l
->
l
Nothing
->
error
$
"bad non-lhs, non-net expr "
++
show
expr
++
" connected to output port "
++
portName
++
" of "
++
instanceName
Just
lhs
=
exprToLHS
expr
maybeModulePorts
=
Map
.
lookup
moduleName
ports
fixModuleItem
other
=
other
...
...
src/Convert/MultiplePacked.hs
View file @
fd64d4e3
...
...
@@ -144,10 +144,8 @@ traverseLHSM = traverseNestedLHSsM traverseLHSSingleM
traverseLHSSingleM
lhs
=
do
let
expr
=
lhsToExpr
lhs
expr'
<-
convertExprM
expr
case
exprToLHS
expr'
of
Just
lhs'
->
return
lhs'
Nothing
->
error
$
"multi-packed conversion created non-LHS from "
++
(
show
expr
)
++
" to "
++
(
show
expr'
)
let
Just
lhs'
=
exprToLHS
expr'
return
lhs'
convertExprM
::
Expr
->
Scoper
TypeInfo
Expr
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