mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-18 02:16:41 +00:00
Small opt
This commit is contained in:
parent
4a995c5d80
commit
f8f0ffe786
1 changed files with 1 additions and 2 deletions
|
@ -749,7 +749,6 @@ void AigerReader::post_process()
|
||||||
log_assert(box_module);
|
log_assert(box_module);
|
||||||
|
|
||||||
RTLIL::Module* flop_module = nullptr;
|
RTLIL::Module* flop_module = nullptr;
|
||||||
const RTLIL::IdString flop_past_q = RTLIL::escape_id("\\$pastQ");
|
|
||||||
if (seen_boxes.insert(cell->type).second) {
|
if (seen_boxes.insert(cell->type).second) {
|
||||||
auto it = box_module->attributes.find("\\abc_flop");
|
auto it = box_module->attributes.find("\\abc_flop");
|
||||||
if (it != box_module->attributes.end()) {
|
if (it != box_module->attributes.end()) {
|
||||||
|
@ -830,7 +829,7 @@ void AigerReader::post_process()
|
||||||
rhs.append(wire);
|
rhs.append(wire);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!flop_module || port_name != flop_past_q)
|
if (!flop_module || port_name != "\\$pastQ")
|
||||||
cell->setPort(port_name, rhs);
|
cell->setPort(port_name, rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue