commit | 7f64d89a85437b1680f64d9415861a8985999071 | [log] [tgz] |
---|---|---|
author | Cindy Liu <hcindyl@google.com> | Tue Dec 03 23:02:02 2024 -0800 |
committer | Cindy Liu <hcindyl@google.com> | Tue Dec 03 23:55:43 2024 -0800 |
tree | 8eb4d8c6515099f92962d50f273030be87907a80 | |
parent | 5fb5623b809e97b2b8819b91b5ae96550b47136d [diff] |
sw:vec: Disable softrvv_vredsum_test softrvv_vredsum implementaion is unbounded and can easily introduce overflow. Disable the test. Change-Id: I0876f59704e6fe1f2427ea751d80cf84d80cbe5d
This project hosts SW programs for RISC-V 32-bit baremetal machine with vector extension (Springbok). It provides the BSP to build the SW artifacts to run on Springbok.
If you get this project from a repo manifest, you are all set. If not, you need to have following projects as well to build the project successfully.
<dir>/sw/pigweed
.<dir>/cache/toolchain_iree_rv32imf
This project needs to be at <dir>/sw/vec
.
-cmake: CMake macros and cross compile toolchain setup -scripts: Helper scripts to generate and run the tests -softrvv: scalar mockup for the RVV instructions -springbok: BSP for the core, including the starting assembly, linker script, and gloss library support -tests: RVV instruction unit tests
If you get this project from repo manifest, you can build the artifacts with m springbok
. If you download this project alone, you need to run the following from the top-level directory
cmake -B <output dir> -G Ninja \ -DRISCV_TOOLCHAIN_ROOT=$(TOOLCHAINRV32_PATH) \ <dir>/sw/vec cmake --build <output dir> --target all
You can run Renode emulation with the built executables. If you run from the repo, you can run sim_springbok
for Renode simulation. Out-of-repo emulation is possible but requires more steps.
This project uses CMake's ctest to test the executables
ctest --test-dir <output dir>