Zen Peripherals · System & Platform Glue · brief · 2026-11-04

How do two cores on one SoC hand each other a message without polling shared memory?

The Zen Mailbox / IPC controller is a small hardware inter-processor communication block a client drops between the cores of their SoC. A sender writes a 32-bit message, rings a doorbell aimed at a receiver core, and the receiver takes an interrupt, reads the message, and acks — no shared-memory polling, no lock. Product / integrator view; every number is sourced from the Zen Mailbox datasheet or marked TBC with an owner.

1. Mailbox in one paragraph

The mailbox gives a client NUM_CH bidirectional channels between NUM_CORES endpoints — four channels across two cores by default. A sender writes a 32-bit message into a channel, then rings that channel's doorbell and names the target receiver core in the write data. The doorbell sets a pending bit for that (core, channel), which — if the receiver has the channel enabled — raises the receiver's interrupt one cycle later. The receiver reads the message and acks by write-1-to-clear, dropping the interrupt once nothing enabled is left pending. No core spins on shared memory, and no doorbell is ever lost: a fresh ring landing in the same cycle as a stale ack wins.

4 × 2channels × endpoint cores (default)
32-bitmessage per channel
1 cycledoorbell → pending bit set
APB / AXI4-Litehost attach via kit frontend
Zen Mailbox / IPC sender corewrites + rings IP / IE matrixcore × channel per-channel FIFO32-bit message receiver corereads + acks msg + ring pending irq[core] read / ack
Figure 1. A sender core writes a message and rings a doorbell through the Zen Mailbox; the message lands in that channel's FIFO, a per-(core,channel) pending/enable matrix raises the receiver's interrupt, and the receiver reads and acks.
No polling, no lock. Delivery is a doorbell and an interrupt, not a shared-memory spin-loop — the sender writes once and moves on, the receiver wakes on its own interrupt vector. Each core sees only its own pending/enable row.
A full channel rejects, it does not overwrite. If a second message arrives before the first is read, the push is rejected and a sticky per-channel overflow flag is set — the held message is never corrupted and nothing is silently lost. Size FIFO_DEPTH to your producer/consumer slack, and have firmware clear the overflow flag.

2. What it is, at a glance

ElementDetailDefaultStatus
Channelsbidirectional, independent4exists
Endpoint coresmessaging endpoints2exists
Message32-bit word, push on write / pop on read—exists
Per-channel FIFOsingle-slot mailbox at depth 1; in-order queue above1exists
Doorbellper-channel ring, target core in write data—exists
Interruptper-core vector, IE-gated reduction of pending row—exists
Set-wins collisionfresh doorbell survives a same-cycle ack—exists
Overflow flagsticky, per channel, write-1-to-clear—exists
Host frontendsAPB and AXI4-Lite via kit frontend—exists
Sustained message rate / latency under contentioncharacterized timing runTBCTBC

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

3. How a client uses it

  1. Instantiate the mailbox and choose NUM_CH, NUM_CORES, and FIFO_DEPTH; attach it over the native peripheral bus, or wrap it with an APB / AXI4-Lite frontend from the kit; wire each irq line to its receiver core.
  2. Send — the sender writes the 32-bit message into a channel, then rings that channel's doorbell with the target core in the write data.
  3. Receive — the receiver takes its interrupt, reads the channel's pending view, pops the message, and write-1-to-clears the pending bit to ack; the interrupt drops when nothing enabled remains.
  4. Enable / recover — set each core's interrupt-enable mask to choose which channels wake it; on a full channel, read and clear the sticky overflow flag.

4. Verification & provenance

Sources read

Sources: Zen Mailbox product datasheet (overview, features, functional, programming model, register map, performance, verification, licensing); as-built RTL.