3.2.26. c9, Instruction TCM Region Register

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

Table 3.87 lists the purposes of the individuals bits of the Instruction TCM Region Register.

The Instruction TCM Region Register is:

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

Figure 3.51 shows the bit arrangement for the Instruction TCM Region Register.

Figure 3.51. Instruction TCM Region Register format


Table 3.87 lists how the bit values correspond with the Instruction TCM Region Register functions.

Table 3.87. Instruction 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.

1 = TCM enabled.

The reset value of this bit depends on the value of the INITRAM static configuration signal. If INITRAM is HIGH then this bit resets to 1. If INITRAM is LOW then this bit resets to 0. For more information see Static configuration signals.

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

The value of the En bit at Reset depends on the INITRAM signal:

When INITRAM is HIGH this enables the Instruction TCM directly from reset, with a Base address of 0x00000. When the processor comes out of reset, it executes the instructions in the Instruction TCM instead of fetching instructions from external memory, except when the processor uses high vectors.

Note

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

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

Table 3.88. Results of access to the Instruction TCM Region Register

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

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

For example:

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

Attempts to change the Instruction 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