Zen Peripherals · Timers & RTC · brief · 2026-11-04

One kit for every clock your SoC needs — timing, safety, and wall-clock

The Zen Timers block is a platform timekeeping kit a client drops into their SoC. It bundles three independent sub-blocks — a general-purpose programmable Timer (with PWM and a tear-free 64-bit timestamp), a windowed Watchdog that catches firmware lockup, and a Real-Time Clock that keeps time-of-day and date with a masked alarm. Product / integrator view; every number is sourced from the as-built RTL or marked TBC with an owner.

1. The Timers kit in one paragraph

The Zen Timers block is three timekeeping engines delivered as one kit, each independent and separately addressable. The Timer is a general-purpose, multi-channel counter: each channel pairs a 16-bit prescaler with a 32-bit down-counter for periodic ticks or one-shot delays, drives a per-channel PWM output, and the block adds a global 64-bit free-running counter you can read tear-free for timestamps. The Watchdog guards against firmware lockup — a healthy system kicks it inside a programmable window, and a hang drives a reset request or an early-warning interrupt first. The RTC keeps wall-clock time and a full calendar, raising a masked alarm interrupt for scheduled wake. All three attach to the client's peripheral bus; the Watchdog also ships APB4 and AXI4-Lite frontends.

3 blocksTimer · Watchdog · RTC (independent)
4 channelsTimer: 32-bit down-counter + PWM each
64-bittear-free free-running timestamp
28 / 28assertion-based tests — all PASS
Timers kit host / SoCperiph bus · APB4 · AXI4-Lite Timer4× presc→32b down · PWM · 64b free-run Watchdogwindowed timeout · warn · lock RTC1 Hz · calendar · masked alarm PWM + IRQ reset req+ warn IRQ alarm IRQ
Figure 1. The Timers kit attaches to the host over the peripheral bus (Watchdog also APB4 / AXI4-Lite). Three independent sub-blocks each drive their own output: the Timer a PWM + interrupt, the Watchdog a reset request + early-warning interrupt, the RTC an alarm interrupt.
Three blocks, one integration. The Timer, Watchdog, and RTC are fully independent — you instantiate only the ones you need, each with its own registers and interrupt line, all on the same peripheral bus. The Watchdog adds ready-made APB4 and AXI4-Lite wrappers so it drops straight onto an ARM-style fabric.
Absolute times depend on your clock. Every period is counter-driven and deterministic — the Timer channel fires every (prescaler+1) × (reload+1) clocks, the RTC ticks at clk_i / (prescaler+1) — so wall-clock values scale with the clk_i you supply. Max fmax at a given node is set downstream in physical design.

2. What it is, at a glance

ElementDetailDefaultStatus
Timer channelsindependent; 16-bit prescaler + 32-bit down-counter each4exists
Timer modesperiodic (auto-reload) or one-shot (self-disabling)—exists
Timer PWMone output per channel; duty set by compare threshold4exists
Free-running counterglobal 64-bit up-counter, tear-free coherent read—exists
Watchdog counterprogrammable 32-bit timeout + 8-bit prescaler—exists
Watchdog protectionwindow (early-kick) check, early-warning IRQ, sticky lock—exists
Watchdog frontendsAPB4 and AXI4-Lite wrappers—exists
RTC tick1 Hz from 32-bit prescaler; live sub-second phase readout—exists
RTC calendarsec→min→hour→day→month→year; masked alarm interrupt—exists
RTC leap rulesimplified (year % 4); one-line extension for full Gregorian—TBC
Max fmax @ nodefunctional sign-off shipped; timing set downstreamTBCTBC

Sources: Zen Timers product datasheet; Timers license kit; as-built RTL.

3. How a client uses it

  1. Instantiate only the sub-blocks you need — Timer, Watchdog, RTC — on the peripheral bus; for the Watchdog, pick the native bus or the APB4 / AXI4-Lite wrapper to match your fabric.
  2. Timer — program a channel's prescaler + reload, pick periodic or one-shot, enable its interrupt; for PWM set the compare threshold and assert PWM-enable. Read the 64-bit free-running counter (low half first) for a tear-free timestamp.
  3. Watchdog — set timeout, window, and warn thresholds, then kick (write the magic value) inside the window; a hang trips the reset request, and the early-warning interrupt fires first so firmware can checkpoint. Set the sticky lock to freeze the config until reset.
  4. RTC — freeze the cascade with write-load, set time and date atomically, release it, then program the alarm with per-field masks (e.g. match minutes and seconds only) and service the alarm interrupt on match.

4. Verification & provenance

Sources: Zen Timers product datasheet; Timers license kit; as-built RTL.