rocket-chip
rocket-chip copied to clipboard
Error while running make run-asm-tests-debug
Type of issue: bug report
Impact: unknown
Development Phase: request
Other information
Trying follow the READMe to get the c based simulator working.
If the current behavior is a bug, please provide the steps to reproduce the problem: Steps to reproduce: rocket-tools: Installed and RISCV path set.
aravind2@aravind2-HP-Compaq-8100-Elite-CMT-PC:~/work/rocket-tools$ git branch
* master
aravind2@aravind2-HP-Compaq-8100-Elite-CMT-PC:~/work/rocket-tools$
rocket-chip:
aravind2@aravind2-HP-Compaq-8100-Elite-CMT-PC:~/work/rocket-chip/emulator$ git branch
* master
aravind2@aravind2-HP-Compaq-8100-Elite-CMT-PC:~/work/rocket-chip/emulator$
make debug is success
g++ SimDTM.o SimJTAG.o emulator.o remote_bitbang.o verilated.o verilated_dpi.o verilated_vcd_c.o verilated_threads.o VTestHarness__ALL.a -L/home/aravind2/bin//lib -Wl,-rpath,/home/aravind2/bin//lib -L/home/aravind2/work/rocket-chip/emulator -lfesvr -lpthread -pthread -lpthread -latomic -o /home/aravind2/work/rocket-chip/emulator/emulator-freechips.rocketchip.system-freechips.rocketchip.system.DefaultConfig-debug
rm VTestHarness__ALL.verilator_deplist.tmp
make[1]: Leaving directory '/home/aravind2/work/rocket-chip/emulator/generated-src-debug/freechips.rocketchip.system.DefaultConfig'
aravind2@aravind2-HP-Compaq-8100-Elite-CMT-PC:~/work/rocket-chip/emulator$
What is the current behavior?
But make -j2 run-asm-tests-debug gets stuck with the below error message.
vcd2vpd output/rv64uf-p-ldst.vpd.vcd output/rv64uf-p-ldst.vpd > /dev/null &
vcd2vpd output/rv64uf-p-move.vpd.vcd output/rv64uf-p-move.vpd > /dev/null &
./emulator-freechips.rocketchip.system-freechips.rocketchip.system.DefaultConfig-debug +max-cycles=100000000 +verbose -voutput/rv64uf-p-ldst.vpd.vcd output/rv64uf-p-ldst 2> output/rv64uf-p-ldst.out && [ $PIPESTATUS -eq 0 ]
/bin/bash: vcd2vpd: command not found
./emulator-freechips.rocketchip.system-freechips.rocketchip.system.DefaultConfig-debug +max-cycles=100000000 +verbose -voutput/rv64uf-p-move.vpd.vcd output/rv64uf-p-move 2> output/rv64uf-p-move.out && [ $PIPESTATUS -eq 0 ]
/bin/bash: vcd2vpd: command not found
Please tell us about your environment:
- version: 25e2c63567689ebe1fc5e60fdfe3375a8dba071c
- OS:
aravind2@aravind2-HP-Compaq-8100-Elite-CMT-PC:~/work/rocket-chip/emulator$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
aravind2@aravind2-HP-Compaq-8100-Elite-CMT-PC:~/work/rocket-chip/emulator$
- `
What is the use case for changing the behavior?
As you can see in your log, you do not have vcd2vpd installed.
You may see https://groups.google.com/g/chipyard/c/fKKWHTS0uhk/m/pY2AoVovAgAJ
Based on the information you provided, it appears that the command make -j2 run-asm-tests-debug is encountering an error related to the vcd2vpd command not being found.
To address this issue, you can try the following steps:
-
Ensure that the
vcd2vpdcommand is installed on your system. You can do this by runningwhich vcd2vpdin the terminal. If the command is not found, you may need to install it. -
If
vcd2vpdis not installed, you can typically find it in the Verilator package. Install Verilator using the appropriate package manager for your system. -
After installing Verilator, make sure the installation directory is included in your system's PATH environment variable.
-
Once you have verified that
vcd2vpdis installed and accessible, try running themake -j2 run-asm-tests-debugcommand again.