Skip to content

Commit

Permalink
Updated the docs to point to the new verilator top
Browse files Browse the repository at this point in the history
  • Loading branch information
HU90m committed Feb 29, 2024
1 parent e23912c commit 8264f86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
build/
.venv/
__pycache__/
target/
*.fst
*.log
*.csv
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ in `ibex_demo_system.core`
The Demo System simulator binary can be built via FuseSoC. From the Ibex
repository root run:

```
```sh
fusesoc --cores-root=. run --target=sim --tool=verilator --setup --build lowrisc:ibex:demo_system
```

Expand All @@ -435,14 +435,13 @@ built as described above. Use `./sw/c/build/demo/hello_world/demo` to run the `d
binary.

Run from the repository root run:
```
```sh
# For example :
./build/lowrisc_ibex_demo_system_0/sim-verilator/Vibex_demo_system \
./build/lowrisc_ibex_demo_system_0/sim-verilator/Vtop_verilator \
--meminit=ram,./sw/c/build/demo/hello_world/demo

# You need to substitute the <sw_elf_file> for a binary we have build above.
./build/lowrisc_ibex_demo_system_0/sim-verilator/Vibex_demo_system [-t] --meminit=ram,<sw_elf_file>
./build/lowrisc_ibex_demo_system_0/sim-verilator/Vtop_verilator [-t] --meminit=ram,<sw_elf_file>
```

Pass `-t` to get an FST trace of execution that can be viewed with
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
Build ibex simulation verilator model :
fusesoc --cores-root=. run --target=sim --tool=verilator --setup --build lowrisc:ibex:demo_system
Run ibex simulator verilator model :
./build/lowrisc_ibex_demo_system_0/sim-verilator/Vibex_demo_system -t \
./build/lowrisc_ibex_demo_system_0/sim-verilator/Vtop_verilator -t \
--meminit=ram,sw/c/build/demo/hello_world/demo
Build ibex-demo-system FPGA bitstream for Arty-A7 :
fusesoc --cores-root=. run --target=synth --setup --build lowrisc:ibex:demo_system
Expand Down

0 comments on commit 8264f86

Please sign in to comment.