opt_clean: Make the init attribute follow the FF's Q.
authorMarcelina Kościelnicka <mwk@0x04.net>
Sat, 21 Aug 2021 21:36:00 +0000 (23:36 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Sun, 22 Aug 2021 13:38:29 +0000 (15:38 +0200)
commit62d41d46397a93d1efa2b8282203d192b256d824
tree88af5c8c56f947d484faf12f55e48f7102242ff9
parent21e710eb556d14d1cdfe4a3387a1dbe3e05ca04c
opt_clean: Make the init attribute follow the FF's Q.

Previously, opt_clean would reconnect all ports (including FF Q ports)
to a "canonical" SigBit chosen by complex rules, but would leave the
init attribute on the old wire.  This change applies the same
canonicalization rules to the init attributes, ensuring that init moves
to wherever the Q port moved.

Part of another jab at #2920.
passes/opt/opt_clean.cc
tests/techmap/iopadmap.ys