mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix verilator_gantt for hierarchically Verilated models (#5700)
This commit is contained in:
+4
-2
@@ -123,8 +123,10 @@ AstCFunc* V3Order::order(AstNetlist* netlistp, //
|
||||
}();
|
||||
|
||||
if (v3Global.opt.profExec()) {
|
||||
funcp->addStmtsp(new AstCStmt{flp, "VL_EXEC_TRACE_ADD_RECORD(vlSymsp).sectionPush(\"func "
|
||||
+ tag + "\");\n"});
|
||||
const string name
|
||||
= (v3Global.opt.hierChild() ? (v3Global.opt.topModule() + " ") : "") + "func " + tag;
|
||||
funcp->addStmtsp(new AstCStmt{flp, "VL_EXEC_TRACE_ADD_RECORD(vlSymsp).sectionPush(\""
|
||||
+ name + "\");\n"});
|
||||
}
|
||||
|
||||
// Build the OrderGraph
|
||||
|
||||
Reference in New Issue
Block a user