A packet-header engine you reprogram instead of respin when the wire spec moves
The Zen Programmable Packet Processor (zen_pickpacket) is an inline, reprogrammable header engine for an SoC datapath. It parses a packet off AXI-Stream, extracts and modifies header fields, classifies the flow, and reserializes the packet on egress — all driven by loadable field descriptors, a parse-graph table, and firmware rather than fixed wiring. When the industry spec changes, you absorb it with a reprogram on the same silicon. Product / integrator view; every number is sourced from the as-built RTL or marked TBC with an owner.
1. PICKPACKET in one paragraph
A fixed-function packet block forces a silicon respin the day the industry spec moves a field. zen_pickpacket is built so that spec change becomes a reprogram, not a respin. It sits inline on a byte-wide AXI-Stream path: packets arrive, fill a packet buffer, and are processed by one of three tiers that share a single field-descriptor model, then (optionally) reserialized back onto AXI-Stream. Descriptors, the parse-graph, the steering policy, and firmware are all loaded over the CSR face at runtime — so you change what the engine parses, modifies, and classifies by writing registers and loading code, not by taping out again. The motivating case, a transport field-layout change, is absorbed end-to-end by reprogram only, with identical logical results on the same RTL.
- upstream / downstream datapath
- packet processor (tiered engine)
- packet buffer
{msb, lsb, endian, valid} per slot — and that one description feeds whichever tier services the packet. Per-flow steering routes each packet to the cheapest capable tier, with the programmable core as the always-available fallthrough.2. The three tiers, at a glance
Each tier trades cost against flexibility. You enable the ones a flow needs and let steering pick per packet.
| Tier | What it does | Cost | Reconfigured by | Status |
|---|---|---|---|---|
| Tier 0 — fast path | Hardwired common-header field positions, extracted combinationally | zero core cycles (line-rate) | fixed by design | exists |
| Tier 1 — parse-graph | Walks a CSR node table, emits {class_hit, class_tag} | bounded walk, no core | table reload, no firmware | exists |
| Tier 2 — RV32I ASIP | Single-cycle core with custom field ops pkfx / pkfi / pkcl | one instruction / clock | firmware + descriptor reload | exists |
| Field descriptors | {msb, lsb, endian, valid} per slot; width 1..32 bits | 8 slots (default) | CSR write | exists |
| Per-flow steering | Classify, then route to cheapest capable tier; Tier-2 fallthrough | — | steering-policy CSR | exists |
| Clock frequency (fmax) | not yet characterized on silicon | TBC | owner: PD | TBC |
| Line rate (Gbps) | representative rate pending characterization | TBC | owner: verif | TBC |
Sources: Zen PICKPACKET product datasheet; as-built RTL.
3. How a client uses it
- Instantiate the core inline on your AXI-Stream datapath and wire its CSR face to an APB or AXI4-Lite window.
- Describe the fields you care about — write one descriptor per slot (
{msb, lsb, endian, valid}); that single description drives extract, modify, and classify. - Pick a tier per flow — hardwired fast path for the stable common header, a parse-graph reload for variants that keep the same shape, or firmware for anything the fixed and table tiers cannot express.
- Reprogram in the field — when the spec moves, reload descriptors, the parse-graph node table, and/or firmware on the same silicon; extract has an exact masked, endian-correct inverse (
pkfi) that writes the modified field back for deparse.
4. Verification & provenance
- Byte-exact verification: an assertion-based testbench drives the CSR bus and both AXI-Stream interfaces against an independent golden extractor / inserter / classifier plus a tiny RV32I assembler — 23 of 23 tests passing, byte-exact.
- Coverage spans field extract (aligned, unaligned, endian, 1-bit, multi-slot), descriptor reprogram, Tier-1 classify and reload-without-firmware, Tier-0 fast extract, the
T0==T2equivalence that proves the programmable path matches dedicated logic on the common case, per-flow steering with fallthrough, and a full spec-change drill absorbed by reprogram only. - Synthesis-clean: Yosys synthesis check passes with no inferred latches; green in portfolio regression.
- Provenance: owned and maintained by the Zen peripheral team. Internal soft-license by default; the kit is license-ready-structured for external engagement.
Sources read
Sources: Zen PICKPACKET product datasheet (overview, features & compliance, functional overview, performance, verification & deliverables, ordering & licensing); as-built RTL.