Zen Peripherals · Serial I/O · brief · 2026-11-04

A compact single-master I2C controller you drop onto your SoC bus

The Zen I2C master is a single-master I2C-bus controller a client instantiates to reach sensors, EEPROMs, PMICs and other I2C peripherals from firmware. It frames transactions on the wire — START, repeated-START and STOP, MSB-first bytes, per-byte ACK/NACK — and decouples firmware from bus timing with byte-wide TX/RX FIFOs and a single aggregated interrupt. It attaches to the common Zen peripheral bus, or to APB4 / AXI4-Lite via the standard frontends. Product / integrator view; every number is sourced from the as-built RTL or marked TBC with an owner.

1. I2C master in one paragraph

The Zen I2C master is a firmware-driven single master. Software programs the control and clock-divider registers once, pushes bytes into the TX FIFO, then issues self-clearing command pulses — START, repeated-START, READ, WRITE, STOP, plus the ACK value to drive on reads — to move each byte on the two-wire bus. It generates START/repeated-START/STOP conditions, shifts bytes MSB-first, and handles per-byte ACK/NACK: it samples the slave's ACK on writes and drives ACK/NACK on reads. When a slave holds SCL low the master stalls and reports the stretch in status, so slow devices never lose a bit. Each line is an open-drain {out, out-enable, in} triple wired to open-drain pads externally — cleanly synthesizable, no tri-state.

7 / 10-bitaddressing modes
8-entryTX + RX byte FIFOs (default)
4·(CLKDIV+1)SCL period, in clk cycles
APB4 / AXI4-Litehost attach frontends
hostperiph / APB4 / AXI4-Lite Zen I2Cbit / byte engine TX / RX FIFOs I2C busSCL / SDA (open-drain) CSR + DATA byte buffer SCL / SDA irq
Figure 1. The Zen I2C master sits between the host bus and the I2C wire: the host reaches it over the peripheral bus (or an APB4/AXI4-Lite frontend); byte FIFOs buffer DATA; the bit/byte engine drives open-drain SCL and SDA and raises one aggregated interrupt.
FIFOs and one interrupt keep firmware off the bus clock. Byte-wide TX and RX FIFOs (default depth 8) decouple software from wire timing, and a single aggregated interrupt reports TX-threshold, RX-nonempty, transfer-done, NACK and arbitration-lost events — so firmware can queue bytes and service the transfer on an interrupt rather than polling every bit.
Single-master scope in v1. The controller is a single master: multi-master arbitration recovery, SMBus PEC and slave (device) mode are not in v1. The arbitration-lost status and interrupt bits are wired, but are not driven by contention detection in the single-master build.

2. What it is, at a glance

ElementDetailDefaultStatus
Bus rolesingle-master I2C controller—exists
Addressing7-bit and 10-bit (selectable)7-bitexists
ConditionsSTART · repeated-START · STOP—exists
Byte framingMSB-first; 8 data + 1 ACK bit—exists
ACK/NACKsample slave on write, drive on read—exists
Clock stretchingmaster stalls when slave holds SCL low—exists
SCL dividerprogrammable; SCL period = 4·(CLKDIV+1) clocks16-bitexists
TX / RX FIFOsbyte-wide, per direction8exists
Interrupt1 aggregated line, 5 sources—exists
Host frontendsnative peripheral bus · APB4 · AXI4-Lite—exists
Pin modelopen-drain {out, oe, in} triple per line—exists
Max SCL rate / mode dividerscharacterized Standard/Fast ratesTBCTBC

Sources: Zen I2C product datasheet; as-built RTL.

3. How a client uses it

  1. Instantiate the core and attach it to your host bus — the native Zen peripheral bus directly, or APB4 / AXI4-Lite through the standard frontend. Wire the open-drain SCL/SDA triples to your open-drain pads.
  2. Configure once — set the clock divider for your target SCL rate, select 7- or 10-bit addressing, enable the master and the interrupt sources you care about.
  3. Transfer — push address and data bytes into the TX FIFO, then issue command pulses (START, WRITE/READ, repeated-START for write-then-read, STOP). Reads land in the RX FIFO; writes report the slave's ACK in status.
  4. Service on interrupt — take the aggregated interrupt for TX-threshold, RX-nonempty, transfer-done and NACK rather than polling the wire; a NACK cleanly aborts to STOP.

4. Verification & provenance

Sources read

Sources: Zen I2C product datasheet (overview, features & compliance, functional overview, register map, performance, verification, licensing); as-built RTL.