commit | be4ab9792ceddb48f6bcd49f10f795b50d00b6c5 | [log] [tgz] |
---|---|---|
author | Naveen Dodda <ndodda@google.com> | Wed Apr 17 17:47:46 2024 +0000 |
committer | Naveen Dodda <ndodda@google.com> | Fri May 03 18:21:45 2024 +0000 |
tree | 14684384eda5a0b608ded07275c50b94d9faf53e | |
parent | c62ec016b17f1d1d035a38e15432061e71331984 [diff] |
WIP Depthwise conv for 2d kernels *Draft verison is working *need to add kelvin instructions Change-Id: Id282fed89d333f265c448158e448322988d05b31
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.