period
Estimate a signal's dominant period within a waveform window and flag the first beat that deviates, helping identify clock stalls, dropped burst beats, and backpressure bubbles.
Instructions
Estimate a signal's dominant period inside a window and flag the first beat that deviates from it. Use for rhythm/throughput questions an LLM cannot eyeball from a transition dump: stalled clocks, dropped burst beats, backpressure bubbles, irregular strobes. The dominant period is the median edge-to-edge interval; the first off-beat is auto-registered as a cursor. Reads existing waveforms only — does NOT rerun simulation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | No | Edge to count. 'any' for multi-bit/strobe signals. Default posedge. | posedge |
| signal | Yes | Full hierarchical signal path. | |
| wave_path | Yes | Waveform (FSDB or VCD). | |
| cursor_name | No | Optional explicit cursor name for the first off-beat. Defaults to beat_<sha8>. | |
| cursor_note | No | Optional note attached to the registered cursor. | |
| end_time_ps | No | Window end. -1 means end of simulation. Accepts an integer (ps), a cursor reference like '@div_3a7c', or a unit literal like '12.34ns'. | |
| start_time_ps | No | Window start. Default 0. Accepts an integer (ps), a cursor reference like '@div_3a7c', or a unit literal like '12.34ns'. | |
| tolerance_frac | No | Fraction of the period a beat may deviate before counting as an off-beat. Default 0.05 (5%). |