fhdl.ir: explain how port enumeration works.

This commit is contained in:
whitequark 2018-12-13 03:30:39 +00:00
parent f86ec1e7ef
commit 4df5c5de65
2 changed files with 24 additions and 12 deletions

View file

@ -503,7 +503,11 @@ def convert_fragment(builder, fragment, name, clock_domains):
def convert(fragment, ports=[], clock_domains={}):
fragment, ins, outs = fragment.prepare(ports, clock_domains)
fragment = xfrm.ResetInserter({
cd.name: cd.reset for cd in clock_domains.values() if cd.reset is not None
})(fragment)
ins, outs = fragment._propagate_ports(ports, clock_domains)
builder = _Builder()
convert_fragment(builder, fragment, "top", clock_domains)