Zen Peripherals · Data Movement & Storage · brief · 2026-11-04

An SD-card and eMMC host controller you drop onto your SoC bus

The Zen SD / eMMC host controller is a digital host front-end a client instantiates to read and write removable SD cards and on-board eMMC devices from firmware. It frames the 48-bit command, computes and checks CRC-7, moves one or many data blocks over a 1- or 4-bit bus with per-line CRC-16, and drives a divided card clock. A streaming/DMA hook carries large transfers without per-block CPU service. It attaches to the common Zen peripheral bus and presents the card over plain single-ended pads — no analog or SerDes PHY. Product / integrator view; every number is sourced from the as-built RTL or marked TBC with an owner.

1. SD / eMMC host in one paragraph

The controller executes one command plus an optional data transfer per software request. Firmware programs the argument and command registers, then sets a self-clearing START bit; the engine assembles the 48-bit frame — index, 32-bit argument, inline CRC-7 — and shifts it out MSB-first on CMD. It captures the card response (R1 / R1b / R3 / R6 / R7 as 48-bit, or R2 as a 136-bit CID/CSD long response), checks the response CRC, and reports a timeout if the card stays silent. A data command then moves one or more 512-byte blocks over the DAT lines — generating CRC-16 on writes, checking it on reads, waiting out the card's DAT0 busy. SD cards and embedded eMMC share the same command/data engine, so one block serves both.

48-bitcommand frame, CRC-7 checked
1 / 4-bitDAT bus, per-line CRC-16
512 Bdefault block size (programmable)
18 / 18compliance tests passing
host busperipheral bus command engine48-bit · CRC-7 data pathCRC-16 · 1/4-bit block buffer SD / eMMCcard CSR CMD DAT[3:0]
Figure 1. The Zen SD / eMMC host sits between the SoC peripheral bus and the card: a CSR/command engine frames CRC-7 commands on CMD, a data path moves CRC-16 blocks over a 1- or 4-bit DAT bus, and a streaming hook offloads large transfers to a DMA peer.
One engine for SD and eMMC. The 48-bit command frame, CRC-7, and the CRC-16 block data path are shared between removable SD cards and embedded eMMC — you instantiate one block for both, and software sequences card identification and init over the same registers.
Line rate is set by *your* clock and bus width. Sustained throughput tracks card-clock × bus width (1 or 4 bits per card cycle), bounded by your DMA peer's back-pressure on large transfers. Absolute characterized throughput and latency are a verification deliverable and are marked TBC.

2. What it is, at a glance

ElementDetailDefaultStatus
Command frame48-bit; index + 32-bit argument + CRC-7, MSB-first—exists
Response typesR1 · R1b · R3 · R6 · R7 (48-bit) and R2 (136-bit CID/CSD)—exists
Data pathper-line CRC-16 (CCITT); single and multi-block—exists
DAT bus width1-bit (DAT0) or 4-bit (DAT0..3, four CRC-16)1-bitexists
Block sizeprogrammable, capped at 512 B512 Bexists
Multi-blockblock count N, CMD12 stop modeled after the last—exists
Streaming / DMA hookback-pressured valid/ready/data/last portsoffexists
Card clockdivided from the input clock, gated when idle—exists
Interruptone aggregated line, enable-masked, pending RW1C—exists
UHS-II / DDR · eMMC boot/RPMB · SDIOdocumented roadmap, not in v1—TBC

Sources: Zen SD / eMMC host product datasheet (overview, features & compliance, functional overview, register map); as-built RTL.

3. How a client uses it

  1. Instantiate the controller on the peripheral bus; wire the CMD, DAT[3:0], and card-clock pins to single-ended pads, and route the interrupt line.
  2. Initialize the card — software sequences identification and init (reset, voltage, address, select) by issuing commands and reading the captured responses.
  3. Transfer blocks — set block size and count, point the command at a read or write, launch it; move payload through the data window, or enable the streaming hook and attach a DMA peer for large multi-block transfers.
  4. Service completion — enable interrupt sources and respond to the aggregated line, or poll status for busy / done / error; classify command-done, data-done, timeout, and CRC errors on a write-1-to-clear pending register.

4. Verification & provenance

Sources read

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