User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 709
UG585 (v1.11) September 27, 2016
Chapter 27
JTAG and DAP Subsystem
27.1 Introduction
The Zynq-7000 family of AP SoC devices provides debug access via a standard JTAG (IEEE 1149.1)
debug interface. Internally, the AP SoC device implements both an ARM debug access port (DAP)
inside the Processing System (PS) as well as a standard JTAG test access port (TAP) controller inside
the Programmable Logic (PL). The ARM DAP as part of ARM CoreSight debug architecture allows the
user to leverage industry standard third-party debug tools.
In addition to the standard JTAG functionality, the Xilinx TAP controller supports a number of PL
features including PL Debug, eFuse/BBRAM programming, on-chip XADC access, etc. Most
importantly, it also allows debugging of ARM software through the DAP and PL hardware by using
the TAP simultaneously with a trace buffer and cross triggering interface between the PS and PL.
Another important debug feature the Zynq-7000 AP SoC includes is debug trace support. This
feature allows the user to capture both the PS and PL trace into a common trace buffer that is either
read out through JTAG, described below, or sent out through the trace port interface unit (TPIU),
described in Chapter 28, System Test and Debug.
27.1.1 Block Diagram
Figure 27-1 shows the top level DAP/TAP architecture. As soon as the BootROM passes control to
user software, the JTAG chain is enabled automatically, assuming a non-secure boot process. This
allows debugging from the user software entry point.
JTAG supports two different modes: cascaded JTAG mode (also referred to as single chain mode) and
independent JTAG mode (also referred to as split chain mode). The mode is determined through the
mode input when the system comes out of reset.
In cascaded JTAG chain mode, both the TAP and DAP are visible from external JTAG debug tools or a
JTAG tester. With dedicated PL_TDO/TMS/TCK/TDI I/O at the PL side, only one JTAG cable can be
connected, though it has access both to PS and PL features concurrently.
To debug ARM software and the PL design simultaneously with separate cables, the user must switch
to independent JTAG mode. In this mode, JTAG cables only see the Xilinx TAP controller from the
dedicated PL_TDO/TMS/TCK/TDI pins. To debug ARM software, the user can route the ARM DAP
signals (PJTAG) through the MIO or through the EMIO and to PL SelectIO pins.
It is important to note that both the PS and PL must be powered on to use JTAG debug. Due to
security reasons, the JTAG chain is protected with triple redundancy gating logic to prevent