An always-on debug co-processor you instantiate inside your design
The Zen PPU (Patch Processing Unit) is a small J1-style FORTH stack processor a client drops into their SoC as an in-silicon debug agent. It runs loadable diagnostic words to monitor (read) and intervene on (write) live registers — and its words can be field-patched while it runs, no respin. It keeps observing even when the main cores are wedged. Product / integrator view; every number is sourced from the as-built RTL or marked TBC with an owner.
1. PPU in one paragraph
The PPU is a bystander instrument, not part of the functional datapath — resetting the PPU does not reset the design it watches. The host streams FORTH words into a patch RAM (PRAM) over an APB or AXI4-Lite window; the core executes them and reaches the surrounding design over a single 16-bit I/O bus to @ monitor (read a design address) and ! intervene (write it). Because words are loaded — and hot-patched — at runtime, you reprogram what the PPU checks or fixes by loading a new word, not by taping out again.
- PPU (FORTH core)
- host / client design
- patch RAM
@/! stalls the PPU pipe until the client returns io_rd_valid / io_wr_done — a single-cycle regfile tap completes in ~1–2 cycles; a slow or off-chip tap extends proportionally.2. What it is, at a glance
| Element | Detail | Default | Status |
|---|---|---|---|
| FORTH core | J1-style; 16-bit data + instruction; TOS/NOS cached | — | exists |
| Data / return stacks | two stacks, 32 entries each | 32 | exists |
| Program space | 13-bit PC | 8K words | exists |
| Patch RAM (PRAM) | loadable + live-patchable word store | 1024 | exists |
Monitor tap @ | ALU op reads design address = TOS | — | exists |
Intervene tap ! | ALU op writes NOS to address TOS | — | exists |
| Host frontends | APB and AXI4-Lite wrappers | — | exists |
| fmax / MIPS @ node | functional sign-off shipped; timing downstream | TBC | TBC |
Sources: Zen PPU product datasheet; as-built RTL.
3. How a client uses it
- Instantiate the core + PRAM + one host frontend (APB or AXI4-Lite); tie the 16-bit I/O bus into your address decode.
- Load a FORTH diagnostic word into PRAM through the host window (held in reset to stage, or live to hot-patch a running library).
- Run / monitor / intervene — the word observes (
@) and drives (!) live design state; quiesce or single-step viaext_stall_i. - Re-patch in the field — swap a PRAM word in place to change what is checked or fixed, with the PPU running.
4. Verification & provenance
- ISA ⟷ RTL parity: the Python ISA simulator is cross-checked instruction-for-instruction against the as-built RTL, with an automated parity check guarding against drift.
- Co-sim:
PPU-VPD,BAREMETAL-PPU,UNIFIED-VPD— all PASS. Synthesis: Verilator-Wallclean, Yosys §11 (no inferred latches). - Provenance: authored by zen-debug (lineage Sur → axon.micro → zen-debug); transferred into zen-peripheral 2026-08-21. Internal soft-license; license-ready for external.
Sources read
Sources: Zen PPU product datasheet; as-built RTL.