tree: 1e3f34592ebb2702a39a9bac72e742e42960912e [path history] [tgz]
  1. device/
  2. host/
  3. otbn/
  4. vendor/
  5. .gitignore
  6. _index.md
  7. meson.build
  8. README.md
sw/README.md

OpenTitan Software

This subtree contains all software intended to run on the OpenTitan chip, as well as some tools.

Building

OpenTitan software is built using Meson, although OpenTitan's project structure is sufficiently idiosyncratic that we use a custom workflow.

For example, to build the OpenTitan executable located at sw/device/examples/hello_world for FPGA, run the following commands:

$ cd "$REPO_TOP"
$ ./meson_init.sh
$ ninja -C build-out sw/device/examples/hello_world/hello_world_export_fpga_nexysvideo

The resulting binaries will be located at build-bin/sw/device/examples/hello_world. For more information, check out the relevant User Guide.

The location of the RISC-V toolchain is /tools/riscv by default. If your toolchain is located elsewhere set the TOOLCHAIN_PATH to that path before running meson_init.sh

$ cd "$REPO_TOP"
$ export TOOLCHAIN_PATH=/path/to/toolchain
$ ./meson_init.sh