------------- Registers -- -------------
type CTRL_Register is record
EN : Boolean := True;
ERR_BADWRITE : Boolean := True;
Reserved_2_2 : HAL.Bit := 16#0#;
POWER_DOWN : Boolean := False;
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record;
When 1, writes to any alias other than 0x0 (caching, allocating)\n will produce a bus fault. When 0, these writes are silently ignored.\n In either case, writes to the 0x0 alias will deallocate on tag match,\n as usual.
unspecified
When 1, the cache memories are powered down. They retain state,\n but can not be accessed. This reduces static power dissipation.\n Writing 1 to this bit forces CTRL_EN to 0, i.e. the cache cannot\n be enabled when powered down.\n Cache-as-SRAM accesses will produce a bus error response when\n the cache is powered down.
unspecified
type FLUSH_Register is record
FLUSH : Boolean := False;
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record;
unspecified
type STAT_Register is record
FLUSH_READY : Boolean;
FIFO_EMPTY : Boolean;
FIFO_FULL : Boolean;
Reserved_3_31 : HAL.UInt29;
end record;
Read-only. When 1, indicates the XIP streaming FIFO is completely empty.
Read-only. When 1, indicates the XIP streaming FIFO is completely full.\n The streaming FIFO is 2 entries deep, so the full and empty\n flag allow its level to be ascertained.
unspecified
type STREAM_ADDR_Register is record
Reserved_0_1 : HAL.UInt2 := 16#0#;
STREAM_ADDR : STREAM_ADDR_STREAM_ADDR_Field := 16#0#;
end record;
The address of the next word to be streamed from flash to the streaming FIFO.\n Increments automatically after each flash access.\n Write the initial access address here before starting a streaming read.
subtype STREAM_ADDR_STREAM_ADDR_Field is HAL.UInt30;
type STREAM_CTR_Register is record
STREAM_CTR : STREAM_CTR_STREAM_CTR_Field := 16#0#;
Reserved_22_31 : HAL.UInt10 := 16#0#;
end record;
unspecified
subtype STREAM_CTR_STREAM_CTR_Field is HAL.UInt22;
XIP_CTRL_Periph : aliased XIP_CTRL_Peripheral
with Import, Address => XIP_CTRL_Base;
type XIP_CTRL_Peripheral is record
CTRL : aliased CTRL_Register;
FLUSH : aliased FLUSH_Register;
STAT : aliased STAT_Register;
CTR_HIT : aliased HAL.UInt32;
CTR_ACC : aliased HAL.UInt32;
STREAM_ADDR : aliased STREAM_ADDR_Register;
STREAM_CTR : aliased STREAM_CTR_Register;
STREAM_FIFO : aliased HAL.UInt32;
end record;
Cache Flush control
Cache Status
Cache Hit counter\n A 32 bit saturating counter that increments upon each cache hit,\n i.e. when an XIP access is serviced directly from cached data.\n Write any value to clear.
Cache Access counter\n A 32 bit saturating counter that increments upon each XIP access,\n whether the cache is hit or not. This includes noncacheable accesses.\n Write any value to clear.
FIFO stream address
FIFO stream control
FIFO stream data\n Streamed data is buffered here, for retrieval by the system DMA.\n This FIFO can also be accessed via the XIP_AUX slave, to avoid exposing\n the DMA to bus stalls caused by other XIP traffic.