mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
dfflegalize: Prefer mapping dff to sdff before adff
This ensures that, when both sync and async FFs are available and abc9 is involved, the sync FFs will be used, and will thus remain available for sequential synthesis.
This commit is contained in:
parent
7afcb72c98
commit
f3f55ae7c2
|
@ -364,7 +364,7 @@ flip_dqi:
|
|||
// Some DFF is supported with this init val. Just pick a type.
|
||||
if (ff_type == FF_DFF) {
|
||||
// Try adding a set or reset pin.
|
||||
for (auto new_type: {FF_ADFF0, FF_ADFF1, FF_SDFF0, FF_SDFF1})
|
||||
for (auto new_type: {FF_SDFF0, FF_SDFF1, FF_ADFF0, FF_ADFF1})
|
||||
if (supported_cells[new_type] & initmask) {
|
||||
ff_type = new_type;
|
||||
sig_r = State::S0;
|
||||
|
|
Loading…
Reference in a new issue