mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 22:33:41 +00:00
Reduce submod verbosity
This commit is contained in:
parent
09b00804be
commit
b545fc4728
1 changed files with 6 additions and 5 deletions
|
@ -88,6 +88,7 @@ struct SubmodWorker
|
||||||
void handle_submodule(SubModule &submod)
|
void handle_submodule(SubModule &submod)
|
||||||
{
|
{
|
||||||
log("Creating submodule %s (%s) of module %s.\n", submod.name.c_str(), submod.full_name.c_str(), module->name.c_str());
|
log("Creating submodule %s (%s) of module %s.\n", submod.name.c_str(), submod.full_name.c_str(), module->name.c_str());
|
||||||
|
log_flush();
|
||||||
|
|
||||||
wire_flags.clear();
|
wire_flags.clear();
|
||||||
for (RTLIL::Cell *cell : submod.cells) {
|
for (RTLIL::Cell *cell : submod.cells) {
|
||||||
|
@ -192,13 +193,13 @@ struct SubmodWorker
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_wire->port_input && new_wire->port_output)
|
if (new_wire->port_input && new_wire->port_output)
|
||||||
log(" signal %s: inout %s\n", wire->name.c_str(), new_wire->name.c_str());
|
log_debug(" signal %s: inout %s\n", wire->name.c_str(), new_wire->name.c_str());
|
||||||
else if (new_wire->port_input)
|
else if (new_wire->port_input)
|
||||||
log(" signal %s: input %s\n", wire->name.c_str(), new_wire->name.c_str());
|
log_debug(" signal %s: input %s\n", wire->name.c_str(), new_wire->name.c_str());
|
||||||
else if (new_wire->port_output)
|
else if (new_wire->port_output)
|
||||||
log(" signal %s: output %s\n", wire->name.c_str(), new_wire->name.c_str());
|
log_debug(" signal %s: output %s\n", wire->name.c_str(), new_wire->name.c_str());
|
||||||
else
|
else
|
||||||
log(" signal %s: internal\n", wire->name.c_str());
|
log_debug(" signal %s: internal\n", wire->name.c_str());
|
||||||
|
|
||||||
flags.new_wire = new_wire;
|
flags.new_wire = new_wire;
|
||||||
}
|
}
|
||||||
|
@ -214,7 +215,7 @@ struct SubmodWorker
|
||||||
log_assert(wire_flags.count(bit.wire) > 0);
|
log_assert(wire_flags.count(bit.wire) > 0);
|
||||||
bit.wire = wire_flags.at(bit.wire).new_wire;
|
bit.wire = wire_flags.at(bit.wire).new_wire;
|
||||||
}
|
}
|
||||||
log(" cell %s (%s)\n", new_cell->name.c_str(), new_cell->type.c_str());
|
log_debug(" cell %s (%s)\n", new_cell->name.c_str(), new_cell->type.c_str());
|
||||||
if (!copy_mode)
|
if (!copy_mode)
|
||||||
module->remove(cell);
|
module->remove(cell);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue