Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kliuMsft committed Oct 15, 2023
1 parent ab796d4 commit 31ddb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/verilator/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Steps to run a verilog simulation:
You can run the scripts from any where as long as the $DesignRoot in vgen script points to the right locaiton of verilog files.

The verilog wrapper (swci_vtb) takes care of printing out UART messages.
To stop simulation, write any value >= 0x80 to UART (0x8f00b000). The C++ wrapper (swci_main) exits value is the lower 7-bit of the byte written to UART. There is also a timeout (defined MAX_SIM_TIME in swci_main.cc) which defaults to 100M cycles, the exit code for timeout is 0xfe.
To stop simulation, write any value >= 0x80 to UART (0x8f00b000). The C++ wrapper (swci_main) exit value is the lower 7-bit of the byte written to UART. There is also a timeout (defined MAX_SIM_TIME in swci_main.cc) which defaults to 100M cycles, the exit code for timeout is 0xfe.

To enable ibex traces, insert a "+define+RVFI=1" in all.f (above line 11).

Expand Down

0 comments on commit 31ddb47

Please sign in to comment.