mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-30 21:19:30 +00:00
opt_clean: Fix debug output when cleaning up bufnorm cells
This commit is contained in:
parent
90669ab4eb
commit
cbc1055517
1 changed files with 11 additions and 3 deletions
|
@ -635,9 +635,17 @@ void rmunused_module(RTLIL::Module *module, bool purge_mode, bool verbose, bool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (auto cell : delcells) {
|
for (auto cell : delcells) {
|
||||||
if (verbose)
|
if (verbose) {
|
||||||
log_debug(" removing buffer cell `%s': %s = %s\n", cell->name,
|
if (cell->type == ID($connect))
|
||||||
log_signal(cell->getPort(ID::Y)), log_signal(cell->getPort(ID::A)));
|
log_debug(" removing connect cell `%s': %s <-> %s\n", cell->name,
|
||||||
|
log_signal(cell->getPort(ID::A)), log_signal(cell->getPort(ID::B)));
|
||||||
|
else if (cell->type == ID($input_port))
|
||||||
|
log_debug(" removing input port marker cell `%s': %s\n", cell->name,
|
||||||
|
log_signal(cell->getPort(ID::Y)));
|
||||||
|
else
|
||||||
|
log_debug(" removing buffer cell `%s': %s = %s\n", cell->name,
|
||||||
|
log_signal(cell->getPort(ID::Y)), log_signal(cell->getPort(ID::A)));
|
||||||
|
}
|
||||||
module->remove(cell);
|
module->remove(cell);
|
||||||
}
|
}
|
||||||
if (!delcells.empty())
|
if (!delcells.empty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue