How sxvirel/segel-ascon works
Segel Ascon is Tiny Tapeout hardware that adds a key-protected Ascon-AEAD128 authentication tag to a SHA-256 design while sharing its 320-bit register state. The principal flow is: a host provisions a key and challenge over the bus, selects Ascon mode and starts authentication, the RTL runs a fixed-round computation, and the host reads the tag. The diagram also preserves the legacy SHA mode and the reference-model/KAT validation capability. RTL internals are described at the level documented in the README; sampled source does not include the RTL implementation itself.
Main entry points: project.v Mode and control · segel_model.py Register-level model · ascon_round.v Ascon round · sha256_round.v SHA-256 round
Components 13
Chip interface
- Top-level chip
work/rtl/project.v - Bus protocol
work/rtl/project.v - Mode and control
work/rtl/project.v - Write-only key
work/rtl/project.v - Status and tag reads
work/rtl/project.v
RTL datapath
- Shared state registers
work/rtl/project.v - Ascon MAC sequence
work/rtl/project.v - Ascon round
work/rtl/ascon_round.v - SHA-256 round
work/rtl/sha256_round.v
Reference validation
- Register-level model
work/ref/segel_model.py - PyAscon implementation
work/ref/pyascon/ascon.py - Ascon KAT vectors
work/ref/kat/LWC_AEAD_KAT_128_128.txt
Other components
- Bus host
Connections 15
- Bus host → Bus protocol: transfers bus bytes
README.md - Bus protocol → Top-level chip: drives chip interface
README.md - Top-level chip → Mode and control: dispatches commands
README.md - Mode and control → Write-only key: loads or clears
README.md - Mode and control → Ascon MAC sequence: starts MAC
README.md - Ascon MAC sequence → Shared state registers: updates shared state
README.md - Ascon MAC sequence → Ascon round: runs one round
README.md - Mode and control → SHA-256 round: allows SHA rounds
README.md - Bus protocol → Shared state registers: writes challenge
README.md - Bus protocol → Write-only key: writes key bytes
README.md - Shared state registers → Status and tag reads: supplies tag bytes
README.md - Mode and control → Status and tag reads: reports status
README.md - Status and tag reads → Bus host: returns tag and status
README.md - Register-level model → PyAscon implementation: imports implementation
work/ref/segel_model.py - Register-level model → Ascon KAT vectors: loads test vectors
work/ref/segel_model.py