3
0
Fork 0
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:
Emil J. Tywoniak 2026-02-17 19:52:30 +01:00
parent c75d80905a
commit b1a997aa9a
2 changed files with 10 additions and 0 deletions

View file

@ -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");