11. Resource isolation slave unit for address space protection (full version) (RISAF)

11.1 RISAF introduction

The RIF (resource isolation framework) is a comprehensive set of hardware blocks designed to enforce and manage isolation of STM32 hardware resources, like memory and peripherals.

Through RISAF registers, a trusted domain application or the application to whom the configuration has been delegated, assigns memory regions and subregions to one or more security domains (secure, privileged, compartment).

RISAF includes the DDR memory cipher engine (DDRMCE) feature.

11.2 RISAF main features

11.3 RISAF implementation

The following table describes the characteristics of the available RISAFs, including watermark programming details (such as granularity and protected address space).

Table 49. RISAF resource assignment

Protected memoryResource name(1)Number of base regionsNumber of subregions per base regionGranularity (bytes)Address space size and alignment(2)DDRMCE optionDual port optionDefault protection(3)
BKPSRAMRISAF1422568 KbytesNoNoPrimary region only: secure, privileged, TDCID only
OCTOSPI2RISAF244096256 Mbytes
OCTOSPI1
PCIERISAF524 GbytesYes(4)Yes
DDRRISAF415
  1. 1. According to the resource name, the reset value of RISAF_HWCFGR changes: 0x05080505 for RISAF1, 0x100C0505 for RISAF2, 0x140C1010 for RISAF4, and 0x100C0303 for RISAF5. Similarly, the reset value of RISAF_IPIDR is 0x00100166 for RISAF1 and RISAF2, and 0x00100167 for RISAF4 and RISAF5.
  2. 2. When address space size is the full 32-bit address space (4 Gbytes), watermarks are programmed using physical addresses, on 32 bits.
  3. 3. Default protection policy out of reset.
  4. 4. To be used for secure regions only. Encrypted regions are bypassed in case of tamper event, with the cypher key erased in case of confirmed tamper.

11.4 RISAF functional description

11.4.1 RISAF block diagram

The following figures show the block diagrams of the two RISAF types (single port or dual port with encryption) associated with the IAC, and optionally, a memory controller. Both types are programmed the same way.

Figure 31. RISAF block diagram (without DDRMCE) Figure 31. RISAF block diagram (without DDRMCE)

MSv67866V1

Figure 31. RISAF block diagram (without DDRMCE)
  1. 1. The tdcid input value is equal to CID.
Figure 32. RISAF4 block diagram (with DDRMCE) Figure 32. RISAF4 block diagram (with DDRMCE)

MSv67867V3

Figure 32. RISAF4 block diagram (with DDRMCE)

11.4.2 RISAF internal signals

Table 50 describes internal signals available at RISAF level, not at product level (on pins).

Table 50. RISAF internal input/output signals
NameTypeDescription
risaf_sckDigital inputSystem bus clock, also used by the protected memory controller
risaf_hclkAHB bus clock

Table 50. RISAF internal input/output signals (continued)

NameTypeDescription
risaf_ilacDigital outputIllegal access signal to IAC
risaf_encdisDigital inputStatic control signal disabling encryption

11.4.3 RISAF reset and clocks

The RISAF peripheral has two clocks, one for its AHB register interface, and one for its system bus interfaces. The system bus clock is shared with the system bus memory controller target.

The RISAF peripheral has a single reset input.

Address spaces protected by the RISAF are by default secure, privileged, and CID only.

11.4.4 RISAF address space management

Through RISAF registers, a trusted domain application, or the application to which the configuration has been delegated, assigns memory regions to one or more security domains (secure, privilege, compartment ID). Figure 33 illustrates the principle of this allocation.

Figure 33. RISAF region programming

Diagram illustrating RISAF region programming. It shows a hierarchy of regions: Primary region (default region 0) at the bottom, containing Base region 1 (nested) and Base region 2 (nested). Base region 1 contains Subregion 1A, and Base region 2 contains Subregion 2A. Subregion 2B is shown overlapping Subregion 2A. Arrows indicate access types: Accesses 1 (Primary region filtering applies) points to the Primary region; Accesses 2 (Base region filtering applies) points to Base region 1; Accesses 3 (Subregion filtering applies) points to Subregion 1A; Accesses 4 (Overlapped area filtering applies) points to Subregion 2B. A note states: (*) Base region filtering does not apply.

MSv67868V2

Diagram illustrating RISAF region programming. It shows a hierarchy of regions: Primary region (default region 0) at the bottom, containing Base region 1 (nested) and Base region 2 (nested). Base region 1 contains Subregion 1A, and Base region 2 contains Subregion 2A. Subregion 2B is shown overlapping Subregion 2A. Arrows indicate access types: Accesses 1 (Primary region filtering applies) points to the Primary region; Accesses 2 (Base region filtering applies) points to Base region 1; Accesses 3 (Subregion filtering applies) points to Subregion 1A; Accesses 4 (Overlapped area filtering applies) points to Subregion 2B. A note states: (*) Base region filtering does not apply.

As shown in Figure 33, there are multiple types of access filtered by RISAF:

Note: When a base or subregion is disabled, the associated filtering is disabled as well. For access types 3 or 4 (detailed above), base region filtering rules do not apply.

As defined in Section 6.2: Resource isolation framework (RIF), a debug domain (privileged) must be granted the following accesses, depending on its security:

Access rules to secure, nonsecure, privileged, and unprivileged memory regions are described in Section 6.2: Resource isolation framework (RIF).

11.4.5 RISAF programming

Only the trusted domain can set up the access configuration to base region x through RISAF_REGx_CFGR, RISAF_REGx_CIDCFGR, RISAF_REGx_STARTR, and RISAF_REGx_ENDR.

The trusted domain, or the application to which the subregion z configuration has been delegated in RISAF_REGx_zNESTR, can set up the access configuration to subregion z of base region x through RISAF_REGx_zCFGR, RISAF_REGx_zSTARTR, and RISAF_REGx_zENDR (z = A or B).

As shown in Table 51, subregion right options depend upon the base region privileged and security rights.

Table 51. RISAF subregion security setup matrix

Base region rightsNested subregion rights
Secure, privilegedSecure, unprivilegedNonsecure, privilegedNonsecure, unprivileged
Secure, privilegedOK(1)OKOKOK
Secure, unprivilegedNot allowedOK(1)Not allowedOK
Nonsecure, privilegedNot allowedNot allowedOK(1)OK
Nonsecure, unprivilegedNot allowedNot allowedNot allowedOK(1)

1. Default configuration

Configuring base regions in RISAF

If the trusted domain must use a base region x (for example at boot time), the following steps are recommended.

  1. 1. The trusted domain sets start and end addresses for each of the required base region x, using RISAF_REGx_STARTR and RISAF_REGx_ENDR:
    • – These registers are initialized with 32-bit physical addresses when protected address space size is 4 Gbytes. For different sizes, refer to the register description.
    • – Base regions must be defined within their primary region. The hardware enforces this rule if the application does not follow it.
  1. 2. For each of the above region x, the trusted domain programs RISAF_REGx_CIDCFGR, granting read and/or write access to any compartment.
  2. 3. For each of the above region x, the trusted domain finalizes the programming by configuring RISAF_REGx_CFGR, setting up security parameters (secure or encrypted if applicable), and granting privileged-only access, or not, to each compartment that has access to the region (see step 2).
  3. 4. After a final check on the above configuration, the trusted domain enables each required base region x, setting the BREN bit in RISAF_REGx_CFGR.

Note: The number of regions, the region watermark granularity, and the address space size depend upon the RISAF instance (see Section 11.3).

At any time the trusted domain can lock the RISAF configuration until the next reset, by setting the GLOCK bit in RISAF_CR. Subregion registers are the exception to this rule, as explained in Configuring subregions in RISAF.

If the RISAF instance supports encryption (see Section 11.3), and if the trusted application requires region x to be encrypted, the recommended steps are:

Configuring subregions in RISAF

Note: The number of subregions, the subregion watermark granularity, and the primary region address space size depend on the RISAF resource described in Section 11.3.

When an application needs to use the subregion z defined in the base region x, there are two configuration options in RISAF_REGx_zNESTR:

Configuring a subregion z consists in the following steps.

  1. 1. Define the start and end address of the subregion using RISAF_REGx_zSTARTR and RISAF_REGx_zENDR registers.
    • – When programming subregion watermarks, use similar rules as for base regions (see Configuring base regions in RISAF).
    • – Subregions must be defined within their base region. The RISAF enforces this rule if the application does not follow it.
  2. 2. Modify WREN and RDEN in RISAF_REGx_zCFGR to modify the access right of allowed compartment (defined with SCID bits).
  1. 3. In the same registers, modify the security and privileged access rights for the allowed compartment, if needed (see Table 51 for applicable restrictions).
  2. 4. After a final check on the above configuration, the subregion must be enabled by setting SREN bit in RISAF_REGx_zCFGR.

After a trusted domain has locked all base regions (using GLOCK bit), subregion owners can lock their configuration using the RLOCK bit in RISAF_REGx_zCFGR.

Note: Only a secure application can change SEC in RISAF_REGx_zCFGR. If the base region is secure, only a secure application can configure subregion registers.

The overall RISAF initialization is summarized in Figure 34.

Figure 34. RISAF initialization principle

Flowchart showing RISAF initialization principle. It starts with 'For a given region resource', followed by 'Set base region start and end addresses' and 'Set base region security for all CIDs'. A decision diamond follows: '[No compartment filtering]' leads to 'Grant R/W access to all CIDs' and 'Set privilege for all CIDs'; '[Compartment filtering]' leads to 'Define R/W access for each CIDs' and 'Set privilege for each CIDs'. Both paths lead to a second decision diamond '[flat mode]'. A separate path for subregions (indicated by a yellow note 'Do for one or two subregion(s)') includes: 'Delegate RIF configuration or not', 'Set subregion start and end addresses', 'Grant subregion access to one CID', 'Set R/W access to granted CID', 'Set privilege level to granted CID', and 'Set security level to granted CID (secure only)'. The final step is 'Enable the resource(s)'. Blue text indicates optional resource configuration delegation to one privileged CPU if subregion is not locked.
graph TD
    Start(( )) --> S1[Set base region start and end addresses]
    S1 --> S2[Set base region security for all CIDs]
    S2 --> D1{ }
    D1 -- "[No compartment filtering]" --> S3[Grant R/W access to all CIDs]
    S3 --> S4[Set privilege for all CIDs]
    D1 -- "[Compartment filtering]" --> S5[Define R/W access for each CIDs]
    S5 --> S6[Set privilege for each CIDs]
    S4 --> D2{ }
    S6 --> D2
    D2 -- "[flat mode]" --> End(( ))
    
    Note[Do for one or two subregion(s)] -.-> S7[Delegate RIF configuration or not]
    S7 --> S8[Set subregion start and end addresses]
    S8 --> S9[Grant subregion access to one CID]
    S9 --> S10[Set R/W access to granted CID]
    S10 --> S11[Set privilege level to granted CID]
    S11 --> S12[Set security level to granted CID (secure only)]
    S12 --> End
    

Blue: Optional resource configuration delegation to one privileged CPU (if subregion is not locked)

MSv67869V1

Flowchart showing RISAF initialization principle. It starts with 'For a given region resource', followed by 'Set base region start and end addresses' and 'Set base region security for all CIDs'. A decision diamond follows: '[No compartment filtering]' leads to 'Grant R/W access to all CIDs' and 'Set privilege for all CIDs'; '[Compartment filtering]' leads to 'Define R/W access for each CIDs' and 'Set privilege for each CIDs'. Both paths lead to a second decision diamond '[flat mode]'. A separate path for subregions (indicated by a yellow note 'Do for one or two subregion(s)') includes: 'Delegate RIF configuration or not', 'Set subregion start and end addresses', 'Grant subregion access to one CID', 'Set R/W access to granted CID', 'Set privilege level to granted CID', and 'Set security level to granted CID (secure only)'. The final step is 'Enable the resource(s)'. Blue text indicates optional resource configuration delegation to one privileged CPU if subregion is not locked.

11.4.6 RISAF runtime modification of region or subregion configuration

The RISAF supports the on-the-fly update of the base region and subregion programming, except for the start- and end-address boundaries:

If the first solution introduces too many constraints, a workaround is shown in Figure 35.

Figure 35. RISAF region on-the-fly resizing

Diagram illustrating RISAF region on-the-fly resizing in four stages: 1. Initial state with Base region #1 filtering applies to Base region 1 and Base region 15 (same rights). 2. Base region #1 filtering applies to Base region 15 (same rights) as #1, while Base region 1 is disabled. 3a. Base region 1 is enabled and Base region 15 is disabled. 3b. Base region 1 is enabled and Base region 15 is disabled. The diagram shows the transition of access control between regions 1 and 15.

The diagram illustrates the process of on-the-fly resizing of base region 1. It consists of four stages labeled 1, 2, 3a, and 3b. In stage 1, 'Base region #1 filtering applies' to 'Base region 1' and 'Base region 15 (same rights)'. In stage 2, 'Base region filtering applies (#15, same as #1)' to 'Base region 15 (same rights)', while 'Base region 1' is disabled (indicated by a dashed box and a left-pointing arrow). In stage 3a, 'Base region 1' is enabled (solid box) and 'Base region 15' is disabled (dashed box). In stage 3b, 'Base region 1' is enabled (solid box) and 'Base region 15 (disabled)' is disabled (dashed box). The label 'MSv67870V2' is located in the bottom right corner of the diagram area.

Diagram illustrating RISAF region on-the-fly resizing in four stages: 1. Initial state with Base region #1 filtering applies to Base region 1 and Base region 15 (same rights). 2. Base region #1 filtering applies to Base region 15 (same rights) as #1, while Base region 1 is disabled. 3a. Base region 1 is enabled and Base region 15 is disabled. 3b. Base region 1 is enabled and Base region 15 is disabled. The diagram shows the transition of access control between regions 1 and 15.

The recommended on-the-fly resizing of base region 1 becomes:

  1. 1. Define a spare base region (for example 15), exactly as current region 1.
  2. 2. Disable region 1 by clearing BREN. The region 15 access control (identical to region 1) immediately applies. No effect is experienced at system level. The region 1 can be safely resized.
  3. 3. Enable region 1, then disable region 15. The new region 1 access control immediately applies. Optionally, subregions can be added on top.

11.4.7 Managing illegal accesses

As a RIF component, the RISAF does not use the standard interrupt lines toward NVIC or GIC concentrators. The IAC captures all RIF interrupt events, called illegal access events.

Refer to Section 12: Illegal access controller (IAC) for more information on the way illegal accesses are managed.

11.5 RISAF registers

The registers are accessible through the interface of the RISAF. Only word accesses (32 bits) are supported.

If the debug domain feature is activated and security and privileged policy allows it, the debug domain traffic goes through, regardless of any CID filtering policy. If the debug domain feature is de-activated the CID filtering policy also applies to debug domain traffic.

11.5.1 RISAF configuration register (RISAF_CR)

Address offset: 0x000

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only. Any read access is allowed, writes are ignored if GLOCK is set.

11.5 11.5.1column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLOCK rs
Bit 0GLOCK: Global lock
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENCKEYKEY
DISRDYVALID
rrr

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 GLOCK: Global lock

This bit locks the configuration of RISAF registers until next reset. It is cleared by default, and, once set, cannot be reset until global RISAF reset.

0: RISAF registers are writable.

1: All writes to RISAF registers are ignored, except RISAF_IACR, RISAF_REGx_zCFGR, RISAF_REGx_zSTARTR, and RISAF_REGx_zENDR (z = A to B).

11.5.2 RISAF status register (RISAF_SR)

Address offset: 0x004

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, read access only.

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 ENCDIS: Encryption disabled

This bit is reserved if the encryption feature is not available in RISAF (see Section 11.3). It is a non-volatile product configuration that cannot be changed by software.

0: When ENC = BREN = 1 in RISAF_REGx_CFGR, all allowed write accesses in region x are encrypted, and all allowed read requests are decrypted.

1: When ENC = BREN = 1 in RISAF_REGx_CFGR, all write accesses in region x are ignored, and all read requests return 0. In other words, the AES feature of RISAF is unusable, for any region.

Note: If BREN = 0, the AES feature of RISAF is not usable for a given region.

Bit 1 KEYRDY: Key ready

This bit is reserved if the encryption feature is not available in RISAF (see Section 11.3).

0: The most recently written key in RISAF_KEYRy is being expanded

1: The most recently written key in RISAF_KEYRy is ready for use

Bit 0 KEYVALID: Key valid

This bit is reserved if the encryption feature is not available in RISAF (see Section 11.3).

0: A valid key has not been written in RISAF_KEYRy

1: A valid key has been written in RISAF_KEYRy

11.5.3 RISAF illegal access status register (RISAF_IASR)

Address offset: 0x008

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, read access only.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IAEF1IAEF0CAEF
rrr

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 IAEF1: Illegal access error flag 1

This bit is reserved if the dual port feature is not available in the RISAF instance (see Section 11.3). The bit is set when an illegal access is detected by checker unit 1 on the system bus. More details on the error can be found in RISAF_IAESR1 and RISAF_IADDR1.

This bit is cleared by setting the corresponding bit in RISAF_IACR.

Bit 1 IAEF0: Illegal access error flag 0

This bit is set when an illegal access is detected by checker unit 0 on the system bus. More details on the error can be found in RISAF_IAESR0 and RISAF_IADDR0.

This bit is cleared by setting corresponding bit in RISAF_IACR.

Bit 0 CAEF: Configuration access error flag

This bit is set when an illegal access to any RISAF configuration register is detected. It is cleared by setting the corresponding bit in RISAF_IACR.

11.5.4 RISAF illegal access clear register (RISAF_IACR)

Address offset: 0x00C

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IAEF1IAEF0CAEF
www

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 IAEF1: Illegal access error flag 1

This bit is reserved if the dual port feature is not available in the RISAF instance (see Section 11.3). Set this bit to clear IAEF1 in RISAF_IASR, allowing the capture of a new error information from RIF gate 1 in RISAF_IAESR1 and RISAF_IADDR1.

Note: Clearing this bit does not clear RISAB_IADDR1.

Bit 1 IAEF0: Illegal access error flag 0

Set this bit to clear IAEF0 in RISAF_IASR, allowing the capture of a new error information from RIF gate 0 in RISAF_IAESR0 and RISAF_IADDR0 registers.

Note: Clearing this bit does not clear RISAB_IADDR0.

Bit 0 CAEF: Configuration access error flag

Set this bit to clear CAEF in RISAF_IASR.

11.5.5 RISAF illegal access error status register x (RISAF_IAESRx)

Address offset: 0x020 + 0x8 * x (x = 0 to 1)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, read access only.

Note: RISAF_IAESR1 is reserved if the dual port feature is not available in the RISAF instance (see Section 11.3).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.IANRWRes.IASECIAPRIVRes.IACID[2:0]
rrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 IANRW: Illegal access read/write

When IAEFx = 1 in RISAF_IASR, IANRW captures the access type of the illegal access that has been detected by RIF gate x.

Bit 6 Reserved, must be kept at reset value.

Bit 5 IASEC: Illegal access security

When IAEFx = 1 in RISAF_IASR, IASEC captures the security type of the illegal access that has been detected by RIF gate x.

Bit 4 IAPRIV: Illegal access privileged

When IAEFx = 1 in RISAF_IASR, IAPRIV captures the privilege state of the master that issued the illegal access detected by RIF gate x.

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 IACID[2:0]: Illegal access compartment ID

When IAEFx = 1 in RISAF_IASR, IACID[2:0] captures the compartment ID of the master that issued the illegal access detected by RIF gate x.

11.5.6 RISAF illegal address register x (RISAF_IADDRx)

Address offset: 0x024+0x8*x (x = 0 to 1)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, read access only.

Note: RISAF_IADDR1 is reserved if the dual port feature is not available in the RISAF instance (see Section 11.3).

31302928272625242322212019181716
IADD[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
IADD[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 IADD[31:0]: Illegal address

When IAEFx = 1 in RISAFB_IASR, IADD[31:0] captures the address of the erroneous access through RIF gate x. Additional information can be found in RISAF_IAESRx. Captured address information is the byte offset from the base of the protected address space.

11.5.7 RISAF encryption key y (RISAF_KEYRy)

Address offset: 0x030+0x4*y (y = 0 to 3)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only. Writes are ignored if GLOCK is set in RISAF_CR.

Note: RISAF_KEYR0/1/2/3 are reserved if the DDRMCE feature is not available in the RISAF instance (see Section 11.3).

31302928272625242322212019181716
KEY{i + 32 * y}
wwwwwwwwwwwwwwww
1514131211109876543210
KEY{i + 32 * y}
wwwwwwwwwwwwwwww

Bits 31:0 KEY{i + 32 * y}: Cryptographic key (i = 31 to 0)
This write-only bitfield contains the key used by the DDRMCE.

11.5.8 RISAF region x configuration register (RISAF_REGx_CFGR)

Address offset: 0x040 + 0x40 * (x - 1) (x = 1 to 15)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RISAF_CR.

Refer to Section 11.3 to verify the number of base regions supported by this RISAF instance.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.PRIV C7PRIV C6PRIV C5PRIV C4PRIV C3PRIV C2PRIV C1PRIV C0
rwrwrwrwrwrwrwrw
1514131211109876543210
ENCRes.Res.Res.Res.Res.Res.SECRes.Res.Res.Res.Res.Res.Res.BREN
rwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:16 PRIVC[7:0]: Privileged access for compartment y (y = 7 to 0)

This bit is taken into account only if BREN = 1.

0: Application running in compartment y can access to region x in privileged and unprivileged mode.

1: Application running in compartment y can access to region x in privileged mode only.

Bit 15 ENC: Encrypted region

This bit is taken into account only if BREN = 1 and if the DDRMCE feature is available in RISAF (see ENCDIS in RISAF_SR and Section 11.3).

0: No effect

1: All allowed write accesses are encrypted and all allowed read requests are decrypted when KEYRDY = 1 in RISAF_SR (to be used for secure regions only).

Note: Key registers RISAF_KEYRy must be properly initialized before setting this bit (KEYVALID = 1 in RISAF_SR).

Bits 14:9 Reserved, must be kept at reset value.

Bit 8 SEC: Secure region

This bit is taken into account only if BREN = 1.

0: Only nonsecure requests can access region x. SEC value in RISAF_REGx_zCFGR is internally treated as 0-ed by RISAF (only nonsecure requests to subregions).

1: Only secure requests can access region x, and optional subregions can be defined as secure or nonsecure.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 BREN: Base region enable

0: Base region x is disabled. Access control of primary region 0 (secure, privileged, trusted domain CID) applies to any access between region x start and end addresses. Associated subregions are also disabled.

1: Base region x is enabled. Access controls defined in region x apply to any access between region x start and end addresses.

Note: The filtering starts from start address RISAF_REGx_STARTR (included) and ends at end address RISAF_REGx_ENDR (included).

11.5.9 RISAF region x start-address register (RISAF_REGx_STARTR)

Address offset: 0x044 + 0x40 * (x - 1) (x = 1 to 15)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RISAF_CR, or if BREN is set in RISAF_REGx_CFGR.

Refer to Section 11.3 to verify the number of base regions supported by this RISAF instance, and for details on protected address space size and watermark granularity.

31302928272625242322212019181716
BADDSTART[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BADDSTART[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 BADDSTART[31:0]: Base region address start

This bitfield defines the byte-address offset (relative to the base address of the protected address space) of the lowest byte-address in base region x.

Address bits less than the granularity and greater than the protected address space size cannot be written to, and remain 0.

11.5.10 RISAF region x end-address register (RISAF_REGx_ENDR)

Address offset: 0x048 + 0x40 * (x - 1) (x = 1 to 15)

Reset value: 0x0000 0FFF

The reset value given here applies when the granularity is 4 Kbytes. If the granularity is 2n, the reset value is 2n - 1.

Secure, privileged, trusted domain CID, write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RISAF_CR, or if BREN is set in RISAF_REGx_CFGR.

Refer to Section 11.3 to verify the number of base regions supported by this RISAF instance, and for details on protected address space size and watermark granularity.

31302928272625242322212019181716
BADDEND[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BADDEND[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 BADDEND[31:0]: Base region address end

This bitfield defines the byte-address offset (relative to the base address of the protected address space) of the highest byte-address in base region x.

Address bits less than the granularity cannot be modified, and remain 1.

Address bits greater than the protected address space size cannot be written, and remain 0.

11.5.11 RISAF region x CID configuration register (RISAF_REGx_CIDCFGR)

Address offset: 0x04C + 0x40 * (x - 1) (x = 1 to 15)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RISAF_CR.

Refer to Section 11.3 to verify the number of base regions supported by this RISAF instance.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.WREN C7WREN C6WREN C5WREN C4WREN C3WREN C2WREN C1WREN C0
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RDEN C7RDEN C6RDEN C5RDEN C4RDEN C3RDEN C2RDEN C1RDEN C0
rwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:16 WRENC[7:0]: Write enable for compartment y (y = 7 to 0)

This bit is taken into account only if BREN = 1 in RISAF_REGx_CFGR.

0: Application running in compartment y cannot write to region x (write ignored).

1: Application running in compartment y can write to region x. Additional control defined by SEC and PRIVCy in RISAF_REGx_CFGR, also applies.

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 RDENC[7:0]: Read enable for compartment y (y = 7 to 0)

This bit is taken into account only if BREN = 1 in RISAF_REGx_CFGR.

0: Application running in compartment y cannot read region x (read as 0).

1: Application running in compartment y can read region x. Additional control defined by SEC and PRIVCy in RISAF_REGx_CFGR, also applies.

11.5.12 RISAF region x subregion A configuration register (RISAF_REGx_ACFGR)

Address offset: 0x050+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0000

Unprivileged writes are ignored. Nonsecure writes are ignored if SEC = 1 in RISAF_REGx_CFGR, or if DCEN = 0 in RISAF_REGx_ANESTR. Any read access is allowed to this register. Writes are ignored if RLOCK = 1 in this register.

When the delegated configuration is enabled (DCEN = 1 in RISAF_REGx_ANESTR), only the compartment DCCID defined in RISAF_REGx_ANESTR can write to this register.

When the delegation is disabled (DCEN = 0), only the trusted domain can program this register.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance.

RM0457 Bit 18 Bit 17 Bit 16 Bit 6 Bit 5 Bit 4DEDF DISTURBF PROGFAIL OTPSEC OTPERR OTPNVIR: Disturb flag : Programming failed : OTP with error : OTP not virgin
31 30 292827 26 25 24 23 22 21 20 19 18 17 16
Res. Res. Res.Res.Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res.
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
ENC Res. WREN RDENRes. Res. PRIV SEC Res. SRCID[2:0] Res. Res. RLOCK SREN
r rwrwrw rw rw rw rw rs rw
Bit 15ENC: Encrypted subregion
feature is not available in RISAF (see ENCDIS in RISAF_SR, andSection 11.3 ). 0: No effect
Bit 13WREN: Write enable
Bit 12RDEN: Read enable
Bit 9PRIV: Privileged subregion
RM0457 Rev 5 407/ 5881

Bits 31:16 Reserved, must be kept at reset value.

Bit 15 ENC: Encrypted subregion

This read-only bit is a mirror to ENC in RISAF_REGx_CFGR. It is reserved if the encryption feature is not available in RISAF (see ENCDIS in RISAF_SR, and Section 11.3).

0: No effect

1: Allowed read (write) requests to subregion A of region x are decrypted (encrypted)

Bit 14 Reserved, must be kept at reset value.

Bit 13 WREN: Write enable

This bit is taken into account only if SREN = 1 in this register.

0: Any writes to subregion A of region x are ignored

1: Subregion A of region x can be written to

Bit 12 RDEN: Read enable

This bit is taken into account only if SREN = 1 in this register.

0: Any read to subregion A of region x returns 0

1: Subregion A of region x can be read

Bits 11:10 Reserved, must be kept at reset value.

Bit 9 PRIV: Privileged subregion

This bit is taken into account only if SREN = 1 in this register.

0: Privileged and unprivileged accesses are granted in subregion A of region x

1: Only privileged accesses are granted in subregion A of region x

Note: When base region x is defined as unprivileged for the SCID compartment (PRIVCy = 0 in RISAF_REGx_CFGR, with SRCID = Cy), unprivileged accesses to subregion A are always granted.

Bit 8 SEC: Secure subregion

This bit is taken into account only if SREN = 1 in this register. Nonsecure modification to it are discarded.

0: Only nonsecure requests can access subregion A of region x

1: Only secure requests can access subregion A of region x

Note: When base region x is defined as nonsecure (SEC = 0 in RISAF_REGx_CFGR), only nonsecure accesses to subregion A are granted.

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 SRCID[2:0]: Subregion CID

When SREN = 1 in this register, SRCID[2:0] defines which compartment has access to subregion A of RISAF region x.

Bits 3:2 Reserved, must be kept at reset value.

Bit 1 RLOCK: Resource lock

When this bit is set, the subregion resource is locked.

0: RISAF_REGx_ACFGR, RISAF_REGx_ASTARTR, and RISAF_REGx_AENDR are writable

1: Writes to RISAF_REGx_ACFGR, RISAF_REGx_ASTARTR, and RISAF_REGx_AENDR are ignored

Note: This bit is set once, cleared only by RISAF reset. It cannot be set if GLOCK = 0 in RISAF_CR.

Bit 0 SREN: Subregion enable

0: Subregion A is disabled. Access control of base region x applies to any access between this subregion start and end addresses.

1: Subregion A of region x is enabled. Access control defined in subregion A applies to any access between subregion A start and end addresses.

Note: The filtering starts from address RISAF_REGx_ASTARTR (included), and ends at address RISAF_REGx_AENDR (included).

11.5.13 RISAF region x subregion A start-address register (RISAF_REGx_ASTARTR)

Address offset: 0x054+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0000

Unprivileged writes are ignored. Nonsecure writes are ignored if SEC = 1 in RISAF_REGx_CFGR, or if DCEN = 0 in RISAF_REGx_ANESTR. Any read access is allowed to this register. Writes are ignored if RLOCK = 1 or SREN = 1 in RISAF_REGx_ACFGR.

When the delegated configuration is enabled (DCEN = 1 in RISAF_REGx_ANESTR), only the compartment DCCID defined in RISAF_REGx_ANESTR can write to this register. When the delegation is disabled (DCEN = 0), only the trusted domain can program this register.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance, and for details on protected address space size and watermark granularity.

31302928272625242322212019181716
SADDSTART[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SADDSTART[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SADDSTART[31:0]: Subregion address start

This bitfield defines the byte-address offset (relative to the base address of the protected address space) of the lowest byte-address in subregion A in base region x.

Address bits less than the granularity and greater than the protected address space size cannot be written, and remain 0.

The effective subregion is the intersection of the subregion and its base region (there is no point in programming SADDSTART below the associated BADDSTART).

11.5.14 RISAF region x subregion A end-address register (RISAF_REGx_AENDR)

Address offset: 0x058+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0FFF

Unprivileged writes are ignored. Nonsecure writes are ignored if SEC = 1 in RISAF_REGx_CFGR, or if DCEN = 0 in RISAF_REGx_ANESTR. Any read access is allowed to this register. Writes are ignored if RLOCK = 1 or SREN = 1 in RISAF_REGx_ACFGR.

When the delegated configuration is enabled (DCEN = 1 in RISAF_REGx_ANESTR), only the compartment DCCID defined in RISAF_REGx_ANESTR can write to this register. When the delegation is disabled (DCEN = 0), only the trusted domain can program this register.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance, and for details on protected address space size and watermark granularity.

31302928272625242322212019181716
SADDEND[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SADDEND[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SADDEND[31:0]: Subregion address end

This bitfield defines the byte-address offset (relative to the base address of the protected address space) of the highest byte-address of subregion A in base region x.

Address bits less than the granularity cannot be modified, and remain 1.

Address bits greater than the protected address space size cannot be written, and remain 0.

The effective subregion is the intersection of the subregion and its base region (there is no point in programming SADDEND higher than the associated BADDEND).

11.5.15 RISAF region x subregion A nested mode register (RISAF_REGx_ANESTR)

Address offset: 0x05C+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RISAF_CR.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.DCCID[2:0]Res.DCENRes.Res.
rwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:4 DCCID[2:0]: Delegated configuration CID

The trusted domain can use this bitfield to statically define which compartment can program the RIF configuration of subregion A if DCEN = 1 in this register.

Bit 3 Reserved, must be kept at reset value.

Bit 2 DCEN: Delegated configuration enable

0: RIF configuration for subregion A can be written only by the trusted domain.

1: RIF configuration for subregion A can be written only by compartment DCCID, defined in this register. If base region x is defined as secure (SEC = 1), nonsecure write accesses to this subregion RIF configuration by compartment DCCID are ignored.

Note: RIF configuration of subregion A is defined as RISAF_REGx_ACFGR, RISAF_REGx_ASTARTR, and RISAF_REGx_AENDR.

Bits 1:0 Reserved, must be kept at reset value.

11.5.16 RISAF region x subregion B configuration register (RISAF_REGx_BCFGR)

Address offset: 0x060+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0000

Unprivileged writes are ignored. Nonsecure writes are ignored if SEC = 1 in RISAF_REGx_CFGR, or if DCEN = 0 in RISAF_REGx_BNESTR. Any read access is allowed to this register. Writes are ignored if RLOCK = 1 in this register.

When the delegated configuration is enabled (DCEN = 1 in RISAF_REGx_BNESTR), only the compartment DCCID defined in RISAF_REGx_BNESTR can write to this register.

When the delegation is disabled (DCEN = 0), only the trusted domain can program this register.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance.

RM0457 Bit 18 Bit 17 Bit 16 Bit 6 Bit 5 Bit 4DEDF DISTURBF PROGFAIL OTPSEC OTPERR OTPNVIR: Disturb flag : Programming failed : OTP with error : OTP not virgin
31 30 292827 26 25 24 23 22 21 20 19 18 17 16
Res. Res. Res.Res.Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res.
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
ENC Res. WREN RDENRes. Res. PRIV SEC Res. SRCID[2:0] Res. Res. RLOCK SREN
r rwrwrw rw rw rw rw rs rw
Bit 15ENC: Encrypted subregion
feature is not available in RISAF (see ENCDIS in RISAF_SR, andSection 11.3 ). 0: No effect
Bit 13WREN: Write enable
Bit 12RDEN: Read enable
Bit 9PRIV: Privileged subregion
Bit 8SECalways granted. : Secure subregion discarded.
Bits 6:4SRCID[2:0]: Subregion CID
RM0457 Rev 5 411/ 5881

Bits 31:16 Reserved, must be kept at reset value.

Bit 15 ENC: Encrypted subregion

This read-only bit is a mirror to ENC in RISAF_REGx_CFGR. It is reserved if the encryption feature is not available in RISAF (see ENCDIS in RISAF_SR, and Section 11.3).

0: No effect

1: Allowed read (write) requests to subregion B of region x are decrypted (encrypted)

Bit 14 Reserved, must be kept at reset value.

Bit 13 WREN: Write enable

This bit is taken into account only if SREN = 1 in this register.

0: Any writes to subregion B of region x are ignored

1: Subregion B of region x can be written to

Bit 12 RDEN: Read enable

This bit is taken into account only if SREN = 1 in this register.

0: Any read to subregion B of region x returns 0

1: Subregion B of region x can be read

Bits 11:10 Reserved, must be kept at reset value.

Bit 9 PRIV: Privileged subregion

This bit is taken into account only if SREN = 1 in this register.

0: Privileged and unprivileged accesses are granted in subregion B of region x

1: Only privileged accesses are granted in subregion B of region x

Note: When base region x is defined as unprivileged for the SCID compartment (PRIVCy = 0 in RISAF_REGx_CFGR, with SRCID = Cy), unprivileged accesses to subregion B are always granted.

Bit 8 SEC: Secure subregion

This bit is taken into account only if SREN = 1 in this register. Nonsecure modification to it are discarded.

0: Only nonsecure requests can access subregion B of region x

1: Only secure requests can access subregion B of region x

Note: When base region x is defined as nonsecure (SEC = 0 in RISAF_REGx_CFGR), only nonsecure accesses to subregion B are granted.

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 SRCID[2:0]: Subregion CID

When SREN = 1 in this register, SRCID[2:0] defines which compartment has access to subregion B of RISAF region x.

Bits 3:2 Reserved, must be kept at reset value.

Bit 1 RLOCK: Resource lock

When this bit is set, the subregion resource is locked.

0: RISAF_REGx_BCFGR, RISAF_REGx_BSTARTR, and RISAF_REGx_BENDR are writable

1: Writes to RISAF_REGx_BCFGR, RISAF_REGx_BSTARTR, and RISAF_REGx_BENDR are ignored

Note: This bit is set once, cleared only by RISAF reset. It cannot be set if GLOCK = 0 in RISAF_CR.

Bit 0 SREN: Subregion enable

0: Subregion B of region x is disabled. Access control of base region x applies to any access between this subregion start and end addresses.

1: Subregion B of region x is enabled. Access control defined in subregion B applies to any access between subregion B start and end addresses.

Note: The filtering starts from address RISAF_REGx_BSTARTR (included), and ends at address RISAF_REGx_BENDR (included).

11.5.17 RISAF region x subregion B start-address register (RISAF_REGx_BSTARTR)

Address offset: 0x064+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0000

Unprivileged writes are ignored. Nonsecure writes are ignored if SEC = 1 in RISAF_REGx_CFGR, or if DCEN = 0 in RISAF_REGx_BNESTR. Any read access is allowed to this register. Writes are ignored if RLOCK = 1 or SREN = 1 in RISAF_REGx_BCFGR.

When the delegated configuration is enabled (DCEN = 1 in RISAF_REGx_BNESTR), only the compartment DCCID defined in RISAF_REGx_BNESTR can write to this register. When the delegation is disabled (DCEN = 0), only the trusted domain can program this register.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance, and for details on protected address space size and watermark granularity.

31302928272625242322212019181716
SADDSTART[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SADDSTART[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SADDSTART[31:0]: Subregion address start

This bitfield defines the byte-address offset (relative to the base address of the protected address space) of the lowest byte-address in subregion B in base region x.

Address bits less than the granularity and greater than the protected address space size cannot be written, and remain 0.

The effective subregion is the intersection of the subregion and its base region (there is no point in programming SADDSTART below the associated BADDSTART).

11.5.18 RISAF region x subregion B end-address register (RISAF_REGx_BENDR)

Address offset: 0x068+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0FFF

Unprivileged writes are ignored. Nonsecure writes are ignored if SEC = 1 in RISAF_REGx_CFGR, or if DCEN = 0 in RISAF_REGx_BNESTR. Any read access is allowed to this register. Writes are ignored if RLOCK = 1 or SREN = 1 in RISAF_REGx_BCFGR.

When the delegated configuration is enabled (DCEN = 1 in RISAF_REGx_BNESTR), only the compartment DCCID defined in RISAF_REGx_BNESTR can write to this register. When the delegation is disabled (DCEN = 0), only the trusted domain can program this register.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance, and for details on protected address space size and watermark granularity.

31302928272625242322212019181716
SADDEND[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SADDEND[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SADDEND[31:0]: Subregion address end

This bitfield defines the byte-address offset (relative to the base address of the protected address space) of the highest byte-address of subregion B in base region x.

Address bits less than the granularity cannot be modified, and remain 1.

Address bits greater than the protected address space size cannot be written, and remain 0.

The effective subregion is the intersection of the subregion and its base region (there is no point in programming SADDEND higher than the associated BADDEND).

11.5.19 RISAF region x subregion B nested mode register (RISAF_REGx_BNESTR)

Address offset: 0x06C+0x40*(x-1) (x = 1 to 15)

Reset value: 0x0000 0000

Secure, privileged, trusted domain CID, write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RISAF_CR.

Refer to Section 11.3 to verify the number of base regions and subregions supported by this RISAF instance.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.DCCID[2:0]Res.DCENRes.Res.
rwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:4 DCCID[2:0]: Delegated configuration CID

The trusted domain can use this bitfield to statically define which compartment can program the RIF configuration of subregion B if DCEN = 1 in this register.

Bit 3 Reserved, must be kept at reset value.

Bit 2 DCEN: Delegated configuration enable

0: RIF configuration for subregion B can be written only by the trusted domain.

1: RIF configuration for subregion B can be written only by compartment DCCID, defined in this register. If base region x is defined as secure (SEC = 1), nonsecure write accesses to this subregion RIF configuration by compartment DCCID are ignored.

Note: RIF configuration of subregion B is defined as RISAF_REGx_BCFGR, RISAF_REGx_BSTARTR, and RISAF_REGx_BENDR.

Bits 1:0 Reserved, must be kept at reset value.

11.5.20 RISAF hardware configuration register (RISAF_HWCFGR)

Address offset: 0xFF0

Reset value: 0XXXXX XXXX

Refer to Section 11.3 for each instance reset value.

31302928272625242322212019181716
CFG4[7:0]CFG3[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
CFG2[7:0]CFG1[7:0]
rrrrrrrrrrrrrrrr

Bits 31:24 CFG4[7:0]: Hardware generic 4

This bitfield returns the number of address bits to match when determining access to a base region or subregion (WIDTH).

Bits 23:16 CFG3[7:0]: Hardware generic 3

This bitfield returns the smallest possible region size (granularity) (LOG_BLOCKSIZE).

Bits 15:8 CFG2[7:0]: Hardware generic 2

This bitfield returns the total number of subregions A and B (NUM_SUBREGIONAS, NUM_SUBREGIONBS).

Bits 7:0 CFG1[7:0]: Hardware generic 1

This bitfield returns the number of base regions (NUM_REGS).

11.5.21 RISAF version register (RISAF_VERR)

Address offset: 0xFF4

Reset value: 0XXXXX XXXX

Refer to Section 11.3 for each instance reset value.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 MAJREV[3:0]: RISAF major revision

Bits 3:0 MINREV[3:0]: RISAF minor revision

11.5.22 RISAF identification register (RISAF_IPIDR)

Address offset: 0xFF8

Reset value: 0x0010 016X

This offset is valid for instances not supporting the DDRMCE feature. For instance with DDRMCE feature, the offset is 0x1FFC. Refer to Section 11.3: RISAF implementation for each instance reset value.

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ID[31:0]: RISAF identification code

11.5.23 RISAF size identification register (RISAF_SIDR)

Address offset: 0xFFC

Reset value: 0xA3C5 DD0X

This offset is valid for instances not supporting the DDRMCE feature. For instance with DDRMCE feature, the offset is 0x1FFC. Refer to Section 11.3: RISAF implementation for each instance reset value.

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: RISAF size identification code

Bits[31:8] = 0xA3C5DD (fixed code)

Bits[7:0] = 0x01 (1-Kbyte address decoding)

11.5.24 RISAF register map

Table 52. RISAF register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000RISAF_CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLOCK
Reset value
0x004RISAF_SRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENCDISKEYRDYKEYVALIDGLOCK
Reset value0000
0x008RISAF_IASRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IAEF1IAEF0CAEFCAEF
Reset value0000
0x00CRISAF_IACRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IAEF1IAEF0CAEFCAEF
Reset value0000
0x010-0x01CReservedReserved
0x020 + 0x8 * x (x=0 to 1)RISAF_IAESRxRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IACID [2:0]
Reset value
0x024 + 0x8 * x (x=0 to 1)RISAF_IADDRIADD[31:0]
Reset value00000000000000000000000000000000
0x030 + 0x4 * x (x=0 to 3)
Last address: 0x03C
RISAF_KEYRxKEY{i + 32 * x}
Reset value00000000000000000000000000000000

Table 52. RISAF register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x040 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3C0
RISAF_REGx_CFGRRes.Res.Res.Res.Res.Res.Res.Res.PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0ENCRes.Res.Res.Res.Res.Res.SECRes.Res.Res.Res.Res.Res.Res.BREN
Reset value00000000000
0x044 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3C4
RISAF_REGx_STARTRBADDSTART[31:0]
Reset value0000000000000000000000000000000
0x048 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3C8
RISAF_REGx_ENDRBADDEND[31:0]
Reset value00000000000000000FFF
0x04C + 0x40*(x-1) (x=1 to 15)
Last address: 0x3CC
RISAF_REGx_CIDCFGRRes.Res.Res.Res.Res.Res.Res.Res.WRENC7WRENC6WRENC5WRENC4WRENC3WRENC2WRENC1WRENC0Res.Res.Res.Res.Res.Res.Res.Res.RDENC7RDENC6RDENC5RDENC4RDENC3RDENC2RDENC1RDENC0
Reset value0000000000000000
0x050 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3D0
RISAF_REGx_ACFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENCRes.WRENRDENRes.Res.Res.PRIVSECRes.SRCID [2:0]Res.Res.RLOCKSREN
Reset value0000000000
0x054 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3D4
RISAF_REGx_ASTARTRSADDSTART[31:0]
Reset value0000000000000000000000000000000
0x058 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3D8
RISAF_REGx_AENDRSADDEND[31:0]
Reset value0000000000000000000000000000000
0x05C + 0x40*(x-1) (x=1 to 15)
Last address: 0x3DC
RISAF_REGx_ANESTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DCCID [2:0]Res.DCENRes.Res.
Reset value0000
0x060 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3E0
RISAF_REGx_BCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENCRes.WRENRDENRes.Res.Res.PRIVSECRes.SRCID [2:0]Res.Res.RLOCKSREN
Reset value0000000000
0x064 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3E4
RISAF_REGx_BSTARTRSADDSTART[31:0]
Reset value0000000000000000000000000000000
0x068 + 0x40*(x-1) (x=1 to 15)
Last address: 0x3E8
RISAF_REGx_BENDRSADDEND[31:0]
Reset value00000000000000000FFF

Table 52. RISAF register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x06C + 0x40*(x-1) (x=1 to 15)
Last address: 0x3EC
RISAF_REGx_BNESTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DCCID [2:0]Res.DCENRes.Res.Res.
Reset value0000
0x3F0-0xFEFCReservedReserved
0xFF0RISAF_HWCFGRCFG4[7:0]CFG3[7:0]CFG2[7:0]CFG1[7:0]
Reset value(1)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xFF4RISAF_VERRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
Reset value(1)XXXXXXXX
0xFF8RISAF_IPIDRID[31:0]
Reset value(1)0000000000010000000000010110011X
0xFFCRISAF_SIDRSID[31:0]
Reset value10100011110001011101110100000100

1. Refer to Section 11.3: RISAF implementation for the actual reset value.

Refer to Section 2.4 for the register boundary addresses.