mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 01:16:16 +00:00
functional.cc: Reverse port iteration
This commit is contained in:
parent
3001473ae5
commit
847558547b
1 changed files with 2 additions and 2 deletions
|
@ -518,8 +518,8 @@ public:
|
||||||
if (cell->type.in(ID($assert), ID($assume), ID($live), ID($fair), ID($cover), ID($check)))
|
if (cell->type.in(ID($assert), ID($assume), ID($live), ID($fair), ID($cover), ID($check)))
|
||||||
queue.emplace_back(cell);
|
queue.emplace_back(cell);
|
||||||
}
|
}
|
||||||
for (auto port : module->ports) {
|
for (auto riter = module->ports.rbegin(); riter != module->ports.rend(); ++riter) {
|
||||||
auto *wire = module->wire(port);
|
auto *wire = module->wire(*riter);
|
||||||
if (wire && wire->port_input) {
|
if (wire && wire->port_input) {
|
||||||
factory.add_input(wire->name, ID($input), Sort(wire->width));
|
factory.add_input(wire->name, ID($input), Sort(wire->width));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue