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 while running make run-asm-tests-debug #3325

Open
arunlee77 opened this issue Apr 17, 2023 · 2 comments
Open

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

arunlee77 opened this issue Apr 17, 2023 · 2 comments

Comments

@arunlee77
Copy link

arunlee77 commented Apr 17, 2023

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?

@ZenithalHourlyRate
Copy link
Contributor

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
Copy link

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.

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

No branches or pull requests

4 participants