File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 22
33RISC-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
717Follow the [ RISCOF Quickstart guide] ( https://riscof.readthedocs.io/en/stable/installation.html )
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments