Add embench submodule, with configs for hazard3

This commit is contained in:
Luke Wren 2021-11-28 00:01:18 +00:00
parent 14a4f1a281
commit 47ce2cc8ec
3 changed files with 18 additions and 0 deletions

3
.gitmodules vendored
View File

@ -16,3 +16,6 @@
[submodule "test/sim/riscv-tests/riscv-tests"]
path = test/sim/riscv-tests/riscv-tests
url = git@github.com:Wren6991/riscv-tests.git
[submodule "test/sim/embench/embench-iot"]
path = test/sim/embench/embench-iot
url = git@github.com:Wren6991/embench-iot.git

View File

@ -0,0 +1,14 @@
Embench
=======
To run these benchmarks, first make sure the embench-iot submodule is checked out, then:
```bash
cd embench-iot
# Make sure testbench is up to date
make -C ../../tb_cxxrtl tb
./build_all.py --arch riscv32 --chip hazard3 --board hazard3tb
./benchmark_speed --target-module run_hazard3tb
```
The compiler specified in `config/riscv32/chips/hazard3/chip.cfg` is `/opt/riscv/unstable/bin/riscv32-unknown-elf-gcc`, which is where I have an unstable GCC 12 build installed on my machine. You need to have a recent upstream master build to support the Zba/Zbb/Zbc/Zbs instructions. If you don't care about these, you can use whatever `riscv32-unknown-elf` compiler you have, and also edit `cflags` in that `.cfg` file to not include the bitmanip extensions in `march`.

@ -0,0 +1 @@
Subproject commit e93ce35ef70c62eb462dfbf90fc4eca975454f47