mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
WIP
This commit is contained in:
parent
dab9a386cc
commit
c3457e2e5c
35 changed files with 204 additions and 63 deletions
|
|
@ -178,6 +178,13 @@ void Patch::patch(Cell* old_cell, IdString old_port, SigSpec new_sig) {
|
|||
for (auto& wire: wires_)
|
||||
commit_wire(std::move(wire));
|
||||
|
||||
// Flush pending sigmap updates (from the mod->connect above) into the
|
||||
// fanout index so gc() sees the updated fanout for cells whose outputs
|
||||
// were the patched wires. Without this, downstream consumers like the
|
||||
// $output_port / $public sentinels still appear in the OLD wire's fanout
|
||||
// instead of the new representative.
|
||||
mod->sigNormalize();
|
||||
|
||||
gc(old_cell);
|
||||
cells_.clear();
|
||||
wires_.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue