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.
- Timers sub-blocks
- host / client SoC
- interrupt / reset lines
(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
| Element | Detail | Default | Status |
|---|---|---|---|
| Timer channels | independent; 16-bit prescaler + 32-bit down-counter each | 4 | exists |
| Timer modes | periodic (auto-reload) or one-shot (self-disabling) | — | exists |
| Timer PWM | one output per channel; duty set by compare threshold | 4 | exists |
| Free-running counter | global 64-bit up-counter, tear-free coherent read | — | exists |
| Watchdog counter | programmable 32-bit timeout + 8-bit prescaler | — | exists |
| Watchdog protection | window (early-kick) check, early-warning IRQ, sticky lock | — | exists |
| Watchdog frontends | APB4 and AXI4-Lite wrappers | — | exists |
| RTC tick | 1 Hz from 32-bit prescaler; live sub-second phase readout | — | exists |
| RTC calendar | sec→min→hour→day→month→year; masked alarm interrupt | — | exists |
| RTC leap rule | simplified (year % 4); one-line extension for full Gregorian | — | TBC |
| Max fmax @ node | functional sign-off shipped; timing set downstream | TBC | TBC |
Sources: Zen Timers product datasheet; Timers license kit; as-built RTL.
3. How a client uses it
- 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.
- 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.
- 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.
- 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
- Assertion-based DV, all passing: 28 / 28 tests across the three sub-blocks (Watchdog 6, Timer 10, RTC 12). Checks are discriminating and differential — exact fire-to-fire periods (±1 clock), prescaler ratios, PWM duty, one-shot self-disable, tear-free 64-bit reads, exact calendar roll-overs (including year-end and leap/non-leap February), and alarm enable-gating in both directions.
- Synthesis gate: all three cores pass the no-inferred-latch synth check, independently re-verified alongside DV at each design review.
- Known limitation, stated honestly: the RTC leap rule is simplified to
year % 4— a licensee extends one calendar case line for the full Gregorian century exception. Surfaced in the kit and RTL header, not claimed as full-Gregorian.
Sources: Zen Timers product datasheet; Timers license kit; as-built RTL.