hdldiagzero
/hdldiagzero
Generate validated SVG block diagrams for HDL/RTL/FPGA/SoC designs. Use when asked to draw, diagram, sketch, render, or visualize Verilog, SystemVerilog, VHDL, Vivado BD, or LiteX architecture. Produces JSON specs plus SVGs, color-codes clock domains, distinguishes AXI/MM/Lite/Stream and TileLink, and hides clock/reset/JTAG/debug detail by default.
- Author
- lcapossio ↗
- Repository
- hdldiagzero ↗
- Licence
- MIT
- Last repository change
- 10.08.2026
Assessment and security
- Files in this package
- 10
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 10.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: render.py, validate.py, validate_spec.py
What it does and when to use it
Generate validated SVG block diagrams for HDL/RTL/FPGA/SoC designs. Use when asked to draw, diagram, sketch, render, or visualize Verilog, SystemVerilog, VHDL, Vivado BD, or LiteX architecture. Produces JSON specs plus SVGs, color-codes clock domains, distinguishes AXI/MM/Lite/Stream and TileLink, and hides clock/reset/JTAG/debug detail by default.
Original author description
Generate validated SVG block diagrams for HDL/RTL/FPGA/SoC designs. Use when asked to draw, diagram, sketch, render, or visualize Verilog, SystemVerilog, VHDL, Vivado BD, or LiteX architecture. Produces JSON specs plus SVGs, color-codes clock domains, distinguishes AXI/MM/Lite/Stream and TileLink, and hides clock/reset/JTAG/debug detail by default.
How it works
- Locate Scripts
- Defaults
- Workflow
SKILL.md preview
---
name: hdldiagzero
description: Generate validated SVG block diagrams for HDL/RTL/FPGA/SoC designs. Use when asked to draw, diagram, sketch, render, or visualize Verilog, SystemVerilog, VHDL, Vivado BD, or LiteX architecture. Produces JSON specs plus SVGs, color-codes clock domains, distinguishes AXI/MM/Lite/Stream and TileLink, and hides clock/reset/JTAG/debug detail by default.
---
# hdldiagZero
Create a small JSON architecture spec from HDL, then use this skill's scripts to render and validate the SVG. Edit JSON only; never hand-edit SVG.
Pipeline: HDL -> `spec.json` -> `render.py` -> `diagram.svg` -> `validate.py`.
## Locate Scripts
Use the directory containing this `SKILL.md`. If unavailable, search `~/.codex/skills/hdldiagzero/`, `~/.claude/skills/hdldiagzero/`, then any user-named skill root. Ask once if still not found.
- `render.py spec.json out.svg`: render JSON to SVG; add `--theme dark` only when requested.
- `validate_spec.py spec.json`: run before rendering.
- `validate.py out.svg`: run after rendering.
Read references only when needed:
- `references/schema.md`: JSON fields, examples, layout options.
- `references/extraction.md`: top detection, hierarchy walking, interface classification, clock domains, exclusions.
- `references/validation.md`: validator errors and fix recipes.
## Defaults
- Theme: `light`.
- Depth: top plus direct children.
- Outputs: `docs/architecture.json` and `docs/architecture.svg` unless the user names paths.
- Hide clock/reset nets, JTAG/debug/ILA/VIO, vendor primitives, FIFO/BRAM leaves, AXI-Lite leaf-control clutter, and soft-processor internals unless explicitly requested.
- Ask only when multiple plausible tops exist and no project hint resolves them.
## Workflow
1. Find the top: prefer `top.v`, `*_top.{sv,vhd}`, `system.bd`, `litex_soc.py`, project files, or build scripts. Use `references/extraction.md` if uncertain.
2. Extract hierarchy to requested depth. For depth > 1, declare expanded parents in top-level `groups` and assign child blocks with `group`.
3. Assign clock domains from ports, constraints, PLL/MMCM outputs, transceivers, or CDC primitives. Omit unknown frequencies; do not invent `? MHz`. Use `domain_b` only for blocks whose architectural purpose is CDC; otherwise use a `cdc` edge.
4. Classify connections from actual ports: `axi-mm`, `axi-lite`, `axi-stream`, `tilelink`, `cdc`, or `generic`. Read widths from declarations; for parametric widths, use the parameter name string.
5. Write JSON. Use integer rows/cols by default; quarter steps are okay for tighter placement. Prefer `grid.cell_w/cell_h` for diagram-wide sizing and block `w/h` only for local exceptions. For larger SoCs, consider compact legends, functional `bands`, edge `external` I/O blocks, and explicit `lines`.
6. Validate and iterate:
```bash
python <skill>/validate_spec.py docs/architecture.json
python <skill>/render.py docs/architecture.json docs/architecture.svg
python <skill>/validate.py docs/architecture.svg
```
Fix JSON issues and rerun. Cap geometry-fix loops at 3; use `references/validation.md` for route and overlap recipes.
7. Final response: one or two sentences with top module, block count, clock-domain count, validator status, and links to both files.
Files in this package (10)
- LICENSE 1 KB
- SKILL.md 3 KB
- render.py 46 KB
- validate.py 38 KB
- validate_spec.py 29 KB
- agents/openai.yaml 1 KB
- assets/hdldiagzero-small.svg 1 KB
- references/extraction.md 8 KB
- references/schema.md 12 KB
- references/validation.md 10 KB
Versions
The database has no other skills named hdldiagzero.
Database snapshot: 13.11.2026 · package version cc317a64a2ee (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100fpga-project-analyzer
Analyze and explain existing AMD/Xilinx FPGA projects visually - Vivado block designs (.xpr, .bd, .hwh, .xsa, BD Tcl), Verilog/SystemVerilog/VHDL, PYNQ overlays and notebooks, HLS/bare-metal C, device trees, timing/DRC reports and build logs. Builds a drill-down Vivado-style… - 100rtl-reading-web
Generate or improve a Chinese RTL code-reading website from Verilog, SystemVerilog, or VHDL sources, for quickly understanding AI-generated code or unfamiliar code written by others. Use for guided module, transaction, signal, source-code, and optional waveform explanations with… - 100vivado-debug
Use this skill when the user needs help with Vivado in-system debugging, hardware programming, or debug core configuration. This includes ILA (Integrated Logic Analyzer) configuration and trigger strategies, VIO (Virtual I/O) usage for signal monitoring and control, JTAG-to-AXI… - 100behavioral-modeling
Author, compile, and validate analog behavioral models — Verilog-A, Verilog-AMS, VHDL-AMS, and SystemVerilog real-number models — plus the connect modules that bridge analog and digital domains. This is the analog-HDL core of the marketplace. Use when building a fast, accurate… - 100verilog-fpga-digital-design
Design, synthesize, and verify digital hardware circuits using Verilog and SystemVerilog for FPGAs (Xilinx Artix/Zynq, Intel Cyclone, Lattice iCE40). Implement synthesizable finite state machines (FSM), synchronous reset logic, clock domain crossing (CDC) synchronizers, and… - 100hdl-module-design
Use when writing, refactoring, or deciding how to test an HDL module, component, or IP block (ROHD, Chisel, SpinalHDL, Verilog, VHDL) and you need it parameterized, validated, and covered by exhaustive tests rather than a one-off