chipsalliance / chipsalliance/rocket-chip
Simulation TestHarness module without verilator
- Dominant language
- Scala
- Stars
- 3.9k
- Forks
- 1.3k
- Avg merge
- 5d 13m
- Merged PRs (30d)
- 1
Description
Use VSIM I generate freechips.rocketchip.system.MemPortOnlyConfig.v file.
I am trying to simulate TestHarness from it,without verilator and VCS.
But I have access to xcelium and understand how run Verilog file on it.
> xrun -linedebug -access rwc -top my_tb_module -f Rocket_chip.lst -gui -64 -sv
Rocket_chip.lst contain list of files, which you can see below
./My_tb_file.v
./SimDTM.v
./src/Rocket_Chip/freechips.rocketchip.system.MemPortOnlyConfig.behav_srams.v
./src/Rocket_Chip/freechips.rocketchip.system.MemPortOnlyConfig.v
./src/Rocket_Chip/EICG_wrapper.v
./src/Rocket_Chip/plusarg_reader.v
Also in the work directory I put dpi library,which I generate use gcc and librarys from rocket-chip folder
> g++ -I. -g -O0 -fPIC -shared -std=c++11 -Wall -Werror -o libdpi.so SimDTM.cc -L. -lpthread -lfesvr -Wl,-rpath,.
Checking library with command nm I find undefined symbol "vpi_get_vlog_info" and can`t find this symbol in the other library's from rocket-chip folder.
Which library I should include?
Contributor guide
Research direction
Start with SimDTM.cc and the g++ command that produces libdpi.so, then inspect the libraries in the Rocket-chip folder for the vpi_get_vlog_info symbol. Re-run nm and the provided xrun command using Rocket_chip.lst and the listed Verilog files. Done means the DPI library resolves its symbols and the TestHarness simulation starts under xrun.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100