chipsalliance / rocket-chip

Rocket Chip Generator
Other
3.27k stars 1.13k forks source link

Error while running make run-asm-tests-debug #3325

Open arunlee77 opened 1 year ago

arunlee77 commented 1 year ago

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:

What is the use case for changing the behavior?

ZenithalHourlyRate commented 1 year ago

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

samadpls commented 1 year ago

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:

  1. Ensure that the vcd2vpd command is installed on your system. You can do this by running which vcd2vpd in the terminal. If the command is not found, you may need to install it.

  2. If vcd2vpd is not installed, you can typically find it in the Verilator package. Install Verilator using the appropriate package manager for your system.

  3. After installing Verilator, make sure the installation directory is included in your system's PATH environment variable.

  4. Once you have verified that vcd2vpd is installed and accessible, try running the make -j2 run-asm-tests-debug command again.