← All projects

Jane Street ASIC competition · IHP CMOS5L · 8x4 tiles · Tiny Tapeout · hardware frozen

Nuntius: One Chip That Speaks Many Protocols

Two 60 MHz engines run protocols as firmware loaded over SPI, so a new protocol is a new program, not a new chip. Sprint, my host family's cat, is on the die.

50 protocol families, 45 added with no hardware change. Random post-freeze trial: 3 of 3. Timing met at 60 MHz (+1.096 ns); DRC and LVS clean. Not manufactured yet.

Source on GitHub Margin plots

Photo of Sprint, my host family's cat The same cat as a dithered pattern in the chip's Metal2 layer, in copper, with KHOI NGUYEN in gold on Metal3 below it
The photo, and the same picture drawn in the chip's Metal2 layer at the centre of the die

3D model

GDS → 3D

Every drawn layer of the chip, from the transistor active areas up to Metal4, including the standard cells, both SRAMs, and the cat. It is generated from the final GDS, with layer heights from the PDK, and is true to scale until you spread the layers apart.

loading layout…

Explode off (true scale) Drag to rotate · scroll or pinch to zoom · right-drag, shift-drag, or two-finger drag to pan
Layers

Specs

Overview
Chip
ProcessIHP CMOS5L, Tiny Tapeout shuttle
Area8x4 tiles
Top modulett_um_akln0401_nuntius
Clock60 MHz; slow-corner setup +1.096 ns, worst hold +0.078 ns (fast corner)
Cells24,036 standard cells at 41.3% utilization (53.3% with the SRAM macros)
MemoryTwo 256-word SRAM macros, one instruction memory per engine
Host portSPI mode 0, SCK up to 7.5 MHz at 60 MHz
Engines
Engines2, cycle-exact, 11-opcode instruction set
TimingOne instruction per divider tick plus 0–31 delay ticks, so pin timing is exact and repeatable
LaneOne per engine: 32-bit shift register, bit timer with clock recovery, CRC unit (1–32 bits, any polynomial)
Line codes8-state table-driven transducer; NRZI with stuffing, Manchester, biphase mark and CAN stuffing are table contents, not hardware
FIFOsTransmit and receive per engine, 4 words each
PinsCrossbar from each engine's 8 logical pins to 7 outputs and 8 bidirectional pads; 5 inputs

How it works

Operation

Devices talk over wires using protocols: agreed rules for what the bits on the wire look like. UART, I2C, and USB are examples. Most chips build each protocol into their hardware. Nuntius builds in none; the microcontroller on the Tiny Tapeout demo board loads a program for the protocol it needs.

  1. Assemble

    A protocol is a text program. sw/asm.py turns it into instruction words.

  2. Load over SPI

    The host writes the words into the engine's instruction memory. The chip loses its program when deselected, so the host reloads it each time.

  3. Route the pins

    The crossbar registers connect the engine's logical pins to the pads the device is wired to.

  4. Set the rate and start

    The clock divider sets the bit time. At 60 MHz and 115,200 baud, the UART example uses a divider of 130. The host writes data to the FIFO and starts the engine.

  5. Add a protocol

    Only 5 families were planned when the hardware was designed. The other 45, from UART and I2C to USB, which Linux accepts as a real 1.5 and 12 Mbit/s device, and 10 Mbit/s Ethernet, were added later as programs.

Waveforms

Surfer, RTL simulation

Screenshots of the Surfer waveform viewer on simulations of the real hardware design: the chip's pins, and engine 0's program counter (pc_q) stepping through the program. The test bench clock is 20 ns, so times here are 1.2 times longer than on the 60 MHz chip. sigrok, an independent decoder, reads these simulations as the bytes named in each caption.

Swipe sideways on each waveform to follow it in time.

Surfer screenshot. UART: byte 0xA5 on uo_0; pc_q loops 04/05, one bit per loop

UART: byte 0xA5 on uo_0; pc_q loops 04/05, one bit per loop

Surfer screenshot. I2C at 400 kHz: open-drain clock (line 1) and data (line 0); uio_oe drives low, uio_in is the wire

I2C at 400 kHz: open-drain clock (line 1) and data (line 0); uio_oe drives low, uio_in is the wire

Surfer screenshot. SPI mode 0: CS uo_2, clock uo_1, 0xA5 out on uo_0, 0x5A in on ui_in_3

SPI mode 0: CS uo_2, clock uo_1, 0xA5 out on uo_0, 0x5A in on ui_in_3

Surfer screenshot. Low-speed USB: one data packet on D+ (uio_out_0) and D- (uio_out_1)

Low-speed USB: one data packet on D+ (uio_out_0) and D- (uio_out_1)

Surfer screenshot. Manchester (10BASE-T line code): pc_q stays at 01 while the lane's encoding table sends every bit

Manchester (10BASE-T line code): pc_q stays at 01 while the lane's encoding table sends every bit

Layout

LibreLane 3.1

The full die. The two memory blocks (SRAMs) sit in the bottom corners. Sprint the cat is in the middle, drawn in the Metal2 layer, with the name on Metal3 under it.

Layout of the full Nuntius die: dense routing, two SRAM blocks in the bottom corners, and the cat art at the centre

Whole die. Along the bottom edge, between the SRAMs: "NUNTIUS JS PROTOCOL EMULATOR CHALLENGE 2027" on Metal3.

Close-up of placed standard cells: rows of flip-flops and logic gates with power rails between the rows, layers above Metal1 hidden
One NAND2 gate: two red polysilicon gates crossing two PMOS transistors in the n-well at the top and two NMOS transistors at the bottom

Closer in. Left: placed flip-flops and gates with everything above Metal1 hidden; the horizontal bands are the power rails between cell rows. Right: one NAND2 gate. The red strips are the polysilicon gates, the two PMOS transistors sit in the n-well at the top, and the two NMOS transistors sit below.

Margin testing

Shmoo
UART link shmoo plot: a grid of bit period against sample offset, with passing cells filled and the derived pass region drawn dashed

Because the program controls timing exactly, the chip can send bits a little too fast or too slow, or sample them early or late, and find where the other device stops working. The plot shows where a UART link passes and fails as the bit length (T) and the sampling time (S) change.

The dashed boundary was calculated before measuring, and all 990 measured points fall on the correct side.

Power

OpenSTA

Estimated from gate-level simulation of the final netlist: OpenSTA reads every signal change plus the extracted wire capacitance, at 1.2 V, 25 °C, 60 MHz. Core only, no pads.

Most of the 14 mW is the clock: all 3,166 flip-flops are clocked every cycle (about 10 mW) and the clock tree takes 3.9 mW. A protocol adds under 1 mW, mostly instruction-memory reads, so clock gating is where the savings are.

ProtocolRatePowerAbove idle
Idle14.0 mW
UART TX115,200 baud14.8 mW+0.8
SPI mode 014.5 mW+0.5
I2C400 kHz14.5 mW+0.5
USB TX1.5 Mbit/s14.1 mW+0.1
Manchester10 Mbit/s14.0 mW+0.0

Verification

Signoff

The chip has not been manufactured yet, so every result here comes from simulation, mathematical proof, or analysis tools. The model is a Python simulator of the chip that is exact to the clock cycle (the ISS); the RTL is the hardware description in SystemVerilog.

CheckResult
Tests comparing each block, and the whole chip, against the model0 mismatches
Bugs inserted on purpose, to see if the tests catch them741 of 776 caught; the other 35 checked by hand and cannot change any output
Formal proofs for every possible inputHost port and FIFO proved; lane proved except one 8-cycle check and its timer and counter values
Encoding tables7 of 7 library tables proved
Protocol tests50 families; 586 tests on the model and 291 on the RTL give the same results; sigrok decodes 48 of 50 test waveforms it supports
Unmodified software using the simulated chipOpenOCD (JTAG); Linux sets up the USB device over USB/IP and finds it by Ethernet ARP
Random three-protocol trial3 of 3 pass
Lines and branches reached by the 29 tests of test.py96.1 % and 93.6 %
Gate netlist matches the RTL (eqy)551 of 552 parts proved, none different; the last (1,045 output bits) is checked by simulation only
Gate-level simulation with slowest-case delays29 of 29 tests of test.py pass
Timing at 60 MHz, slowest corner+1.096 ns to spare; no layout rule errors (DRC), layout matches circuit (LVS); 3,830 max-slew warnings, not counted as failures by Tiny Tapeout

Tools

Flow

SystemVerilog

The chip's hardware description, block by block.

Python

The cycle-exact chip model, the assembler, the encoding-table prover, and the margin tester.

Verilator

Lint, and line and branch coverage of the RTL tests.

Icarus Verilog

RTL simulation, and gate-level simulation with slowest-case delays.

cocotb

Protocol tests that run the same scenario on the model and the RTL.

LibreLane, OpenROAD, Yosys, KLayout, Magic

Synthesis, place and route, timing, DRC, and LVS from RTL to layout.

Formal verification

Unbounded proofs of the SPI port, FIFO, and lane, and netlist equivalence with eqy.

sigrok

Independent decoding of the chip's pin waveforms.

IHP CMOS5L

The process the chip is laid out in, through Tiny Tapeout.

Next

Roadmap
  1. Design, verification, layout

    Done: RTL, tests, proofs, and local signoff above. The hardware is frozen at tag hw-freeze.

  2. Repository and CI

    Public repository. The Tiny Tapeout CI run of the current floorplan is pending; hw-freeze moves to it once that run passes.

  3. FPGA build

    Planned: run the chip in hardware before silicon.

  4. Bring-up on silicon

    After fabrication: the same protocol programs against real devices, and margin measurements of real links.