mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Fixed handling of driver-driver conflicts in wreduce
This commit is contained in:
parent
4cec1c058d
commit
2a0f577f83
3 changed files with 42 additions and 9 deletions
|
@ -226,7 +226,7 @@ struct ModIndex : public RTLIL::Monitor
|
|||
auto_reload_module = true;
|
||||
}
|
||||
|
||||
ModIndex(RTLIL::Module *_m) : module(_m)
|
||||
ModIndex(RTLIL::Module *_m) : sigmap(_m), module(_m)
|
||||
{
|
||||
auto_reload_counter = 0;
|
||||
auto_reload_module = true;
|
||||
|
@ -274,6 +274,27 @@ struct ModIndex : public RTLIL::Monitor
|
|||
return empty_result_set;
|
||||
return info->ports;
|
||||
}
|
||||
|
||||
void dump_db()
|
||||
{
|
||||
log("--- ModIndex Dump ---\n");
|
||||
|
||||
if (auto_reload_module) {
|
||||
log("AUTO-RELOAD\n");
|
||||
reload_module();
|
||||
}
|
||||
|
||||
for (auto &it : database) {
|
||||
log("BIT %s:\n", log_signal(it.first));
|
||||
if (it.second.is_input)
|
||||
log(" PRIMARY INPUT\n");
|
||||
if (it.second.is_output)
|
||||
log(" PRIMARY OUTPUT\n");
|
||||
for (auto &port : it.second.ports)
|
||||
log(" PORT: %s.%s[%d] (%s)\n", log_id(port.cell),
|
||||
log_id(port.port), port.offset, log_id(port.cell->type));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
struct ModWalker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue