mirror of
https://github.com/YosysHQ/yosys
synced 2026-02-21 15:57:36 +00:00
modtools: fix port_del db erase
This commit is contained in:
parent
8bbde80e02
commit
62f19cb3a9
1 changed files with 4 additions and 1 deletions
|
|
@ -94,8 +94,11 @@ struct ModIndex : public RTLIL::Monitor
|
|||
{
|
||||
for (int i = 0; i < GetSize(sig); i++) {
|
||||
RTLIL::SigBit bit = sigmap(sig[i]);
|
||||
if (bit.wire)
|
||||
if (bit.wire) {
|
||||
database[bit].ports.erase(PortInfo(cell, port, i));
|
||||
if (!database[bit].is_input && !database[bit].is_output && database[bit].ports.empty())
|
||||
database.erase(bit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue