hdl.ir: rework named port handling for Instances.
authorwhitequark <whitequark@whitequark.org>
Mon, 22 Apr 2019 07:46:47 +0000 (07:46 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 22 Apr 2019 07:46:47 +0000 (07:46 +0000)
commit585514e6ed6619cfc5bb582ff6a4c1d509154567
treeefec50ba5c306860d39b42e3e2552b6247ad930b
parentaed2062101afe14336cfca36cc22cb6f585c3795
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