RP2040_SVD.XIP_CTRL

Entities

Record Types

Subtypes

Variables

Description

------------- Registers -- -------------

CTRL_Register

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;
Record fields
EN

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.

ERR_BADWRITE

unspecified

Reserved_2_2

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.

POWER_DOWN

unspecified

Reserved_4_31

FLUSH_Register

type FLUSH_Register is record
   FLUSH         : Boolean := False;
   Reserved_1_31 : HAL.UInt31 := 16#0#;
end record;
Record fields
FLUSH

unspecified

Reserved_1_31

STAT_Register

type STAT_Register is record
   FLUSH_READY   : Boolean;
   FIFO_EMPTY    : Boolean;
   FIFO_FULL     : Boolean;
   Reserved_3_31 : HAL.UInt29;
end record;
Record fields
FLUSH_READY

Read-only. When 1, indicates the XIP streaming FIFO is completely empty.

FIFO_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.

FIFO_FULL

unspecified

Reserved_3_31

STREAM_ADDR_Register

type STREAM_ADDR_Register is record
   Reserved_0_1 : HAL.UInt2 := 16#0#;
   STREAM_ADDR  : STREAM_ADDR_STREAM_ADDR_Field := 16#0#;
end record;
Record fields
Reserved_0_1

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.

STREAM_ADDR

STREAM_ADDR_STREAM_ADDR_Field

subtype STREAM_ADDR_STREAM_ADDR_Field is HAL.UInt30;

STREAM_CTR_Register

type STREAM_CTR_Register is record
   STREAM_CTR     : STREAM_CTR_STREAM_CTR_Field := 16#0#;
   Reserved_22_31 : HAL.UInt10 := 16#0#;
end record;
Record fields
STREAM_CTR

unspecified

Reserved_22_31

STREAM_CTR_STREAM_CTR_Field

subtype STREAM_CTR_STREAM_CTR_Field is HAL.UInt22;

XIP_CTRL_Periph

XIP_CTRL_Periph : aliased XIP_CTRL_Peripheral
  with Import, Address => XIP_CTRL_Base;

XIP_CTRL_Peripheral

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;
Record fields
CTRL

Cache Flush control

FLUSH

Cache Status

STAT

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.

CTR_HIT

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.

CTR_ACC

FIFO stream address

STREAM_ADDR

FIFO stream control

STREAM_CTR

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.

STREAM_FIFO