dfflegalize: Add special support for const-D latches.
authorMarcelina Kościelnicka <mwk@0x04.net>
Mon, 6 Jul 2020 20:52:05 +0000 (22:52 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Thu, 9 Jul 2020 16:11:32 +0000 (18:11 +0200)
commite9c2c1b7175604acd4285800c441c4bd1d676f9d
treedf38b8d83094977f6adff764cfd166210da639ad
parent000fd08198487cd1d36e65e4470f4b0269c23a2b
dfflegalize: Add special support for const-D latches.

Those can be created by `opt_dff` when optimizing `$adff` with const
clock, or with D == Q.  Make dfflegalize do the opposite transform
when such dlatches would be otherwise unimplementable.
passes/techmap/dfflegalize.cc
tests/techmap/dfflegalize_dlatch_const.ys [new file with mode: 0644]