# Hardware

Nothing has run on silicon yet. The 8 x 4 chip's RTL runs on an Icepi Zero FPGA, and the
bench measures it there. What passed on the board is on
[Verification](verification.md#what-is-not-proved).

## Harden

To harden, clone TinyTapeout/tt-support-tools, branch `ihp-sg13cmos5l`, into `tt/`, then
`tt/tt_tool.py --create-user-config --ihp` and `--harden --ihp`. Gds run 46133827795, on
this Verilog, signs off with setup slack +2.640 ns at the slow corner, at 65.9%
utilisation. That slack is against the harden's 20 ns clock, and the chip runs at 48 MHz,
a 20.83 ns period. The picture is this harden's die by RTL module, drawn by `demo/die.py` from its
`GDS_logs` artifact. 4,289 of 4,301 flops map by RTL line and net name. Each gate goes with
the nearest flop it feeds, which gets 96.3% of gates right on the RTL synthesised a module at
a time (`--check`).

![the hardened die, each cell coloured by its RTL module](die.png)

The [live die](https://marcosash.github.io/protocol-emulator/die/) lights the cells and
wires as they switch. The last green gds run on main is also in Tiny Tapeout's
[GDS viewer](https://gds-viewer.tinytapeout.com/?pdk=ihp-sg13cmos5l&model=https%3A%2F%2Fmarcosash.github.io%2Fprotocol-emulator%2Ftinytapeout.oas).

If the shuttle takes only 6 x 4 designs, the fallback is the 6 x 4 chip at 3160a6c, whose GDS is kept in
release [evidence-2026-10-22](https://github.com/MarcosAsh/protocol-emulator/releases/tag/evidence-2026-10-22).

## Icepi Zero

`make -C icepi` builds the chip for an Icepi Zero (ECP5 LFE5U-25F) with yosys and nextpnr:
its 50 MHz oscillator through the PLL to 48 MHz, or 40 MHz for 10BASE-T, and the pins on
the 40-pin header. The SRAM macro is its IHP behavioural model, mapped to block RAM. 48 MHz
is tight and placement moves with the seed, so the build takes the first of 16 seeds whose
clock reaches 1.6 MHz over 48 MHz.
`make -C icepi equiv` proves yosys's netlist, before nextpnr places and routes it, equal to
the RTL (`formal/icepi_equiv`, the `icepi_equiv` job).

## Bench

The bench has one permanent wiring, the carrier PCB's. The PCB is
[protocol-emulator-bench](https://github.com/MarcosAsh/protocol-emulator-bench), KiCad,
CERN-OHL-P v2. `src/bench_wiring.ml` says which logic analyser channel each chip pin
reaches. `demo/ledger.py` runs every bench demo in turn, each from a fresh load of the
bitstream, and keeps its capture, decode and logs. `demo/witness.py` turns a run into a
witness in `test/board/` and checks one again offline
(`python3 demo/witness.py check test/board/eeprom/`). `test/test_outside.py` runs the same
demos' Python on the RTL at the bench's 48 MHz and decodes the pins with the sigrok
decoders the bench uses.

## Downloads

[Release v0.5.0](https://github.com/MarcosAsh/protocol-emulator/releases/tag/v0.5.0) has
`generate-linux-x86_64`, the Icepi Zero bitstream, and the chip's GDS and render.
Release v0.2.0 holds the
[board capture](https://github.com/MarcosAsh/protocol-emulator/releases/download/v0.2.0/act3-board-2026-10-02.zip)
from 2026-10-02.
