diff --git a/bin/verilator b/bin/verilator index 901a9f0e3..3a2a81734 100755 --- a/bin/verilator +++ b/bin/verilator @@ -87,6 +87,9 @@ if ($opt_gdb) { # Generic GDB interactive run (("gdb"||$ENV{VERILATOR_GDB}) ." ".verilator_bin() + # Note, uncomment to set breakpoints before running: + # ." -ex 'break main'" + # Note, we must use double-quotes ("run ") # and not single ('run ') below. Bash swallows # escapes as you would expect in a double-quoted string. diff --git a/include/verilated.mk.in b/include/verilated.mk.in index bc7bd9019..3c70cdbae 100644 --- a/include/verilated.mk.in +++ b/include/verilated.mk.in @@ -186,14 +186,16 @@ endif debug-make:: @echo + @echo CPPFLAGS: $(CPPFLAGS) @echo VM_PREFIX: $(VM_PREFIX) + @echo VM_PARALLEL_BUILDS: $(VM_PARALLEL_BUILDS) @echo VM_CLASSES_FAST: $(VM_CLASSES_FAST) @echo VM_CLASSES_SLOW: $(VM_CLASSES_SLOW) @echo VM_SUPPORT_FAST: $(VM_SUPPORT_FAST) @echo VM_SUPPORT_SLOW: $(VM_SUPPORT_SLOW) @echo VM_GLOBAL_FAST: $(VM_GLOBAL_FAST) @echo VM_GLOBAL_SLOW: $(VM_GLOBAL_SLOW) - @echo CPPFLAGS: $(CPPFLAGS) + @echo VK_OBJS: $(VK_OBJS) @echo ###################################################################### diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index 885b34eb8..2b28c60e0 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -2562,19 +2562,19 @@ void V3EmitC::emitc() { UINFO(2,__FUNCTION__<<": "<modulesp(); nodep; nodep=VN_CAST(nodep->nextp(), NodeModule)) { - if (v3Global.opt.outputSplit()) { - { EmitCImp imp; imp.main(nodep, false, true); } - { EmitCImp imp; imp.main(nodep, true, false); } - } else { - { EmitCImp imp; imp.main(nodep, true, true); } - } + if (v3Global.opt.outputSplit()) { + { EmitCImp fast; fast.main(nodep, false, true); } + { EmitCImp slow; slow.main(nodep, true, false); } + } else { + { EmitCImp both; both.main(nodep, true, true); } + } } } void V3EmitC::emitcTrace() { UINFO(2,__FUNCTION__<<": "<