- Download an openocd_riscv binary from https://github.com/edwardcwang/openocd_riscv/releases (or build it from source following the instructions at https://github.com/edwardcwang/openocd_riscv).
- Edit
run_openocd.shto update the openocd install dir to reflect the above. - Edit the top-level Verilog
vsim_top.vto instantiate your target design. - Build the VCS simulator with
./vcs_build.sh. - Run the VCS simulator with
./run_sim.sh. - In parallel, start OpenOCD with
./run_openocd.sh. - In parallel as well, run
telnet localhost 4444 - In the telnet window run
load_image <path to elf file>followed byresume 0x20000000 - Use
./vpd2gz.shto create a.vcd.gzto transfer the waveforms. Rungunzip -f out.vcd.gzlocally to view the resultant waveforms.
-
Notifications
You must be signed in to change notification settings - Fork 6
tapeout/vcs_jtag_vpi_template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A template for running jtag_vpi simulations in vcs
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published