3.2.25. c9, Data TCM Region Register

The purpose of the Data TCM Region Register is to describe the physical base address and size of the Data TCM region and to provide a mechanism to enable it.

The Data TCM Region Register is:

If the processor is configured to have 2 Data TCMs, each TCM has a separate Data TCM Region Register. The TCM Selection Register determines the register in use.

Figure 3.50 shows the bit arrangement for the Data TCM Region Register.

Figure 3.50. Data TCM Region Register format


Table 3.85 lists how the bit values correspond with the Data TCM Region Register functions.

Table 3.85. Data TCM Region Register bit functions

BitsField name

Function

[31:12]

Base address

Contains the physical base address of the TCM.

The base address must be aligned to the size of the TCM.

Any bits in the range [(log2(RAMSize)-1):12] are ignored. The base address is 0 at Reset.

[11:7]-UNP/SBZ.
[6:2]Size

Indicates the size of the TCM on reads[a]. All other values are reserved:

b00000 = 0KB

b00011 = 4KB

b00100 = 8KB

b00101 = 16KB

b00110 = 32KB.

[1]-UNP/SBZ.

[0]

En

Indicates if the TCM is enabled.

0 = TCM disabled, reset value

1 = TCM enabled.

[a] On writes this field is ignored. For more details see Tightly-coupled memory.


Attempts to write to this register in Secure Privileged mode when CP15SDISABLE is HIGH result in an Undefined exception, see TrustZone write access disable.

Note

When the NS access bit is 0 for Data TCM, see c9, Data TCM Non-secure Control Access Register, attempts to access the Data TCM Region Register from the Non-secure world cause an Undefined exception.

Table 3.86 lists the results of attempted access for each mode.

Table 3.86. Results of access to the Data TCM Region Register

NS access bit valueSecure PrivilegedNon-secure PrivilegedUser
ReadWriteReadWrite
0DataDataUndefined exceptionUndefined exceptionUndefined exception
1DataDataDataDataUndefined exception

To use the Data TCM Region Register read or write CP15 with:

For example:

MRC p15, 0, <Rd>, c9, c1, 0    ; Read Data TCM Region Register
MCR p15, 0, <Rd>, c9, c1, 0    ; Write Data TCM Region Register

Attempting to change the Data TCM Region Register while a DMA operation is running has Unpredictable effects but there is no impact on security.

Copyright © 2004-2009 ARM Limited. All rights reserved.ARM DDI 0301H
Non-Confidential