projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc549d
)
back.rtlil: fix Array regression in 32446831.
author
whitequark
<cz@m-labs.hk>
Mon, 1 Jul 2019 01:53:56 +0000
(
01:53
+0000)
committer
whitequark
<cz@m-labs.hk>
Mon, 1 Jul 2019 01:53:56 +0000
(
01:53
+0000)
Fixes #117.
nmigen/back/rtlil.py
patch
|
blob
|
history
diff --git
a/nmigen/back/rtlil.py
b/nmigen/back/rtlil.py
index 1fce29e27e7b0d315a0ea3a5ed5dca1f495ad124..602d1c30da73e31cd401f122a7c4b6f75a0968b0 100644
(file)
--- a/
nmigen/back/rtlil.py
+++ b/
nmigen/back/rtlil.py
@@
-658,7
+658,7
@@
class _StatementCompiler(xfrm.StatementVisitor):
tests = ["{:0{}b}".format(v, bits) for v in legalize.branches]
tests[-1] = "-" * bits
for branch, test in zip(legalize.branches, tests):
- with self.case(switch,
test
):
+ with self.case(switch,
(test,)
):
branch_value = ast.Const(branch, (bits, sign))
with self.state.expand_to(legalize.value, branch_value):
super().on_statement(stmt)