How silicap/chipathon-2026 works
This repository implements an ML-KEM-oriented NTT chip, plus a host harness for exercising it on a Tiny Tapeout board, an FPGA rig, or a software chip. The principal workflow streams coefficient and operation words through the harness to the chip, which performs NTT, inverse NTT, base multiplication, or scaling and returns sampled output bytes. The README documents the chip and its harness; RTL inter-module wiring is not shown in the supplied excerpts, so those relationships are marked unverified rather than asserted as calls.
Main entry points: ntt_core.v NTT core · main.c RP2350 firmware · ntt_chip.c Chip job harness · app.c Test and demo apps
Components 21
Chip interface
- NTT chip top
src/tt_um_NTT_Core.v - Input capture
src/io_in_capture.v - Output packing
src/io_out_pack.v
Chip control
- NTT control
src/ntt_ctrl.v - NTT scheduler
src/ntt_sched.v - Pipeline delays
src/ntt_delay.v
NTT datapath
- NTT core
src/ntt_core.v - Modular multiplier
src/modq_mul.v - Modular add/sub
src/modq_addsub.v - Modular accumulator
src/modq_acc.v - Twiddle factors
src/ntt_twiddle.v - Zeta ROM
src/zeta_rom.v
Host harness
- RP2350 firmware
rp2350/rp/main.c - Test and demo apps
rp2350/core/app.c - Chip job harness
rp2350/core/ntt_chip.c - PIO DMA transport
rp2350/rp/tt_rp.c - Software chip
rp2350/core/swchip.c - NTT reference model
rp2350/core/ntt_ref.c - Operation timing log
rp2350/core/oplog.c - PC harness
rp2350/pc/pc_main.c
Other components
- Host operator
Connections 21
- Host operator → RP2350 firmware: sends commands
rp2350/rp/main.c - RP2350 firmware → Test and demo apps: dispatches tests
rp2350/rp/main.c - Test and demo apps → Chip job harness: runs chip jobs
rp2350/core/app.c - RP2350 firmware → PIO DMA transport: selects transport
rp2350/rp/main.c - RP2350 firmware → Software chip: initializes fallback
rp2350/rp/main.c - Chip job harness → PIO DMA transport: streams pin words
- Chip job harness → Software chip: streams pin words
- PC harness → Test and demo apps: dispatches tests
rp2350/pc/pc_main.c - Test and demo apps → NTT reference model: checks results
- Chip job harness → Operation timing log: records timing
- NTT chip top → Input capture: receives inputs
- NTT chip top → NTT control: controls operations
- NTT control → NTT scheduler: schedules work
- NTT scheduler → NTT core: sequences transforms
- NTT core → Modular multiplier: uses arithmetic
- NTT core → Modular add/sub: uses arithmetic
- NTT core → Modular accumulator: accumulates results
- NTT core → Twiddle factors: applies factors
- Twiddle factors → Zeta ROM: reads constants
- NTT core → Pipeline delays: aligns pipeline
- Output packing → NTT chip top: returns outputs