Skip to content

Commit

Permalink
test output whether all simulated modules are found
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Mar 1, 2024
1 parent da4fe3e commit 857a567
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ namespace hal
for (const Gate* g: mSimulationInput->get_gates())
{
Module* m = g->get_module();
// test all parent modules whether gates are contained in simulation
while (m)
{
auto it = containedModules.find(m);
Expand All @@ -899,6 +900,11 @@ namespace hal
m = m->get_parent_module();
}
}
for (const auto &it : containedModules)
{
if (it.second.empty())
std::cerr << it.first->get_id() << " mod simulated <" << it.first->get_name() << ">" << std::endl;
}
}

void NetlistSimulatorController::add_gates(const std::vector<Gate*>& gates)
Expand Down

0 comments on commit 857a567

Please sign in to comment.