r/chipdesign • u/hertz99 • 1h ago
Built a clean WaveDrom-compatible timing diagram & CSR editor (runs locally in browser, MIT)
I love WaveDrom for writing specs, but I always wanted a more modern, publication-grade look for timing diagrams and CSR bitfields without giving up WaveDrom JSON compatibility
I put together a small open-source browser tool (WaveDeck) that stays compatible with standard WaveDrom JSON (both waveforms and reg bitfields) while rendering SVGs/PNGs out of the box, plus a few optional annotations I kept wishing WaveDrom had (phase spans, event markers like stall/flush, direction tags, and footer note cards).
- Live: https://wavedeck.hertzware.dev/
- Repo (MIT, plain JS, no build step): https://github.com/hertzware/wavedeck-studio
- Agents friendly, MCP and Skill file are part of the github project.
A few practical things I made sure to keep:
- Everything runs 100% client-side with
connect-src 'none'CSP — no backend, no analytics, and share links stay in the#URL hash so nothing leaves your browser (important if you're sketching internal block specs). - There's a "Copy Strict WaveDrom" button that strips out the extra studio fields so you can always drop the JSON straight back into standard WaveDrom.
- Included a handful of real templates I tend to reuse (AXI4 back-to-back reads, APB4 wait states, AHB, ARM Q/P-Channel, RISC-V 3-stage pipeline stall/flush, PLIC claim/complete, plus a blank starter.
It's still v1 — right now editing is JSON5-first (with double-click on canvas to edit titles/labels/cards without clobbering // comments) and CSRs are single-register only.
Click-to-draw waveforms and multi-register maps are on my list next.
If anyone tries it on their own WaveDrom specs and hits a rendering quirk or missing spec behavior, I'd genuinely appreciate the bug reports or feedback.