From 8b954dc381af1e6c7e6a6af50576d1e9dbc8d00b Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 12 Apr 2018 22:00:34 -0400 Subject: [PATCH 1/3] Additional debug prints --- include/verilated.mk.in | 4 +++- src/V3Unroll.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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/V3Unroll.cpp b/src/V3Unroll.cpp index 5ddd280ee..55ab2227f 100644 --- a/src/V3Unroll.cpp +++ b/src/V3Unroll.cpp @@ -487,6 +487,6 @@ void V3Unroll::unrollAll(AstNetlist* nodep) { } void V3Unroll::unrollGen(AstNodeFor* nodep, const string& beginName) { - UINFO(2,__FUNCTION__<<": "< Date: Mon, 30 Apr 2018 20:00:38 -0400 Subject: [PATCH 2/3] Commentary --- bin/verilator | 3 +++ 1 file changed, 3 insertions(+) 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. From c8ba51581f2c1f04b17237349427e5bc4cc7e340 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 30 Apr 2018 20:34:52 -0400 Subject: [PATCH 3/3] Commentary --- src/V3EmitC.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index a048ea89e..490b805cd 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -2558,19 +2558,19 @@ void V3EmitC::emitc() { UINFO(2,__FUNCTION__<<": "<modulesp(); nodep; nodep=nodep->nextp()->castNodeModule()) { - 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__<<": "<