Fix verilator_gantt for hierarchically Verilated models (#5700)

This commit is contained in:
Bartłomiej Chmiel
2024-12-23 09:10:46 -06:00
committed by GitHub
parent 530ebecfb7
commit 72a47e16c1
6 changed files with 81 additions and 18 deletions
+2 -1
View File
@@ -432,7 +432,8 @@ class EmitCModel final : public EmitCFunc {
puts(topModNameProtected + "__" + protect("_eval_settle") + "(&(vlSymsp->TOP));\n");
puts("}\n");
if (v3Global.opt.profExec()) puts("vlSymsp->__Vm_executionProfilerp->configure();\n");
if (v3Global.opt.profExec() && !v3Global.opt.hierChild())
puts("vlSymsp->__Vm_executionProfilerp->configure();\n");
puts("VL_DEBUG_IF(VL_DBG_MSGF(\"+ Eval\\n\"););\n");
puts(topModNameProtected + "__" + protect("_eval") + "(&(vlSymsp->TOP));\n");