User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 712
UG585 (v1.11) September 27, 2016
Chapter 27: JTAG and DAP Subsystem
27.2 Functional Description
Figure 27-3 shows the ARM DAP and JTAG TAP controllers connected in daisy-chain order with the
ARM DAP at the front of chain. The two JTAG controllers belong to two different power domains. The
ARM DAP is in the PS power domain while the TAP is in the PL power domain. JTAG I/O pads are
located in the PL power domain to take advantage of existing JTAG I/O pads in the PL. Although the
PS supports PL power down mode, both power domains must be powered on to support all JTAG
related features.
The ARM DAP controller has a 4-bit IR length and the TAP controller has a 6-bit IR length. The two
controllers operate completely independently. The user can access the TAP and ARM DAP controller
simultaneously in independent mode. Due to security reasons, the ARM DAP controller is bypassed
when the PS is out of reset. The Xilinx TAP controller within the PL can be disabled through the eFuse
or the control register within the PL configuration logic.
All debug components within the PS are under direct control of the debug tools, such as ARM RVDS
or Xilinx XDK, through ARM DAP. All debug components (including DAP) within the PS are designed
and integrated following ARM CoreSight architecture. Although there is no CoreSight component
within the PL, FTM components within the PS allows a PL trace to be dumped into the ETB. CTI/CTM
supports cross triggering between the PS and PL.
As shown in Figure 27-3, all PS debug components are tied to the debug APB bus with the DAP as the
only bus master. External debug tools connected to the ARM DAP through JTAG uses the debug APB
bus to configure all debug components including CPU, CTI/CTM, PTM, ITM, and FTM. Debug APB is
also used to extract trace data from the ETB. It is a complicated process to configure all of the debug
components properly to support user debug needs. Fortunately, most of the work is automatically
handled by the debug tools. However, understanding Zynq debug architecture is necessary to better
utilize the full system debug capability.
Other than debug control, the ARM DAP also acts as master device within the system interconnect.
In previous debug systems, it was required to halt the CPU in order to probe system address space.
This new arrangement allows the user to access system address space without halting the CPU. (See
Chapter 28, System Test and Debug for more information).