chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

VCS ERROR while simulation in vlsi flow

Open WegdanAli13 opened this issue 3 years ago • 6 comments

Background Work

Chipyard Version and Hash

Release: 1.7.1

OS Setup

centos-release-8

Other Setup

vcs version "S-2021.09-SP1"

Current Behavior

Error-[DPI-UED] C++ Exception detected Import DPI routine invoked at file '/home/mohammwn/chipyard/vlsi/generated-src/chipyard.TestHarness.TinyRocketConfig/SimSerial.v'(line 53) has C++ exceptions not caught. C++ exceptions shall not propagate out of any imported subroutine. Fix it in DPI-C code before running simulation.

This error happens when trying the vlsi flow as I want to simulate my design. I use the command "make sim-rtl CONFIG=TinyRocketConfig BINARY=$RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv32ui-p-simple" as in the ASAP7 example .

Expected Behavior

Simulation executables based on vcs run correctly with no errors thrown.

Other Information

No response

WegdanAli13 avatar Jul 12 '22 12:07 WegdanAli13

Can you paste the commands invoked by the make target (i.e. both the VCS compilation and execution)? I wonder if #1081 might be related.

harrisonliew avatar Jul 12 '22 15:07 harrisonliew

"make sim-rtl CONFIG=TinyRocketConfig BINARY=$RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv32ui-p-simple" This ius the command that I used, in vlsi flow I choose that after synthesizing I want to run simulation. Then in my path there is VCS and it calls it with this command .

WegdanAli13 avatar Jul 14 '22 09:07 WegdanAli13

Sorry what I mean is, can you paste the VCS commands generated by Hammer? They should be: vcs <a bunch of options> simv-<config> <a bunch of options>

I'm wondering if there are some options passed to the compilation or simulator that are not specified correctly.

harrisonliew avatar Jul 14 '22 16:07 harrisonliew

there are yaml and json files generated in each step and used in the following step for the constraints and everything. Is there a specific one to see ?

WegdanAli13 avatar Jul 18 '22 09:07 WegdanAli13

Sure, you can attach the generated sim-inputs.yml. However, I want to see the actual VCS commands that are being run. You will need to copy these from your terminal output or the hammer-vlsi-<timestamp>.log file.

harrisonliew avatar Jul 18 '22 15:07 harrisonliew

hammer-vlsi-20220721-110048.log sorry for the late reply, the log file is attached as there are so many lines

WegdanAli13 avatar Jul 21 '22 09:07 WegdanAli13

Not sure how I missed replying to this, but I see that you have a VCS and VERDI version mismatch error in your log file. Also, upcoming PR #1226 may also help fix this.

harrisonliew avatar Sep 28 '22 00:09 harrisonliew

#1226

harrisonliew avatar Sep 29 '22 17:09 harrisonliew