commit | 288b9e9ee706f85eaf3b243717e5dbefd5298dc6 | [log] [tgz] |
---|---|---|
author | Alex Van Damme <atv@google.com> | Mon Aug 21 13:36:21 2023 -0700 |
committer | Alex Van Damme <atv@google.com> | Mon Aug 21 22:50:09 2023 +0000 |
tree | c97d49bc9751835ceb48308f01a3ad77b7e774da | |
parent | c53e7142e71e318e8a275db409a24c7f6a59e37d [diff] |
Switch addition to vdmulh, fix rounding - Now that the vdmulh bug was corrected in sim, we can use it instead of vmulh + vmul - Enable rounding during the shift in our rescale macro, this fixes off-by-one errors seen in Soundstream's use of Add. - clang-format the rescale macro Change-Id: I01c11bf19a475a6768fab74cde3a4b6ec64d8c14
This project contains the BSP to build the SW artifact that can run on the Kelvin core, and integrated as part of the Shodan repository.
The project supports two build systems -- Bazel and CMake -- for OSS integration reasons. Bazel is used by TFLM flow, while CMake is the build system for IREE.
If you get this project from Project Shodan manifest, you are all set. If not, you need to have following projects as well to build the project successfully.
<dir>/cache/toolchain_kelvin
This project needs to be at <dir>/sw/kelvin
.
The project uses Bazel 5.1.1, to align with OpenTitan build system requirements.
bazel build //...
To run the unit tests (with the kelvin_sim ISS) Make sure the Environment variable $ROOTDIR
is set to the root directory of the local repo (or run source build/setup.sh
)
bazel test //...
TODO: Add CMake flow
The binaries can be simulated with the kelvin simulator, located at <dir>/sim/kelvin
.
sim_kelvin <elf location>
Load the generated .bin
binaries to the FPGA emulator/Renode simulator.