
GEB-ATOM is a Keccak engine with an on-chip microsequencer. One 1600-bit state register serves either one Keccak-p[1600] state or, split at run time, two independent Keccak-p[800] states. The split is chosen per job, so the same register can run SHA-3 on one job and two MiniSHAKE128 chains on the next.
The datapath is slice-serial: the state is held as 25 lane shift registers and the round logic works on 8 slices per clock at the register heads (one state: slices 0-7 of every 64-bit lane; two states: slices 0-3 of each 32-bit half). Theta, chi and iota are slice-local, rho is a per-lane pre-rotation and pi is a lane-to-lane serial transfer, so the cross-lane wiring is 25 x 8 bits. A round takes 38 cycles for one state and 34 cycles for the two split states, plus 8 cycles per permutation. The first and last round index are parameters, so the same engine runs the 24-round Keccak-f[1600], the 12-round Keccak-p[1600] of TurboSHAKE and the 12-round Keccak-p[800] of MiniSHAKE.
The microsequencer turns a short byte-level host protocol into the engine's internal command stream: absorbing, padding, block permutations at the rate boundary, squeezing, and the CHAIN, MERGE and PATH jobs all run inside the chip. The host sends the parameters once, then only data. All storage is flip-flops; there are no memories, no latches and no clock gating.
| MODE bit | Name | Job |
|---|---|---|
| 3 (0x08) | HASH | Sponge on the single 1600-bit state: DATA absorbs (permutation every RATE bytes), FINAL pads with D and 0x80, READ squeezes (permutation every RATE bytes). Messages and outputs of any length. |
| 1 (0x02) | CHAIN | COUNT hash-chain steps `x <- H(x |
| 2 (0x04) | MERGE | One Merkle parent `H(left |
| 4 (0x10) | PATH | Climbs an authentication path: the node stays on chip, the host streams only the siblings, one level per GO. |
| 0 (0x01) | DUAL | Split the register into two Keccak-p[800] states (core 0 and core 1), each with its own 16-byte seed and address. |
The tree jobs (CHAIN, MERGE, PATH) run for every single-state family whose tree message fits one block. RATE tells the chip where to place the final pad bit: 136 for SHA3-256, SHAKE256 and TurboSHAKE256; 144 for SHA3-224, whose 28-byte nodes travel in 32-byte fields with bytes 28..31 zero; 168 for SHAKE128 and TurboSHAKE128. SHA3-384 and SHA3-512 trees, and SLH-DSA F and H in the FIPS 205 byte order, are computed with HASH jobs: the host builds each message and the chip computes every hash.
Functions verified on this design, with the parameter bytes that select them:
| Function | D | MODE | FIRST, LAST | RATE |
|---|---|---|---|---|
| SHA3-224 / 256 / 384 / 512 | 0x06 | HASH | 0, 23 | 144 / 136 / 104 / 72 |
| SHAKE128 / SHAKE256 | 0x1F | HASH | 0, 23 | 168 / 136 |
| TurboSHAKE128 / TurboSHAKE256 (RFC 9861) | host's D | HASH | 12, 23 | 168 / 136 |
| Two MiniSHAKE128 chains (16-byte values) | 0x1F | DUAL + CHAIN | 10, 21 | 68 |
| Two MiniSHAKE128 Merkle parents (32-byte outputs) | 0x02 | DUAL + MERGE | 10, 21 | 68 |
| Two MiniSHAKE128 authentication paths (16-byte nodes) | 0x02 | DUAL + PATH | 10, 21 | 68 |
| TurboSHAKE256 chain (32-byte values) | 0x1F | CHAIN | 12, 23 | 136 |
| SHAKE256 / SHA3-256 chain, merge, path | 0x1F / 0x06 | CHAIN / MERGE / PATH | 0, 23 | 136 |
| SHAKE128 / TurboSHAKE128 chain, merge, path | 0x1F / host's D | CHAIN / MERGE / PATH | 0 or 12, 23 | 168 |
| SHA3-224 chain, merge, path (28-byte nodes) | 0x06 | CHAIN / MERGE / PATH | 0, 23 | 144 |
cSHAKE, KMAC, TupleHash, ParallelHash, KangarooTwelve and SLH-DSA (FIPS 205, SHAKE parameter sets) run on the HASH sponge: the host prepares their encodings and the chip computes every Keccak call (see the verification summary below).
In DUAL mode the 200-byte state is in image order: bytes 8k..8k+3 belong to core 0 and bytes
8k+4..8k+7 to core 1. DATA input and READ output of DUAL jobs use the same order (four bytes of
core 0, four bytes of core 1, and so on). In the single-state TurboSHAKE256 chain the message is
x | 0^32 | seed | address, where the 32-byte seed and address are the two 16-byte core registers
interleaved in the same 4-byte order.
| Pin | Direction | Function |
|---|---|---|
ui_in[7:0] |
in | DIN: data or parameter byte |
uio[2:0] |
in | CMD |
uio[3] |
in | SEL: core select for WR_S and WR_A; right-child flag for PATH GO |
uio[4] |
in | TOGGLE: the host flips it to issue the command on CMD/DIN/SEL |
uio[5] |
in | unused |
uio[6] |
out | ACK: the TOGGLE level of the last accepted DATA byte or finished command |
uio[7] |
out | BUSY: the microsequencer or the engine is working, or DATA is queued |
uo_out[7:0] |
out | after READ: the byte read; otherwise: number of DATA bytes consumed, mod 256 |
The handshake is asynchronous: TOGGLE passes through a two-stage synchronizer and CMD, DIN and SEL are sampled after it, so the host may run at any speed relative to the project clock as long as it holds the pins steady until the command is taken (ACK for non-DATA commands, 2 clocks for DATA).
| CMD | Name | Effect |
|---|---|---|
| 1 | DATA | Absorb one byte. HASH: permutation every RATE bytes. PATH: one sibling byte. |
| 2 | PARAM | Shift in one parameter byte. Eight bytes in this order: D, MODE, FIRST, LAST, RATE, N, COUNT low, COUNT high. |
| 3 | WR_S | Shift one byte into the 16-byte seed register of core SEL. |
| 4 | WR_A | Shift one byte into the 16-byte address register of core SEL. |
| 5 | FINAL | HASH: pad (D, then 0x80 in the last rate byte) and run the last permutation. |
| 6 | GO | CHAIN / MERGE: run the job on the absorbed input. PATH: start one level (SEL = 1 if the kept node is the right child); the next 32 DATA bytes are the sibling. |
| 7 | READ | Return the next output byte on uo_out. HASH: permutation every RATE bytes. |
N is not used by the chip (a host can keep its output length there). After reset the parameters are D = 0x1F, MODE = HASH, FIRST = 12, LAST = 23, RATE = 136, COUNT = 1, which is TurboSHAKE256. The first DATA byte after a finished job or after a PARAM byte starts a new input (the state is cleared), so parameters are sent between messages, never inside one.
uo_out holds the byte. PATH GO is
acknowledged at once; its sibling bytes follow as DATA.uo_out.RTL simulation at a 50 MHz clock with the cocotb host of test/test.py, which drives the pins as
fast as the protocol allows (3 clocks per DATA byte). Counted from the first DATA byte to the last
READ byte; PARAM and seed/address writes are not included. A real host adds its own pin timing.
| Job | Cycles | Time at 50 MHz |
|---|---|---|
| SHA3-256, empty message, 32-byte digest | 1,405 | 28.1 us |
| SHA3-256, 300-byte message | 4,709 | 94.2 us |
| SHA3-512, 300-byte message | 7,303 | 146.1 us |
| SHAKE128, 8-byte message, 400-byte output | 5,711 | 114.2 us |
| TurboSHAKE128, empty message, 32 bytes | 913 | 18.3 us |
| TurboSHAKE256, 300-byte message, 32 bytes | 3,233 | 64.7 us |
| Two MiniSHAKE128 chains, 40 steps each | 18,630 | 372.6 us |
| TurboSHAKE256 chain, 100 steps | 50,610 | 1,012.2 us |
| Two MiniSHAKE128 Merkle parents | 1,251 | 25.0 us |
| Two MiniSHAKE128 authentication paths, height 8 | 8,542 | 170.8 us |
SKY130, 5x4 tiles, 78,716 cells after place and route (LibreLane 3.0.14). Setup and hold slack are positive at all nine corners (nom/min/max x tt/ss/ff) at 50 MHz: worst setup slack +0.057 ns (max_ss_100C_1v60), worst hold slack +0.079 ns. DRC, LVS and antenna checks are clean, and the Tiny Tapeout precheck passes.
test/test.py (above table plus message lengths around each
rate), the 25 cases of test/test_families.py (CHAIN, MERGE and PATH on SHAKE256, SHA3-256 and
TurboSHAKE256 with other D bytes, MiniSHAKE with other D bytes) and the 20 cases of
test/test_general.py (CHAIN, MERGE and PATH on SHAKE128, TurboSHAKE128 and SHA3-224) and the 4
cases of test/test_extra.py (TurboSHAKE128 PATH with two D bytes, MERGE after PATH) match
hashlib (FIPS 202), an RFC 9861 TurboSHAKE reference and a MiniSHAKE reference. The same four
test files run on the gate-level netlist.| Family | Vectors |
|---|---|
| SHA3-224 / 256 / 384 / 512 (AFT) | 4,072 |
| SHAKE128 / SHAKE256 (AFT, VOT) | 3,564 |
| SHA-3 and SHAKE Monte Carlo | 600 checkpoints |
| cSHAKE, KMAC, TupleHash, ParallelHash (SP 800-185) | 2,600 |
| SP 800-185 Monte Carlo | 10 |
| TurboSHAKE128 / 256 (RFC 9861) | 83 |
| KangarooTwelve KT128 / KT256 (RFC 9861) | 60 |
| SLH-DSA SHAKE key generation (FIPS 205, all six sets) | 60 |
| SLH-DSA SHAKE signature verification | 252 |
turboshake JavaScript package 1.0.4; no official MiniSHAKE test vectors exist yet.After reset the chip computes TurboSHAKE256 with D = 0x1F:
uo_out after each ACK. The result is
367a329dafea871c7802ec67f905ae13c57695dc2c6663c61035f59a18f8e7db.SHA3-256 of "abc":
3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532.test/test.py contains a complete host (Host class: handshake, DATA bursts with credit, PARAM,
seed and address writes) and every job above; cd test && make runs it with cocotb and Icarus
Verilog.
None. Any controller that drives 13 pins and reads 10 works, for example the RP2040 on the Tiny Tapeout demo board.
This work is supported by the Air Force Research Laboratory (agreement FA8650-24-2-2403), the U.S. DoD (award W911NF-24-1-0265), the U.S. Navy NEEC (grant N00174-23-1-0002) and the Office of Naval Research Summer Faculty Research Program.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | DIN[0] data byte in | DOUT[0]: READ byte, else DATA consumed count | CMD[0] (in) |
| 1 | DIN[1] data byte in | DOUT[1]: READ byte, else DATA consumed count | CMD[1] (in) |
| 2 | DIN[2] data byte in | DOUT[2]: READ byte, else DATA consumed count | CMD[2] (in) |
| 3 | DIN[3] data byte in | DOUT[3]: READ byte, else DATA consumed count | SEL (in): core for WR_S/WR_A, right child for PATH GO |
| 4 | DIN[4] data byte in | DOUT[4]: READ byte, else DATA consumed count | TOGGLE (in): flip to issue a command |
| 5 | DIN[5] data byte in | DOUT[5]: READ byte, else DATA consumed count | |
| 6 | DIN[6] data byte in | DOUT[6]: READ byte, else DATA consumed count | ACK (out): TOGGLE level of the last accepted command |
| 7 | DIN[7] data byte in | DOUT[7]: READ byte, else DATA consumed count | BUSY (out) |