mirror of
https://github.com/YosysHQ/yosys
synced 2026-03-01 19:26:55 +00:00
modtools, wreduce: check_db sanity check
This commit is contained in:
parent
c75d80905a
commit
b1a997aa9a
2 changed files with 10 additions and 0 deletions
|
|
@ -297,6 +297,13 @@ struct ModIndex : public RTLIL::Monitor
|
|||
return info->ports;
|
||||
}
|
||||
|
||||
void check_db()
|
||||
{
|
||||
for (auto &it : database) {
|
||||
log_assert(database.find(it.first) != database.end());
|
||||
}
|
||||
}
|
||||
|
||||
void dump_db()
|
||||
{
|
||||
log("--- ModIndex Dump ---\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue