Debug Test Access Port
ARM DDI 0301H
Copyright © 2004-2009 ARM Limited. All rights reserved.
14-15
ID012310
Non-Confidential, Unrestricted Access
Scan chain 5
Purpose
Debug.
Length
1 + 1 + 32 = 34 bits.
Description
This scan chain accesses CP14 register c5, the data transfer registers, rDTR and
wDTR. The rDTR is used to transfer words from the DBGTAP debugger to the
core, and is read-only to the core and write-only to the DBGTAP debugger. The
wDTR is used to transfer words from the core to the DBGTAP debugger, and is
read-only to the DBGTAP debugger and write-only to the core.
The DBGTAP controller only sees one, read/write, register through scan chain 5,
and the appropriate register is chosen depending on the instruction used. INTEST
selects the wDTR, and EXTEST selects the rDTR.
Additionally, scan chain 5 contains some status flags. These are nRetry, Valid, and
Ready. They are the captured versions of the rDTRempty, wDTRfull, and
InstCompl flags respectively. All are captured at the Capture-DR state.
Order
Figure 14-10 shows the order of bits in scan chain 5 with EXTEST selected.
Figure 14-11 shows the order of bits in scan chain 5 with INTEST selected.
Figure 14-10 Scan chain 5 bit order, EXTEST selected
Figure 14-11 Scan chain 5 bit order, INTEST selected
You can use scan chain 5 for two purposes:
•
As part of the
Debug Communications Channel
(DCC). The DBGTAP debugger uses scan
chain 5 to exchange data with software running on the core. The software accesses the
rDTR and wDTR using coprocessor instructions.
DBGTDI
DBGTDO
Data[31:0]
rDTR[31:0]
32 31
0
InstCompl
Ready
wDTR[31:0]
33
rDTRempty
EXTEST selected
nRetry
DBGTDI
DBGTDO
Data[31:0]
32 31
0
InstCompl
Ready
wDTR[31:0]
Valid
33
wDTRfull
INTEST selected