forked from github/verilator
Fix duplicate traces with $dumpfile, part of #2237.
This commit is contained in:
parent
26301a4133
commit
b6c21ad21a
@ -2397,15 +2397,6 @@ void EmitCImp::emitWrapEval(AstNodeModule* modp) {
|
|||||||
putsDecoration("// Initialize\n");
|
putsDecoration("// Initialize\n");
|
||||||
puts("if (VL_UNLIKELY(!vlSymsp->__Vm_didInit)) "
|
puts("if (VL_UNLIKELY(!vlSymsp->__Vm_didInit)) "
|
||||||
+protect("_eval_initial_loop")+"(vlSymsp);\n");
|
+protect("_eval_initial_loop")+"(vlSymsp);\n");
|
||||||
if (v3Global.opt.trace()) {
|
|
||||||
puts("#ifdef VM_TRACE\n");
|
|
||||||
putsDecoration("// Tracing\n");
|
|
||||||
// SystemC's eval loop deals with calling trace, not us
|
|
||||||
if (v3Global.needTraceDumper() && !optSystemC()) {
|
|
||||||
puts("if (VL_UNLIKELY(vlSymsp->__Vm_dumping)) _traceDump();\n");
|
|
||||||
}
|
|
||||||
puts("#endif // VM_TRACE\n");
|
|
||||||
}
|
|
||||||
if (v3Global.opt.inhibitSim()) {
|
if (v3Global.opt.inhibitSim()) {
|
||||||
puts("if (VL_UNLIKELY(__Vm_inhibitSim)) return;\n");
|
puts("if (VL_UNLIKELY(__Vm_inhibitSim)) return;\n");
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
$date
|
$date
|
||||||
Sat Mar 7 18:39:05 2020
|
Mon Apr 6 08:10:23 2020
|
||||||
|
|
||||||
$end
|
$end
|
||||||
$version
|
$version
|
||||||
@ -25,8 +25,6 @@ $dumpvars
|
|||||||
b00000000000000000000000000000001 "
|
b00000000000000000000000000000001 "
|
||||||
b00000000000000000000000000000000 #
|
b00000000000000000000000000000000 #
|
||||||
b00000000000000000000000000000001 $
|
b00000000000000000000000000000001 $
|
||||||
#10
|
|
||||||
1!
|
|
||||||
#15
|
#15
|
||||||
0!
|
0!
|
||||||
#20
|
#20
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
$date
|
$date
|
||||||
Sat Mar 7 18:37:58 2020
|
Mon Apr 6 08:24:52 2020
|
||||||
|
|
||||||
$end
|
$end
|
||||||
$version
|
$version
|
||||||
@ -25,8 +25,6 @@ $dumpvars
|
|||||||
b00000000000000000000000000000001 "
|
b00000000000000000000000000000001 "
|
||||||
b00000000000000000000000000000000 #
|
b00000000000000000000000000000000 #
|
||||||
b00000000000000000000000000000001 $
|
b00000000000000000000000000000001 $
|
||||||
#10
|
|
||||||
1!
|
|
||||||
#15
|
#15
|
||||||
0!
|
0!
|
||||||
#20
|
#20
|
||||||
|
Loading…
Reference in New Issue
Block a user