tree: 697283df47a3ea59b798b4b22e9a0ce196d83830 [path history] [tgz]
  1. code-snippets/
  2. data/
  3. doc/
  4. rtl/
  5. util/
  6. otbn.core
  7. otbn.prj.hjson
  8. README.md
hw/ip/otbn/README.md

OpenTitan Big Number Accelerator (OTBN)

This directory contains the implementation of the OpenTitan Big Number Accelerator (OTBN). OTBN is a coprocessor for asymmetric cryptographic operations like RSA or Elliptic Curve Cryptography (ECC).

See https://docs.opentitan.org/hw/ip/otbn/doc/index.html for documentation on the current version of OTBN; documentation matching the code in this directory can be found in the doc directory.

OTBN is currently in early development. Please ask questions and report issues through the GitHub issue tracker.

Develop OTBN

Build the RTL implementation

To build the RTL implementation of OTBN in a simulation, run fusesoc without passing the OTBN_MODEL flag. For example, the Verilator simulation can be compiled as follows.

fusesoc --cores-root=. run --target=sim --setup --build lowrisc:systems:top_earlgrey_verilator

Work with the ISA

The instruction set is described in machine readable form in data/insns.yml. This is parsed by Python code in util/insn_yaml.py, which runs various sanity checks on the data. Current tooling that uses this information:

  • util/yaml_to_doc.py: Generates a Markdown snippet which is included in the OTBN specification.