Skip to content

Commit

Permalink
sim: Bail on processes
Browse files Browse the repository at this point in the history
Instead of silently missimulating, error out when there are processes
found in the simulation hierarchy.
  • Loading branch information
povik committed Oct 5, 2023
1 parent a782b15 commit c3fd886
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions passes/sat/sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ struct SimInstance
log_error("Cannot simulate blackbox module %s (instantiated at %s).\n",
log_id(module->name), hiername().c_str());

if (module->has_processes())
log_error("Found processes in simulation hierarchy (in module %s at %s). Run 'proc' first.\n",
log_id(module), hiername().c_str());

if (parent) {
log_assert(parent->children.count(instance) == 0);
parent->children[instance] = this;
Expand Down

0 comments on commit c3fd886

Please sign in to comment.