hdl.ir: accept LHS signals like slices as Instance io ports.

This is unlikely to work with anything except Slice and Cat, but
there's no especially good place to enforce it. (Maybe in Instance?)
This commit is contained in:
whitequark 2019-06-03 02:39:14 +00:00
parent b8a61edc2f
commit c6a0761b3a
2 changed files with 9 additions and 6 deletions

View file

@ -603,7 +603,7 @@ class InstanceTestCase(FHDLTestCase):
i_rst=self.rst,
o_stb=self.stb,
o_data=Cat(self.datal, self.datah),
io_pins=self.pins
io_pins=self.pins[:]
)
self.wrap = Fragment()
self.wrap.add_subfragment(self.inst)