Closed sdimascio closed 5 years ago
Sorry for the late response!
The issue is that the run-*-tests-debug
targets (as defined by the Makefile fragment generated by rocket-chip) depend on *.vpd
outputs, but the Verilator harness does not support the +vcdplusfile
plusarg. This incompatibility had long been overlooked since we normally use VCS for dumping waveforms.
Be aware, however, that the uncompressed VCDs will be very large.
I run "make debug" in the verisim folder successfully, but then when I run "make run-bmark-tests-debug" I get:
cd /home/hwacha-template/verisim && /home/hwacha-template/verisim/simulator-freechips.rocketchip.system-ExampleHwachaConfig-debug +verbose +vcdplusfile=/home/hwacha-template/verisim/output/pb-spmv.riscv.vpd +max-cycles=10000000 /home/hwacha-template/verisim/output/pb-spmv.riscv 3>&1 1>&2 2>&3 | /home/risc-v_hwacha/bin//spike-dasm --extension=hwacha > /home/hwacha-template/verisim/output/pb-spmv.riscv.out && [ $PIPESTATUS -eq 0 ] Usage: /home/hwacha-template/verisim/simulator-freechips.rocketchip.system-ExampleHwachaConfig-debug [EMULATOR OPTION]... [VERILOG PLUSARG]... [HOST OPTION]... BINARY [TARGET OPTION]... Run a BINARY on the Rocket Chip emulator.
Mandatory arguments to long options are mandatory for short options too.
EMULATOR OPTIONS -c, --cycle-count Print the cycle count before exiting +cycle-count -h, --help Display this help and exit -m, --max-cycles=CYCLES Kill the emulation after CYCLES +max-cycles=CYCLES -s, --seed=SEED Use random number seed SEED -r, --rbb-port=PORT Use PORT for remote bit bang (with OpenOCD and GDB) If not specified, a random port will be chosen automatically. -V, --verbose Enable all Chisel printfs (cycle-by-cycle info) +verbose -v, --vcd=FILE, Write vcd trace to FILE (or '-' for stdout) -x, --dump-start=CYCLE Start VCD tracing at CYCLE +dump-start
EMULATOR VERILOG PLUSARGS +tilelink_timeout=INT Kill emulation after INT waiting TileLink cycles. Off if 0. (default=0) +max_core_cycles=INT Kill the emulation after INT rdtime cycles. Off if 0. (default=0) HOST OPTIONS -h, --help Display this help and exit +permissive The host will ignore any unparsed options up until +permissive-off (Only needed for VCS) +permissive-off Stop ignoring options. This is mandatory if using +permissive (Only needed for VCS) --rfb=DISPLAY Add new remote frame buffer on display DISPLAY +rfb=DISPLAY to be accessible on 5900 + DISPLAY (default = 0) --signature=FILE Write torture test signature to FILE +signature=FILE --chroot=PATH Use PATH as location of syscall-semake run-rvicing binaries +chroot=PATH
HOST OPTIONS (currently unsupported) --disk=DISK Add DISK device. Use a ramdisk since this isn't +disk=DISK supported
TARGET (RISC-V BINARY) OPTIONS These are the options passed to the program executing on the emulated RISC-V microprocessor.
EXAMPLES