React Register Map Builder
The editable sibling of the Register Map: an inline field editor (name, [msb:lsb], access, reset, description) with live validation — bit-range errors, identifier checks, and overlap detection flag the offending rows in red with a message — a live bitfield preview rendered by the Register Map itself, and one-click export to IP-XACT 1685-2022 XML or a C header with _SHIFT/_MASK defines. New fields land in the lowest free bit automatically.
| Field | MSB | LSB | Access | Reset | Description | |
|---|---|---|---|---|---|---|
Live preview
DMA_CTRLoffset 0x0004
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
BURST
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31] | BUSY | RO | 0x0 | Transfer in progress |
| [24] | ERR | W1C | 0x0 | Error flag, write 1 to clear |
| [16] | IRQ_EN | RW | 0x0 | Interrupt enable |
| [5:4] | BURST | RW | 0x0 | Burst size |
| [1] | DIR | RW | 0x0 | Transfer direction |
| [0] | EN | RW | 0x0 | Channel enable |
Edit bits to create an overlap and watch validation flag it; fix it and export IP-XACT or a C header.
Installation
Depends on register-map (renders the preview).
npx shadcn@latest add register-builder.json
Usage
Loading...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| initialName | string | "NEW_REG" | Register name |
| initialOffset | string | "0x0000" | Byte offset |
| initialFields | Omit<BuilderField, "id">[] | [] | Starting field set |
| width | number | 32 | Register width in bits |
Exports are disabled while any validation error exists — the generated artifacts are always consistent.