Timing Diagram Generator
{{ summaryTitle }}
{{ summaryLine }}
Phase comparison unavailable.
| Signal | Group | Wave | Slots | States | Data labels | Copy |
|---|---|---|---|---|---|---|
| {{ row.name }} | {{ row.group || '—' }} | {{ row.wave }} | {{ row.slots }} | {{ row.states }} | {{ row.data || '—' }} |
Similar tools
- Sequence Diagram Generator Turn a bounded participant-and-message definition into an inert sequence diagram with line-level validation and an ordered interaction ledger.
- Flowchart Generator Turn a reviewed text definition into a validated SVG flowchart, with reachability checks for every start-to-end process path.
- SVG Path Editor Edit SVG path commands and transforms in your browser, sanitize unsafe markup, and review command structure before copying or downloading.
- SVG Placeholder Generator Create an SVG placeholder with exact pixel dimensions and readable labels, then copy accessible markup or CSS with contrast warnings for layout work.
Digital signals are easier to review when their changes share one horizontal time axis. A timing diagram lines up clocks, control lines, buses, and event relationships so a reader can see which state came first, how long it lasted, and which transitions were meant to coincide.
The drawing is a declaration of expected or observed behavior, not a hardware simulation. It does not calculate propagation delay, setup time, hold time, metastability, or electrical voltage. Those facts must come from a device specification, simulator, logic analyzer, or oscilloscope.
- Signal lane
- One named row whose wave string describes states or clock activity over successive time slots.
- Data label
- Text attached to a bus-shaped state, such as an address, command, or transaction phase.
- Node and edge
- A named point on a lane and a relationship drawn between two named points.
Periods and phases change how a lane is positioned against the shared axis. Groups organize related lanes, while ticks and tocks add time labels above or below the drawing. These choices improve communication only when everyone reading the diagram uses the same time basis.
A clean rendering can still describe the wrong transaction. Compare lane names, data labels, transition order, and relationship arrows with the reviewed protocol or trace before treating the diagram as evidence.
How to Use This Tool:
Write a bounded WaveJSON object that describes the lanes and relationships you need to review.
- Enter strict JSON in WaveJSON source. Start with a non-empty
signalarray and give every material lane anameandwave. - Add
datalabels for bus states,nodemarkers for named points, and anedgearray only when those relationships are part of the reviewed behavior. - Use
head,foot, orconfig.hscalefor time labels and horizontal scale. Correct the first validation message if the JSON, property set, wave symbols, or limits are rejected. - Enable Longest-first review to review lanes with the longest declared slot counts first.
- Compare the timing diagram with Phase comparison. Check the maximum slot count and clock count, then use Signal ledger to review lane order, slot and state counts, and data labels before saving the drawing.
Interpreting Results:
The SVG is the visual reading of the accepted WaveJSON. The maximum time-slot figure is the longest declared lane, not elapsed time in seconds. A clock count reports lanes containing clock symbols; it does not measure frequency.
Phase comparison varies only the first source lane's phase through −80, −40, −20, 0, 20, 40 and 80 WaveDrom phase units, adding the entered phase if distinct. Start displacement is the entered phase minus the candidate phase, with the current phase marked at zero shift. Positive shift is later than the entered start. All other declarations stay fixed; these shifts do not estimate physical timing uncertainty.
- Use lane state counts to spot dense activity, not to infer switching power or bus utilization.
- Treat edges as annotated relationships between declared nodes, not measured causal or timing guarantees.
- Verify important boundaries against the source order and the underlying specification or trace.
Technical Details:
WaveJSON represents each lane as a compact sequence of symbols. Most symbols consume one time slot; a period marker extends the previous state, while visual gap and phase markers do not increase the reported slot count. The accepted object is normalized before it is rendered, so unsupported properties never reach the diagram.
Rule Core:
| Area | Accepted rule | Boundary |
|---|---|---|
| Root | Strict JSON object with signal and optional edge, head, foot, and config | 20,000 source characters |
| Lanes | name and wave, with optional data, node, period, and phase | 1 to 24 lanes; 80 slots per lane |
| Wave string | Clock symbols pPnNhHlL, states 01xduz=23456789, extension ., and markers |<> | The first counted symbol cannot be . |
| Groups | A group is an array beginning with its name followed by lanes or child groups | At most 2 nested group levels |
| Data | Text or an array of text, finite numbers, and booleans | 80 labels per lane; 80 characters per array label |
| Relationships | Node markers use letters, numbers, and .; edges are WaveDrom relationship strings | 32 edges; 120 characters per edge |
| Lane timing | period from 0.25 to 16 and phase from -80 to 80 | Both endpoints are accepted |
| Scale and labels | config.hscale is 1 to 4; head and foot accept text, tick, tock, and every | every is an integer from 1 to 80 |
Transformation Core:
| Stage | Transformation | Result |
|---|---|---|
| Parse | Read strict JSON and reject a non-object root. | One bounded WaveJSON object |
| Validate | Allow only the documented root, lane, header, and scale properties; clean visible control characters from labels. | Renderable text and known properties only |
| Measure | Walk groups and lanes, count slots, state changes, clock-bearing lanes, groups, and edges. | Signal ledger values and summary counts |
| Render | Pass the normalized declaration to WaveDrom 3.6.2. | An SVG timing diagram |
Longest-first review sorts only Signal ledger rows by descending declared slot count, with original source order as the tie-breaker. The rendered SVG and Phase comparison's first-source-lane reference stay fixed.
FAQ:
Why does valid WaveDrom source fail to load?
The accepted profile is intentionally smaller than the full WaveDrom language and requires strict JSON. Remove unsupported properties, use double-quoted JSON keys and strings, and stay within the lane, slot, group, label, and edge limits.
Does the diagram prove that a circuit meets timing?
No. It renders the declared sequence. Verify real timing with the relevant device limits, simulation, static timing analysis, or captured measurements.
References:
- Hitchhiker's Guide to the WaveDrom, WaveDrom.