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

A master-mode digital-audio serial controller you drop into your SoC

The Zen I2S is a master-mode digital-audio serial controller a client instantiates to move stereo audio between software and an external codec. It generates the bit clock and word-select, serializes software-supplied samples onto the data line, and deserializes the return line into a receive FIFO — in classic I2S, left-justified, or right-justified framing. Product / integrator view; every number is sourced from the product datasheet or marked TBC with an owner.

1. Zen I2S in one paragraph

The Zen I2S is the clock master of the audio link: from the SoC clock and a programmable divider it generates the bit clock (BCLK) and the word-select (LRCLK/WS) that frame left and right channels, so the attached codec simply follows. Software pushes stereo samples through a write register into a TX FIFO; the controller serializes them MSB-first onto the data-out line in the selected framing format. The return line is deserialized into an RX FIFO that software drains through a read register. TX and RX share one bit-placement rule, so a bit sent at a given position returns at the same position — making a software loopback byte-exact independent of the codec.

Masterdrives BCLK + word-select (LRCLK/WS)
3 formatsclassic I2S / left- / right-justified
16/24/32programmable word length (bits)
StereoL + R, each with its own sample FIFO
host busperiph 32-bit Zen I2Sserialize / deserialize TX / RX FIFO audio codecfollower CSR + samples samples SD + BCLK/WS irq
Figure 1. The Zen I2S sits between the host bus and an external audio codec: software moves samples through TX/RX FIFOs; the controller serializes/deserializes audio and drives BCLK and word-select to the codec.
Master clocking means the codec just follows. The Zen I2S generates BCLK and word-select itself, so you size the audio link by programming one divider — the external codec needs no clock of its own.
Interrupt-service latency, not internal throughput, sets your sizing. The audio rate is bounded by the BCLK you program, not by the controller. Each channel buffers only a few samples by default, so match FIFO depth to your ISR deadline: a TX FIFO that empties before software refills it flags underrun, and an RX FIFO that fills before software drains it flags overrun.

2. What it is, at a glance

ElementDetailDefaultStatus
Modemaster only — drives BCLK + word-select—exists
Framing formatsclassic I2S / left-justified / right-justified—exists
Word length16 / 24 / 32-bit, software-selected—exists
Channelsstereo — L + R, alternating per word-selectstereoexists
TX / RX sample FIFOsone each; parameterized depth8exists
BCLK generationSoC clock ÷ programmable divider—exists
Interruptsone aggregated line; tx/rx-threshold + under/overrun—exists
Host attachnative 32-bit peripheral bus, 1-cycle ready handshake—exists
Byte-exact TX→RX loopbackshared bit-placement rule, codec-independent—exists
Max sample rate @ nodefunction of clock, divider, word lengthTBCTBC

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

3. How a client uses it

  1. Instantiate the controller and attach it to your peripheral bus; wire the three serial lines (data out, data in, BCLK/word-select) to the codec and the interrupt line to your controller.
  2. Configure framing format, word length, and the BCLK divider for your target sample rate through the control registers, then enable TX and/or RX.
  3. Stream stereo samples: write left-then-right into the TX register to play; read left-then-right from the RX register to capture. A short deterministic priming makes real data byte-exact from the first word.
  4. Service on interrupt — the aggregated line fires on TX-threshold, RX-threshold, underrun, or overrun; enable only the sources you want and clear the sticky error flags on read.

4. Verification & provenance

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