You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recommend installing Verilator from source as versions from Linux
32
-
distributions are often outdated. See
33
-
https://www.veripool.org/projects/verilator/wiki/Installing for installation
34
-
instructions.
34
+
distributions are often outdated. Follow [this](https://www.veripool.org/projects/verilator/wiki/Installing) link for installation instructions. Pre-build SAIL RISCV model is available in [bin](/dv/riscv_compliance/bin/) directory, along with the instructions.
35
35
36
-
1. Build a simulation of Ibex
36
+
:warning: Run the following commands from base of the Ibex repo.
37
37
38
-
```sh
39
-
cd$IBEX_REPO_BASE
40
-
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_riscv_compliance --RV32E=0 --RV32M=ibex_pkg::RV32MNone
41
-
```
42
-
43
-
You can use the two compile-time options `--RV32M` and `--RV32E` to
44
-
enable/disable the M and E ISA extensions, respectively.
45
-
46
-
You can now find the compiled simulation at `build/lowrisc_ibex_ibex_riscv_compliance_0.1/sim-verilator/Vibex_riscv_compliance`.
47
-
48
-
2. Get the RISC-V Compliance test suite
49
-
50
-
The upstream RISC-V compliance test suite supports Ibex out of the box.
The following commnad will run all tests of `rv32i_m` for supported ISA extensions of ibex. To run the tests for specific extensio (`I`, `M`, `C`, `Zifencei`, `privilege`), provide the path of respective extension test directory to the `--suite` flag.
47
+
58
48
```sh
59
-
cd$RISCV_COMPLIANCE_REPO_BASE
60
-
# adjust to match your compiler name
61
-
export RISCV_PREFIX=riscv32-unknown-elf-
62
-
# give the absolute path to the simulation binary compiled in step 1
SAIL RISC-V is the Golden reference model simulator for the formal specification of the RISC-V Architecture. The binaries are build by following the [instructions](https://riscof.readthedocs.io/en/stable/installation.html#install-plugin-models) available in RISCOF documentation.
4
+
5
+
These binaries are build for both 32-bit and 64-bit architecture:
6
+
7
+
-`riscv_sim_RV32`
8
+
-`riscv_sim_RV64`
9
+
10
+
> :warning: SAIL model binaries must be available in the `$PATH` variable. To do that:
11
+
- Extract `sail-riscv.tar.gz` using
12
+
13
+
tar -xzf sail-riscv.tar.gz sail-riscv
14
+
- Binaries will be extracted in the directory named `sail-riscv`. Export the path of this directory to `$PATH` variable
0 commit comments