Skip to content

Commit

Permalink
Merge pull request #3986 from povik/sim-ui-fixes
Browse files Browse the repository at this point in the history
Slightly improve `sim` UI
  • Loading branch information
clairexen authored Oct 16, 2023
2 parents a2f59cf + c3fd886 commit a4951a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions passes/sat/sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,13 @@ struct SimInstance
log_assert(module);

if (module->get_blackbox_attribute(true))
log_error("Cannot simulate blackbox module %s (instanced at %s).\n",
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 Expand Up @@ -579,7 +583,7 @@ struct SimInstance
Const data = Const(State::Sx, mem.width << port.wide_log2);

if (port.clk_enable)
log_error("Memory %s.%s has clocked read ports. Run 'memory' with -nordff.\n", log_id(module), log_id(mem.memid));
log_error("Memory %s.%s has clocked read ports. Run 'memory_nordff' to transform the circuit to remove those.\n", log_id(module), log_id(mem.memid));

if (addr.is_fully_def()) {
int addr_int = addr.as_int();
Expand Down

0 comments on commit a4951a3

Please sign in to comment.