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.
- Zen Mailbox / IPC
- sender / receiver cores
- per-channel FIFO
FIFO_DEPTH to your producer/consumer slack, and have firmware clear the overflow flag.2. What it is, at a glance
| Element | Detail | Default | Status |
|---|---|---|---|
| Channels | bidirectional, independent | 4 | exists |
| Endpoint cores | messaging endpoints | 2 | exists |
| Message | 32-bit word, push on write / pop on read | — | exists |
| Per-channel FIFO | single-slot mailbox at depth 1; in-order queue above | 1 | exists |
| Doorbell | per-channel ring, target core in write data | — | exists |
| Interrupt | per-core vector, IE-gated reduction of pending row | — | exists |
| Set-wins collision | fresh doorbell survives a same-cycle ack | — | exists |
| Overflow flag | sticky, per channel, write-1-to-clear | — | exists |
| Host frontends | APB and AXI4-Lite via kit frontend | — | exists |
| Sustained message rate / latency under contention | characterized timing run | TBC | TBC |
Sources: Zen Mailbox product datasheet; as-built RTL.
3. How a client uses it
- Instantiate the mailbox and choose
NUM_CH,NUM_CORES, andFIFO_DEPTH; attach it over the native peripheral bus, or wrap it with an APB / AXI4-Lite frontend from the kit; wire eachirqline to its receiver core. - 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.
- 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.
- 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
- Assertion-based DV: a cocotb testbench with byte-exact message checks, run across both the single-slot and queue configurations; the set-wins doorbell/ack collision is caught by a single-clock-edge assertion.
- Independently re-run: the full suite was re-verified from fresh copies in both FIFO configurations; synthesis passes the portfolio's latch-free gate (no inferred latches) in both configs.
- Provenance: owned by the Zen peripheral group; delivered as a kit — parameterized RTL, peripheral-bus include, verification IP, compliance testbench, and micro-architecture spec. Internal soft-license by default; kit is license-ready for external use.
Sources read
Sources: Zen Mailbox product datasheet (overview, features, functional, programming model, register map, performance, verification, licensing); as-built RTL.