commit | 28bb4471fa07b5da0e4025430e7f2337af7e4cae | [log] [tgz] |
---|---|---|
author | Cindy Liu <hcindyl@google.com> | Fri Jun 09 18:57:53 2023 -0700 |
committer | Cindy Liu <hcindyl@google.com> | Mon Jun 12 12:00:53 2023 -0700 |
tree | 5b381fb29221ddb8bc5d00db9afe583420f2b609 | |
parent | 7764559987cba8ee7b42e05d43e22773b3a2dfae [diff] |
Add riscv-test into kelvin SW project Use bazel's git_repository functionality to pull RISCV's ISA tests directly since we are not changing anything from there. The Kelvin-specific changes are the entry point and the pass/fail condition (replaced with mpause/ebreak) Also move the repository dependency into repos.bzl to a cleaner dependency management. Change-Id: I21d0c1238d1a5888daee7b23e9b41004c4303752
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 //...
TODO: Add CMake flow
TODO: Add kelvin simulator
Load the generated .bin
binaries to matcha FPGA emulator.