back.rtlil: fix handling of certain nested arrays.
authorwhitequark <cz@m-labs.hk>
Tue, 24 Sep 2019 18:32:26 +0000 (18:32 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 24 Sep 2019 18:32:26 +0000 (18:32 +0000)
commit0d61404e1ced0e7f39a5527630b32bd703f11618
tree4a7f67314b7c9f33d1d60efd901c079bf4297cd2
parent0ecd2fa121b2b6db4e5967d2af036acb41ad4e7e
back.rtlil: fix handling of certain nested arrays.

This triggers on code like:

c1 = Signal()
c2 = Signal()
c3 = Signal()
v1 = Array([Const(1, 8), Const(2, 8)])[c1]
v2 = Array([Const(3, 8), Const(4, 8)])[c2]
v3 = Array([v1, v2])[c3]

Fixes #226.
nmigen/back/rtlil.py