05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

c9, TCM Region Registers (DTCMRR <strong>and</strong> ITCMRR)<br />

The TCM Region Registers provide control <strong>and</strong> configuration information for each TCM region.<br />

Each TCM Region Register is:<br />

A 32-bit read/write register with some bits that are read-only.<br />

Accessible only in privileged modes.<br />

<strong>ARM</strong>v6 Differences<br />

When the Security Extensions are implemented, a Configurable access register with Non-secure<br />

access controlled by the DTCM-NSACR. See c9, TCM Non-Secure Access Control Registers,<br />

DTCM-NSACR <strong>and</strong> ITCM-NSACR on page AppxG-51.<br />

Accessed by reading or writing the CP15 registers with set to 0, set to c9, set to<br />

c1, <strong>and</strong> set to:<br />

— 0 for the current Data TCM Region Register<br />

— 1 for the current Instruction or unified Region Register.<br />

For example:<br />

MRC p15,0,,c9,c1,0 ; Read current Data TCM Region Register<br />

MCR p15,0,,c9,c1,0 ; Write current Data TCM Region Register<br />

MRC p15,0,,c9,c1,1 ; Read current Instruction or unified TCM Region Register<br />

MCR p15,0,,c9,c1,1 ; Write current Instruction or unified TCM Region Register<br />

The format of the TCM region registers is:<br />

31 12 11 7 6 2 1 0<br />

BaseAddress Reserved Size (0) En<br />

BaseAddress, bits [31:12]<br />

Bits [11:7] Reserved<br />

The base address of the TCM, given as the physical address of the TCM in the memory map.<br />

BaseAddress is assumed to be aligned to the size of the TCM. Any address bits in the range<br />

[(log2(RAMSize)-1):12] are ignored.<br />

BaseAddress is 0 at reset.<br />

Size, bits [6:2]<br />

Indicates the size of the TCM. See Table G-12 on page AppxG-48 for encoding of this field.<br />

This field is read-only <strong>and</strong> ignores writes.<br />

En, bit [0] TCM enable bit:<br />

En == 0 Disabled. This is the reset value.<br />

En == 1 Enabled.<br />

<strong>ARM</strong> DDI 0406B Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. AppxG-47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!