Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Generating VCD with Verilator #182

Open
peterhchen opened this issue Dec 26, 2024 · 0 comments
Open

Error in Generating VCD with Verilator #182

peterhchen opened this issue Dec 26, 2024 · 0 comments

Comments

@peterhchen
Copy link

  1. Verilog gerenating is OK.
  2. VCD generation is NG.

./run-examples.sh GCD --backend-name verilator
[sbt_options] declare -a sbt_options=()
[process_args] java_version = '8'

Executing command line:

java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-Dsbt.script=/home/peter/.sdkman/candidates/sbt/current/bin/sbt
-jar
/home/peter/.sdkman/candidates/sbt/1.10.6/bin/sbt-launch.jar
"test:runMain examples.Launcher GCD --backend-name verilator"

[info] Loading project definition from /home/peter/chisel-workspace/chisel-tutorial/project
[info] Loading settings for project chisel-tutorial from build.sbt ...
[info] Set current project to chisel-tutorial (in build file:/home/peter/chisel-workspace/chisel-tutorial/)
[warn] Multiple main classes detected. Run 'show discoveredMainClasses' to see the list
[info] running examples.Launcher GCD --backend-name verilator
Starting tutorial GCD
[info] [0.001] Elaborating design...
[info] [0.079] Done elaborating.
cd /home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD && verilator --cc GCD.v --assert -Wno-fatal -Wno-WIDTH -Wno-STMTDLY -O1 --top-module GCD +define+TOP_TYPE=VGCD +define+PRINTF_COND=!GCD.reset +define+STOP_COND=!GCD.reset -CFLAGS "-Wno-undefined-bool-conversion -O1 -DTOP_TYPE=VGCD -DVL_USER_FINISH -include VGCD.h" -Mdir /home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD --exe /home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD/GCD-harness.cpp --trace
make: Entering directory '/home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD'
g++ -I. -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -Wno-undefined-bool-conversion -O1 -DTOP_TYPE=VGCD -DVL_USER_FINISH -include VGCD.h -Os -c -o GCD-harness.o /home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD/GCD-harness.cpp
g++ -I. -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -Wno-undefined-bool-conversion -O1 -DTOP_TYPE=VGCD -DVL_USER_FINISH -include VGCD.h -Os -c -o verilated.o /usr/share/verilator/include/verilated.cpp
g++ -I. -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -Wno-undefined-bool-conversion -O1 -DTOP_TYPE=VGCD -DVL_USER_FINISH -include VGCD.h -Os -c -o verilated_vcd_c.o /usr/share/verilator/include/verilated_vcd_c.cpp
/usr/bin/perl /usr/share/verilator/bin/verilator_includer -DVL_INCLUDE_OPT=include VGCD.cpp VGCD__Trace.cpp VGCD__Slow.cpp VGCD__Syms.cpp VGCD__Trace__Slow.cpp > VGCD__ALL.cpp
g++ -I. -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -Wno-undefined-bool-conversion -O1 -DTOP_TYPE=VGCD -DVL_USER_FINISH -include VGCD.h -Os -c -o VGCD__ALL.o VGCD__ALL.cpp
ar -cr VGCD__ALL.a VGCD__ALL.o
ranlib VGCD__ALL.a
/home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD/GCD-harness.cpp: In function ‘void vl_finish(const char*, int, const char*)’:
/home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD/GCD-harness.cpp:101:14: error: ‘flushCall’ is not a member of ‘Verilated’
101 | Verilated::flushCall();
| ^~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-bool-conversion’ may have been intended to silence earlier diagnostics
make: *** [VGCD.mk:60: GCD-harness.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/peter/chisel-workspace/chisel-tutorial/test_run_dir/examples/GCD'

Errors: 1: in the following tutorials
Tutorial GCD: throwable assertion failed:

2024-12-25 23:38:34,527 shutdown-hooks-run-all ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant