hdl.ir: rework named port handling for Instances.
authorwhitequark <cz@m-labs.hk>
Mon, 22 Apr 2019 07:46:47 +0000 (07:46 +0000)
committerwhitequark <cz@m-labs.hk>
Mon, 22 Apr 2019 07:46:47 +0000 (07:46 +0000)
commitb36645d9be72c2c1ef4f40002395d49ddcf62c7b
treeefec50ba5c306860d39b42e3e2552b6247ad930b
parentd20b5de62a3762c842a530a2dda0e6325604573e
hdl.ir: rework named port handling for Instances.

The main purpose of this rework is cleanup, to avoid specifying
the direction of input ports in an implicit, ad-hoc way using
the named ports and ports dictionaries.

While working on this I realized that output ports can be connected
to anything that is valid on LHS, so this is now supported too.
nmigen/back/rtlil.py
nmigen/hdl/ir.py
nmigen/hdl/xfrm.py
nmigen/test/test_hdl_ir.py