ByteField — Bit & Register Field Diagrams
ByteField renders hardware register layouts and bit-field maps as SVG diagrams. It accepts three input formats — pick whichever matches your workflow.
Format 1: Lisp-like DSL
The Clojure-inspired DSL is the most expressive format. Use draw-box for named fields, draw-gap for variable-length regions, and draw-column-headers to render the bit position header row.
Type-Length-Value (TLV) Register
IPv4 Header (first 64 bits)
Format 2: JSON Array
A structured JSON array where each object defines a field with name, bits, and optional type (used for color-coding by the renderer).
SPI Control Register
Format 3: YAML List
The most human-readable format — a YAML list of field definitions. Supports name, bits, attr (displayed annotations), and type for coloring.