RegGen compiles register specifications (YAML, JSON, IP-XACT, or SystemRDL) into 6 fully valid output targets in a single run. Select a tab below to see how a YAML specification compiles into different formats:
name: spi_ctrl
description: SPI Controller Register Block
baseAddress: 0x40000000
registers:
- name: spi_ctrl
description: "SPI Control Register"
offset: 0x00
fields:
- name: enable
description: "Enable the SPI peripheral"
bitOffset: 0
bitWidth: 1
access: RW
resetValue: 0
- name: mode
description: "Operating mode selection"
bitOffset: 1
bitWidth: 2
access: RW
resetValue: 0
- name: spi_status
description: "SPI Status Register"
offset: 0x04
fields:
- name: busy
description: "SPI Busy Flag"
bitOffset: 0
bitWidth: 1
access: RO
resetValue: 0
- name: rx_fifo_empty
description: "RX FIFO Empty"
bitOffset: 1
bitWidth: 1
access: RO
resetValue: 1