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

Boot and run your SoC straight out of QSPI flash — no copy to RAM

The Zen QSPI flash controller is a Quad-SPI NOR controller a client drops into their SoC to reach external flash two ways from one shift engine: a software-driven command engine that runs any JEDEC SPI-NOR command, and a hardware XIP (execute-in-place) path that maps flash into the address space so a CPU reads and executes code directly from it. Product / integrator view; every number is sourced from the product datasheet or marked TBC with an owner.

1. QSPI in one paragraph

The controller splits the peripheral bus into two regions by the top address bit. A CONFIG region exposes a 10-register CSR file plus byte-wide TX/RX FIFOs that drive the command engine — program a transfer descriptor (opcode → optional 3/4-byte address → dummy cycles → data), pick the I/O width per phase, and set START to run any flash command. An XIP read region at base 0x8000_0000 turns a plain bus read into a preconfigured fast-read to flash: the controller fetches the word, assembles it little-endian, and returns it as the read response — the execute-from-flash boot path, with no firmware copy step. Both masters share one shift engine and serialize automatically, so there is no interleave and no deadlock.

x1 / x2 / x4per-phase single / dual / quad lanes
0x8000_0000memory-mapped XIP read region
10 CSRsCTRL … XIPCFG register file
15 / 15assertion-based tests passing
host busaddr[31] split command enginedescriptor · FIFOs XIP fetchfast-read · 4 B shift enginex1/x2/x4 NORflash CONFIG XIP read sclk/cs/io
Figure 1. The host bus splits by addr[31]: CONFIG reads/writes drive the software command engine; an XIP read is served transparently by a fast-read to external NOR flash. Both share one shift engine out to the flash pins.
Run code without ever copying it to RAM. Once XIP is configured, a CPU or fabric read into the mapped region returns flash data as an ordinary bus read — the bus stalls naturally across the multi-cycle fetch, then delivers the word. That is the whole execute-in-place boot path, with no DMA stage and no shadow copy.
XIP is read-only by construction. A write into the XIP region is rejected with a bus error and never touches flash. Program and erase go through the software command engine; XIP serves fetches only.

2. What it is, at a glance

ElementDetailDefaultStatus
Flash protocolQuad-SPI NOR, SPI mode 0 (CPOL=0, CPHA=0)—exists
Command descriptoropcode · addr 0/3/4 B · dummy · dir · len · per-phase width—exists
Lane modessingle (x1) / dual (x2) / quad (x4), selectable per phase—exists
XIP read regionaddr[31]=1, base 0x8000_0000, read-only—exists
XIP fetch width4 bytes per bus word, little-endian4 Bexists
TX / RX FIFOsbyte-wide, depth FIFO_DEPTH8exists
SCLK generationclk_i / (2 × (CLKDIV+1))—exists
Register fileCTRL … XIPCFG10 CSRsexists
Interrupt1 aggregated line (tx/rx threshold, transfer-done)—exists
Max SCLK frequency @ nodetiming sign-off downstreamTBCTBC

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

3. How a client uses it

  1. Instantiate the controller on the native Zen peripheral bus; tie the four IO lanes, SCLK, and chip-select to the external NOR flash pins.
  2. Bring up over the command engine — program a descriptor (read-ID, then a fast-read), push/pop bytes through the TX/RX FIFOs, and poll STATUS.busy or service the aggregated interrupt on transfer-done.
  3. Configure XIP once — set the fast-read opcode, address bytes, dummy cycles, and data width in XIPCFG, then enable the region.
  4. Execute in place — point the CPU or boot ROM at 0x8000_0000 + offset; reads return flash data transparently and code runs straight from flash, no copy to RAM.
  5. Maintain firmware — page-program, erase, and read-status sequences through the command engine keep firmware images, calibration tables, or config in flash. Command and XIP coexist on the shared engine and serialize automatically.

4. Verification & provenance

Sources read

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