Skip to content

Commit be9831e

Browse files
committed
attempt to use the latest version of RISCOF, some success
1 parent c8d60e9 commit be9831e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

riscof/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
RISC-V ISA unit testing using the RISCOF framework.
44

5+
Tests can be run by executing the script [`buld.sh`](build.sh).
6+
The script should setup the Python virtual environment and run the tests for processors `mouse` and `degu`.
7+
Since the Python code is taken from Git development branches, there might be
8+
[unexpected failures](https://github.com/riscv-software-src/riscof/issues/147).
9+
10+
```
11+
cd riscof
12+
./buld.sh
13+
```
14+
515
## Requirements
616

717
Follow the [RISCOF Quickstart guide](https://riscof.readthedocs.io/en/stable/installation.html)

riscof/build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#! /usr/bin/env bash
2+
3+
# setup python environment
4+
python3 -m venv .venv
5+
source .venv/bin/activate
6+
pip3 install riscv_isac git+https://github.com/riscv-non-isa/riscv-arch-test/#subdirectory=riscv-isac
7+
pip3 install riscv-config git+https://github.com/riscv-software-src/riscv-config@dev
8+
pip3 install riscof git+https://github.com/riscv-software-src/riscof@dev
9+
10+
# setup tool paths
11+
source ../settings-questa.sh
12+
source ../settings-vivado.sh
13+
export PATH=/opt/riscv-isa-sim/bin/:$PATH
14+
export PATH=/opt/riscv-gcc/bin/:$PATH
15+
export PATH=`git rev-parse --show-toplevel`/submodules/sail-riscv/build/c_emulator/:$PATH
16+
17+
# run tests for mouse/degu
18+
riscof run --config=config-mouse.ini --suite=../submodules/riscv-arch-test/riscv-test-suite/ --env=../submodules/riscv-arch-test/riscv-test-suite/env
19+
riscof run --config=config-degu.ini --suite=../submodules/riscv-arch-test/riscv-test-suite/ --env=../submodules/riscv-arch-test/riscv-test-suite/env

0 commit comments

Comments
 (0)