-
Notifications
You must be signed in to change notification settings - Fork 613
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
Chisel tester with newest verilator as backend got a compile error #1565
Comments
If anyone found the same problem, you can firstly
and then
to downgrade the verilator to 4.036. It is not a good solution, but it works.😂 |
I just ran into this. Apparently, This seems to fix it: diff --git a/src/main/resources/chisel3/top.cpp b/src/main/resources/chisel3/top.cpp
index 4e9c1433..3e478511 100644
--- a/src/main/resources/chisel3/top.cpp
+++ b/src/main/resources/chisel3/top.cpp
@@ -8,7 +8,7 @@
// Override Verilator definition so first $finish ends simulation
// Note: VL_USER_FINISH needs to be defined when compiling Verilator code
void vl_finish(const char* filename, int linenum, const char* hier) {
- Verilated::flushCall();
+ Verilated::runFlushCallbacks();
exit(0);
} ...though 2 tests are still failing. I am also not sure when |
Any progress? Princeling-Mac at ~ ❯ verilator -version
Verilator 4.040 2020-08-15 rev v4.038-32-gbdecf6c4e But verilator did work on my ubuntu18.04 with that, the version of verilator was 2017 |
@LeiWang1999 Upgrade verilator to v4.102 or later. They fixed this problem here. |
related to verilator/verilator#2580 |
@sequencer @name1e5s Thanks, solved. |
Clarify spec definition of indentation and when/else indentation
Type of issue: bug report
Impact: no functional change
Development Phase: request
Other information
In this commit of verilator, the function
Verilated::flushCall
has split intoVerilated::runFlushCallbacks
andVerilated::runExitCallbacks
. This breaking change leads to a compile error when we want to run PeekPokeTester against newest verilator on macOS.If the current behavior is a bug, please provide the steps to reproduce the problem:
Use
brew update && brew upgrade
to update your enviroment, then runsbt test
in chisel-template, then you will see the following text:What is the current behavior?
Running
sbt test
will get a depressing compile error.What is the expected behavior?
The test should runs correctly.
Please tell us about your environment:
3.3.1
64bit Mac OS X 10.15.6 19G2021
4.040
The text was updated successfully, but these errors were encountered: