mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2210 from YosysHQ/mwk/fix-opt_merge
opt_merge: use the master FF type list
This commit is contained in:
commit
5dbf91847a
|
@ -298,9 +298,7 @@ struct OptMergeWorker
|
||||||
module->connect(RTLIL::SigSig(it.second, other_sig));
|
module->connect(RTLIL::SigSig(it.second, other_sig));
|
||||||
assign_map.add(it.second, other_sig);
|
assign_map.add(it.second, other_sig);
|
||||||
|
|
||||||
if (it.first == ID::Q && (cell->type.begins_with("$dff") || cell->type.begins_with("$dlatch") ||
|
if (it.first == ID::Q && RTLIL::builtin_ff_cell_types().count(cell->type)) {
|
||||||
cell->type.begins_with("$_DFF") || cell->type.begins_with("$_DLATCH") || cell->type.begins_with("$_SR_") ||
|
|
||||||
cell->type.in(ID($adff), ID($sr), ID($ff), ID($_FF_)))) {
|
|
||||||
for (auto c : it.second.chunks()) {
|
for (auto c : it.second.chunks()) {
|
||||||
auto jt = c.wire->attributes.find(ID::init);
|
auto jt = c.wire->attributes.find(ID::init);
|
||||||
if (jt == c.wire->attributes.end())
|
if (jt == c.wire->attributes.end())
|
||||||
|
|
Loading…
Reference in New Issue