Build plan · Open source

SecureSign SoC — open-source build plan

How each block of the SecureSign SoC can be built from existing open-source hardware and firmware: the recommended project, the exact folders to take, what RionCore adds, alternatives, licence and a planning estimate. Every link goes to the source code on GitHub.

Caliptra is the backbone

CHIPS Alliance’s Caliptra already joins an AHB-Lite bus, a hardware key vault and AES, SHA and ML-DSA engines — the same structure as our diagram, under Apache-2.0.

ML-DSA-65 needs adapting

The open ML-DSA hardware (Adams Bridge) and OpenTitan’s code are ML-DSA-87. We either re-parameterise to ML-DSA-65 or adopt ML-DSA-87.

P-256 comes from OpenTitan

Caliptra’s ECC engine is P-384 only. OpenTitan’s OTBN runs hardened P-256 signing, which today’s CA certificates need.

What RionCore builds

Card applet and PIN policy, CCID firmware, bus firewall, the ML-DSA check in the update flow — plus the PUF, which must come from the FPGA vendor.

Sourcing mix — 21 SoC modules≈ 66 person-weeks of block work (planning estimate) · before system integration, verification and certification
7 Reuse
9 Adapt
3 RionCore builds
2 FPGA vendor

Three choices to make first

These decide how much of the open-source code can be used unchanged. Recommendations are for the Simulator and FPGA-prototype phases and can be revisited before production.

1 · Internal bus

AHB-Lite + APB
Matches the diagram and Caliptra; OpenTitan blocks join through Caliptra’s TL-UL adapters.
TL-UL (OpenTitan)
Most OpenTitan IP plugs in directly via the tlgen crossbar generator, but Caliptra and Adams Bridge then need adapters.

2 · ML-DSA security level

ML-DSA-65
As in the brief: public key 1,952 B, signature 3,309 B. Needs about 10 weeks of extra RTL work on Adams Bridge.
ML-DSA-87
Use Adams Bridge almost as-is; higher security but larger: public key 2,592 B, signature 4,627 B, and more FPGA memory.

3 · CPU core

VeeR EL2
Comes integrated in Caliptra with AHB-Lite, interrupt controller and debug — least glue for the prototype.
Ibex or rion_rv32
Ibex is smaller with PMP; rion_rv32 keeps the core in-house. Both need AHB wrappers.

Module by module

The same blocks as the SoC block diagram. Filter by group or by how each block is sourced.

01

CPU — RISC-V RV32IMC

CPU subsystem
Reuse
Recommended
VeeR EL2 Apache-2.0

RV32IMC core that Caliptra already uses, with native AHB-Lite ports and its own interrupt controller and debug module.

What we take
  • src/riscv_core/veer_el2 (as integrated in Caliptra)
  • Standalone repo: Cores-VeeR-EL2
RionCore adds

Configure for the card logic (no caches, small ICCM/DCCM), set the clock target, disable debug in production lifecycle.

Alternatives
Ibex Apache-2.0 smaller; RISC-V PMP built in
PicoRV32 ISC one Verilog file, smallest
rion_rv32 RionCore in-house — use if it meets size and security needs
2 wkSimulatorFPGA prototype
02

Interrupt controller

CPU subsystem
Reuse
Recommended
VeeR EL2 built-in PIC Apache-2.0

Comes with the core — no separate block needed.

What we take
  • Part of veer_el2
RionCore adds

Map IRQ[7:0]: USB, crypto done, DMA, tamper, timer, watchdog, SPI, GPIO.

Alternatives
OpenTitan rv_plic Apache-2.0 template, generated per source count
½ wkSimulatorFPGA prototype
03

Golden boot ROM · PQC secure update

CPU subsystem
Adapt
Recommended
MCUboot Apache-2.0

Proven A/B image swap, image validation and anti-rollback security counter.

What we take
RionCore adds

MCUboot verifies only ECDSA, Ed25519 and RSA today — RionCore adds an ML-DSA image check (using mldsa-native verify), the update public-key hash in OTP and power-on self-tests (flow U1–U5).

Alternatives
Caliptra ROM & firmware Apache-2.0 Rust boot flow — reference for measured boot
5 wkFPGA prototypeProduction FPGA
04

Secure scratch SRAM

CPU subsystem
Adapt
Recommended
OpenTitan sram_ctrl Apache-2.0

Scrambled RAM with hardware wipe (re-initialise on request).

What we take
  • hw/ip/sram_ctrl/rtl/sram_ctrl.sv
RionCore adds

Map onto FPGA block RAM; trigger the wipe after every signature and on tamper.

Alternatives
Caliptra caliptra_sram.sv Apache-2.0 plain SRAM model, AHB-ready
1½ wkFPGA prototype
05

Secure debug

CPU subsystem
Reuse
Recommended
VeeR EL2 debug module + JTAG Apache-2.0

Standard RISC-V debug, included with the core.

What we take
  • Part of veer_el2
RionCore adds

Gate JTAG with the lifecycle state: open in development, permanently blocked in production (red ✕ on the diagram).

Alternatives
PULP riscv-dbg Solderpad-0.51 for Ibex / PicoRV32
OpenTitan rv_dm Apache-2.0 TL-UL version
1 wkSimulatorFPGA prototype
06

AHB-Lite interconnect · AHB→APB bridge

Bus & data movement
Adapt
Recommended
Caliptra ahb_lite_bus Apache-2.0

The same AHB-Lite bus as our diagram, already connecting Caliptra’s crypto engines.

What we take
  • src/ahb_lite_bus/rtl/: ahb_lite_bus.sv, ahb_lite_address_decoder.sv, ahb_lite_2to1_mux.sv
  • src/libs/rtl: ahb_slv_sif.sv, apb_slv_sif.sv, ahb_to_reg_adapter.sv
RionCore adds

Small AHB→APB bridge for the seven slow peripherals; caliptra_tlul adapters for any OpenTitan (TL-UL) block we reuse.

Alternatives
PULP apb Solderpad-0.51 APB demux and register blocks
LiteX BSD-2 Wishbone-based alternative
Roa Logic AHB-Lite Non-commercial reference only
2 wkSimulatorFPGA prototype
07

Bus firewall / MPU

Bus & data movement
RionCore builds
Recommended
RionCore address firewall RionCore

A small block in front of the key vault and crypto registers.

What we take
RionCore adds

Allow-list of address ranges per bus master (CPU, DMA, debug); any violation raises an alert.

Alternatives
Ibex PMP Apache-2.0 if Ibex is chosen as CPU
2 wkFPGA prototypeProduction FPGA
08

Crypto DMA

Bus & data movement
Adapt
Recommended
PULP iDMA Solderpad-0.51

Configurable DMA engine, many front-ends and back-ends.

What we take
  • src/backend, src/frontend (generated configuration)
RionCore adds

AHB-Lite back-end; restrict targets to the crypto engine windows — never the key bus.

Alternatives
OpenTitan dma Apache-2.0 TL-UL, simpler
2 wkFPGA prototype
09

USB 2.0 device + CCID

Communication
Adapt
Recommended
no2usb CERN-OHL-P / LGPL

Compact full-speed USB device core in plain Verilog, proven on FPGAs.

What we take
  • rtl/usb.v + usb_phy.v, usb_trans.v, usb_ep_buf.v (core is CERN-OHL-P permissive)
RionCore adds

CCID class firmware and APDU dispatcher in C on the RISC-V; descriptors so Windows, macOS, Linux, Android and iOS load their built-in smart-card driver.

Alternatives
OpenTitan usbdev Apache-2.0 TL-UL, security-reviewed
ValentyUSB BSD-3 Migen / LiteX
usbd-ccid Apache-2.0 CCID class reference (Rust)
6 wkSimulatorFPGA prototype
10

ML-DSA-65 engine

Crypto engines
Adapt
Recommended
Adams Bridge Apache-2.0

Open ML-DSA hardware with an AHB-Lite slave port and masking options — the engine inside Caliptra 2.

What we take
  • src/abr_top/rtl/abr_top.sv + ntt_top, rej_sampler, rej_bounded, sample_in_ball, makehint, abr_sha3
  • Golden model: mldsa-native with MLD_CONFIG_PARAMETER_SET=65
RionCore adds

Adams Bridge implements ML-DSA-87. For ML-DSA-65 change (k, l) from (8, 7) to (6, 5), η 2→4, τ 60→49, ω 75→55 — this touches the bounded sampler, secret-key packing, challenge sampling and hint logic. Remove the ML-KEM part to save area.

Alternatives
OTBN ML-DSA-87 code Apache-2.0 software on OpenTitan’s big-number core
PQClean CC0 / various portable C reference
CRYSTALS-Dilithium CC0 / Apache-2.0 original reference
14 wkSimulatorFPGA prototypeProduction FPGA
11

Keccak-f[1600] (SHA-3 / SHAKE)

Crypto engines
Reuse
Recommended
Caliptra sha3 Apache-2.0

Masked Keccak derived from OpenTitan KMAC.

What we take
  • src/sha3/rtl — or the abr_sha3 copy inside Adams Bridge
RionCore adds

Share one Keccak between ML-DSA and SHA-3 to save FPGA area.

Alternatives
OpenTitan kmac Apache-2.0 keccak_2share.sv
secworks sha3 BSD-2 small, unmasked
XKCP CC0 (mostly) test values
1½ wkSimulatorFPGA prototype
12

ECC P-256 (ECDSA)

Crypto engines
Adapt
Recommended
OpenTitan OTBN Apache-2.0

Big-number engine with hardened P-256 sign and verify programs.

What we take
  • RTL: hw/ip/otbn/rtl (has _fpga register-file variants)
  • Programs: sw/otbn/crypto — p256_sign.s, p256_verify.s, p256_ecdsa_sca.s
RionCore adds

Caliptra’s ECC engine is P-384 only, so P-256 comes from OTBN (or Mbed TLS in firmware for the first prototype). OTBN can also run ML-DSA code — a possible single-engine option.

Alternatives
Caliptra ecc Apache-2.0 secp384r1 only
Mbed TLS Apache-2.0 software, used in today’s prototype
4 wkFPGA prototypeProduction FPGA
13

AES-256 · SHA-256

Crypto engines
Reuse
Recommended
Caliptra aes + sha256 Apache-2.0

OpenTitan masked AES and secworks SHA-256, already wrapped for AHB-Lite and the key vault.

What we take
RionCore adds

Connect to the key vault so session keys never pass through the CPU.

Alternatives
OpenTitan aes Apache-2.0 TL-UL
secworks aes BSD-2 small, unmasked
1 wkSimulatorFPGA prototype
14

PUF key vault + TRNG

Security
FPGA vendor
Recommended
Caliptra keyvault Apache-2.0

Hardware key slots wired to the crypto engines — firmware can use keys but never read them. This is our gold key bus.

What we take
RionCore adds

PUF root key from the FPGA vendor’s PUF (no production-grade open PUF exists); an FPGA ring-oscillator noise source for entropy_src; derivation of K_sign, K_id, K_fw.

Alternatives
OpenTitan keymgr_dpe Apache-2.0 key ladder (replaces deprecated keymgr)
secworks trng BSD-2 FPGA entropy example
6 wkFPGA prototypeProduction FPGA
15

NVM / OTP controller · lifecycle

Security
Adapt
Recommended
OpenTitan otp_ctrl Apache-2.0

Partitioned OTP with integrity checks and lifecycle hooks.

What we take
RionCore adds

Back it with the FPGA’s eFuses or secure NVM (vendor-specific). Stores anti-rollback counter, update-key hash, lifecycle state and PIN retry counter.

4 wkFPGA prototypeProduction FPGA
16

Tamper monitor · alerts

Security
Adapt
Recommended
OpenTitan alert_handler Apache-2.0

Collects alerts and escalates (wipe keys, reset).

What we take
RionCore adds

Wire TAMP[3:0] (mesh, switches) and the FPGA’s voltage, temperature and clock monitors; escalation clears the key vault.

3 wkFPGA prototypeProduction FPGA
17

PIN policy · card applet

Security
RionCore builds
Recommended
RionCore firmware RionCore

ISO 7816-4 APDU handler, PKCS#15 file layout readable by OpenSC, PIN counter in OTP.

What we take
RionCore adds

Constant-time PIN compare, 3-try lockout, PUK reset, hybrid ECDSA + ML-DSA signing commands.

6 wkSimulatorFPGA prototypeProduction FPGA
18

SPI flash controller

System
Reuse
Recommended
OpenTitan spi_host Apache-2.0

Quad-SPI host with command queue.

What we take
RionCore adds

Flash map: firmware slot A, slot B, staging, certificate store.

Alternatives
LiteSPI BSD-2 Migen / LiteX
1½ wkFPGA prototype
19

Timer · watchdog

System
Reuse
Recommended
OpenTitan aon_timer Apache-2.0

Wake-up timer plus watchdog with bark (IRQ) and bite (reset).

What we take
  • hw/ip/aon_timer/rtl
  • rv_timer for timeouts
RionCore adds

Bite → reset and key zeroize.

1 wkFPGA prototype
20

GPIO · status LED · button

System
RionCore builds
Recommended
Small APB GPIO RionCore

About 50 lines of RTL — simpler than adapting a generator template.

What we take
RionCore adds

LED colours, button for user confirmation before signing.

½ wkFPGA prototype
21

Clock · reset · power

System
FPGA vendor
Recommended
FPGA vendor PLL + reset synchroniser Vendor

Single clock domain — the full SoC clock managers are not needed.

What we take
RionCore adds

Clock glitch monitor feeds the tamper/alert block.

1½ wkFPGA prototype

How the pieces come together

Third-party code is copied into one repository at a pinned version, so every build is reproducible and every licence is tracked. RionCore’s own RTL and firmware live beside it.

Vendor & pin

Copy each project at a fixed commit with OpenTitan’s vendor.py tool — one small description file per project.

Integrate

Wire blocks on the AHB-Lite bus in securesign_top.sv; adapters where a block uses TL-UL.

Simulate

Verilator + cocotb run the whole SoC; every signature is compared with mldsa-native and Mbed TLS.

Size check

Yosys estimates logic and memory per block, so the FPGA family is chosen on real numbers.

FPGA build

Vendor place-and-route on the prototype board; the same tests run against real hardware.

Proposed repository layout
securesign-soc/
├── vendor/                # third-party code, pinned
│   ├── caliptra-rtl/       # bus, key vault, AES, SHA, VeeR EL2
│   ├── adams-bridge/       # ML-DSA engine
│   ├── opentitan/          # OTBN, OTP, alerts, SPI, timers
│   ├── no2usb/             # USB device core
│   └── mldsa-native/       # golden model + firmware verify
├── rtl/                   # RionCore: top, firewall, GPIO, glue
├── fw/                    # boot ROM, CCID, card applet, PIN
│   └── mcuboot/            # + ML-DSA image check
├── sim/                   # Verilator + cocotb tests
├── fpga/                  # board constraints, vendor PLL
└── LICENSES/               # one notice per vendored project
Example: pinning one project
// vendor/adams_bridge.vendor.hjson
{
  name: "adams_bridge",
  target_dir: "adams-bridge",
  upstream: {
    url: "https://github.com/chipsalliance/adams-bridge",
    rev: "<tested commit>",
  },
  // only the RTL we need
  mapping: [
    { from: "src", to: "src" },
  ],
}

# fetch / update
$ util/vendor.py vendor/adams_bridge.vendor.hjson

Effort by group

Planning estimates for one experienced engineer, ±50%. They cover adapting and unit-testing each block, not system integration, side-channel work or certification.

GroupModulesBlock work
CPU subsystem5
10 wk
Bus & data movement3
6 wk
Communication1
6 wk
Crypto engines4
20½ wk
Security4
19 wk
System4
4½ wk
Total21
≈ 66 wk

Licence checklist before shipping

About this plan: project choices, folder paths and licences were checked on GitHub in November 2026 and can change. Effort figures are planning estimates, not quotes. The final IP choices are confirmed in the Simulator and FPGA-prototype phases — see the Executive Brief roadmap.
© RionCore · SecureSignExecutive Brief · Simulator · SecureSign home