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

"make renode" is broken -- due to Verilator 5.006? #781

Open
tcal-x opened this issue Feb 23, 2023 · 3 comments
Open

"make renode" is broken -- due to Verilator 5.006? #781

tcal-x opened this issue Feb 23, 2023 · 3 comments

Comments

@tcal-x
Copy link
Collaborator

tcal-x commented Feb 23, 2023

After updating renode, and entering the conda env with "make enter", I get an error when attempting "make renode" in any of the project directories:

-- Executing Verilator...
Verilator command: "/usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/bin/verilator_bin --compiler gcc --prefix Vcfu --Mdir /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v/build/renode/CMakeFiles/libVtop.dir/Vcfu.dir --make cmake --cc -y /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v -Wno-WIDTH -Wno-CASEINCOMPLETE -Wno-CASEOVERLAP /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v/cfu.v"
Output:
%Error: Cannot find verilated_std.sv containing built-in std:: definitions:/usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv
        ... Looked in:
             /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v//usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv
             /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v//usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv.v
             /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v//usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv.sv
             /usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv
             /usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv.v
             /usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv.sv
             /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v/build/renode/CMakeFiles/libVtop.dir/Vcfu.dir//usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv
             /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v/build/renode/CMakeFiles/libVtop.dir/Vcfu.dir//usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv.v
             /usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v/build/renode/CMakeFiles/libVtop.dir/Vcfu.dir//usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/include/verilated_std.sv.sv
%Error: Exiting due to 1 error(s)

CMake Error at /usr/local/google/home/tcal/google/CFU-Playground/env/conda/envs/cfu-common/share/verilator/verilator-config.cmake:244 (message):
  Verilator command failed (return code=1)
Call Stack (most recent call first):
  CMakeLists.txt:30 (verilate)


-- Configuring incomplete, errors occurred!
See also "/usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v/build/renode/CMakeFiles/CMakeOutput.log".
See also "/usr/local/google/home/tcal/google/CFU-Playground/proj/proj_template_v/build/renode/CMakeFiles/CMakeError.log".
make[1]: *** [../proj.mk:219: renode-scripts] Error 1

If I specify an older Verilator package in conf/environment.yml, 5.004 or before, it works ok.

These worked:

  - litex-hub::verilator=5.004_11_g51de2c919=20221206_125647
  - litex-hub::verilator=5.004_64_gff2f711d0=20230116_180937

These didn't work:

  - litex-hub::verilator=5.006_99_g45f955f17=20230218_072610
  - litex-hub::verilator=5.006_94_g026bbc306=20230214_175409
  - litex-hub::verilator

FYI @PiotrZierhoffer @proppy -- have there been any changes to the conda-eda package for Verilator?

@PiotrZierhoffer
Copy link
Collaborator

Yes, there has been a change to the verilator package, which may or may not be relevant hdl/conda-eda@9dd40b1

@PiotrZierhoffer
Copy link
Collaborator

Naive fix attempt: #783

@tcal-x
Copy link
Collaborator Author

tcal-x commented Mar 1, 2023

@PiotrZierhoffer , has this been fixed? I don't see the issue anymore. I am using the Verilator package 5.006_115_g06661ab67 20230225_164303.

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

2 participants