http://focus.ti.com/lit/ug/spru641/spru641.pdf

TMS320C6000 DSP
Designing for JTAG Emulation
Reference Guide
Literature Number: SPRU641
July 2003
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,
enhancements, improvements, and other changes to its products and services at any time and to discontinue
any product or service without notice. Customers should obtain the latest relevant information before placing
orders and should verify that such information is current and complete. All products are sold subject to TI’s terms
and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in
accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI
deems necessary to support this warranty. Except where mandated by government requirements, testing of all
parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for
their products and applications using TI components. To minimize the risks associated with customer products
and applications, customers should provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right,
copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process
in which TI products or services are used. Information published by TI regarding third-party products or services
does not constitute a license from TI to use such products or services or a warranty or endorsement thereof.
Use of such information may require a license from a third party under the patents or other intellectual property
of the third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is without
alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction
of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for
such altered documentation.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that
product or service voids all express and any implied warranties for the associated TI product or service and
is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.
Following are URLs where you can obtain information on other Texas Instruments products and application
solutions:
Products
Amplifiers
Applications
amplifier.ti.com
Audio
www.ti.com/audio
Data Converters
dataconverter.ti.com
Automotive
www.ti.com/automotive
DSP
dsp.ti.com
Broadband
www.ti.com/broadband
Interface
interface.ti.com
Digital Control
www.ti.com/digitalcontrol
Logic
logic.ti.com
Military
www.ti.com/military
Power Mgmt
power.ti.com
Optical Networking
www.ti.com/opticalnetwork
Microcontrollers
microcontroller.ti.com
Security
www.ti.com/security
Telephony
www.ti.com/telephony
Video & Imaging
www.ti.com/video
Wireless
www.ti.com/wireless
Mailing Address:
Texas Instruments
Post Office Box 655303 Dallas, Texas 75265
Copyright  2003, Texas Instruments Incorporated
Preface
Read This First
About This Manual
This document assists you in meeting the design requirements of the
XDS510 emulator with respect to JTAG designs and discusses the XDS510
cable (manufacturing part number 2617698-0001). This cable is identified by
a label on the cable pod marked JTAG 3/5 V and supports both standard 3-volt
and 5-volt target system power inputs.
The term JTAG as used in this document refers to Texas Instruments scanbased emulation, which is based on the IEEE 1149.1 standard.
Notational Conventions
This document uses the following conventions.
- Hexadecimal numbers are shown with the suffix h. For example, the
following number is 40 hexadecimal (decimal 64): 40h.
Related Documentation From Texas Instruments
The following documents describe the C6000 devices and related support
tools. Copies of these documents are available on the Internet at www.ti.com.
Tip: Enter the literature number in the search box provided at www.ti.com.
TMS320C6000 CPU and Instruction Set Reference Guide (literature
number SPRU189) describes the TMS320C6000 CPU architecture,
instruction set, pipeline, and interrupts for these digital signal processors.
TMS320C6000 Peripherals Reference Guide (literature number SPRU190)
describes the peripherals available on the TMS320C6000 DSPs.
TMS320C6000 Technical Brief (literature number SPRU197) gives an
introduction to the TMS320C62x and TMS320C67x DSPs, development tools, and third-party support.
TMS320C64x Technical Overview (SPRU395) gives an introduction to the
TMS320C64x DSP and discusses the application areas that are
enhanced by the TMS320C64x VelociTI.
SPRU641
Designing for JTAG Emulation
27
Trademarks
Related Documentation From Texas Instruments / Trademarks
TMS320C6000 Programmer’s Guide (literature number SPRU198)
describes ways to optimize C and assembly code for the
TMS320C6000 DSPs and includes application program examples.
TMS320C6000 Code Composer Studio Tutorial (literature number
SPRU301) introduces the Code Composer Studio integrated development environment and software tools.
Code Composer Studio Application Programming Interface Reference
Guide (literature number SPRU321) describes the Code Composer
Studio application programming interface (API), which allows you to
program custom plug-ins for Code Composer.
TMS320C6x Peripheral Support Library Programmer’s Reference
(literature number SPRU273) describes the contents of the
TMS320C6000 peripheral support library of functions and macros. It
lists functions and macros both by header file and alphabetically,
provides a complete description of each, and gives code examples to
show how they are used.
TMS320C6000 Chip Support Library API Reference Guide (literature
number SPRU401) describes a set of application programming interfaces
(APIs) used to configure and control the on-chip peripherals.
Trademarks
Code Composer Studio, C6000, C62x, C64x, C67x, TMS320C6000,
TMS320C62x, TMS320C64x, TMS320C67x, VelociTI, and XDS510 are
trademarks of Texas Instruments.
PAL is a registered trademark of Advanced Micro Devices, Inc.
28
Designing for JTAG Emulation
SPRU641
Contents
Contents
1
Designing Your Target System’s Emulator Connector (14-Pin Header) . . . . . . . . . . . . . . . . . 7
2
Bus Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3
IEEE 1149.1 Standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4
JTAG Emulator Cable Pod Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5
JTAG Emulator Cable Pod Signal Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6
Emulation Timing Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
7
Connections Between the Emulator and the Target System . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1
Buffering Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.2
Using a Target-System Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.3
Configuring Multiple Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
Mechanical Dimensions for the 14-Pin Emulator Connector . . . . . . . . . . . . . . . . . . . . . . . . . 18
9
Emulation Design Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1
Using Scan Path Linkers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2
Emulation Timing Calculations for SPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.3
Using Emulation Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.4
Performing Diagnostic Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SPRU641
Designing for JTAG Emulation
14
14
16
17
20
20
22
24
28
29
Figures
Figures
1
2
3
4
5
6
7
8
9
10
11
12
13
14-Pin Header Signals and Header Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
JTAG Emulator Cable Pod Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
JTAG Emulator Cable Pod Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Target-System-Generated Test Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Multiprocessor Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Pod/Connector Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
14-Pin Connector Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Connecting a Secondary JTAG Scan Path to an SPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
EMU0/1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
EMU0/1 Configuration With Additional AND Gate to Meet Timing Requirements . . . . . . . . 27
Suggested Timings for the EMU0 and EMU1 Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
EMU0/1 Configuration Without Global Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
TBC Emulation Connections for n JTAG Scan Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Tables
1
2
30
14-Pin Header Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Emulator Cable Pod Timing Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Designing for JTAG Emulation
SPRU641
Designing for JTAG Emulation
This document assists you in meeting the design requirements of the
XDS510 emulator with respect to JTAG designs and discusses the XDS510
cable (manufacturing part number 2617698-0001). This cable is identified by
a label on the cable pod marked JTAG 3/5 V and supports both standard 3-volt
and 5-volt target system power inputs.
The term JTAG as used in this document refers to Texas Instruments scanbased emulation, which is based on the IEEE 1149.1 standard.
1
Designing Your Target System’s Emulator Connector (14-Pin Header)
JTAG target devices support emulation through a dedicated emulation port.
This port is a superset of the IEEE 1149.1 standard and is accessed by the
emulator. To communicate with the emulator, your target system must have
a 14-pin header (two rows of seven pins) with the connections that are shown
in Figure 1. Table 1 describes the emulation signals.
Figure 1.
14-Pin Header Signals and Header Dimensions
TMS
1
2
TRST
TDI
3
4
GND
PD (VCC)
5
6
no pin (key)†
TDO
7
8
GND
TCK_RET
9
10
GND
TCK
11
12
GND
EMU0
13
14
EMU1
Header Dimensions:
Pin-to-pin spacing, 0.100 in. (X,Y)
Pin width, 0.025-in. square post
Pin length, 0.235-in. nominal
† While the corresponding female position on the cable connector is plugged to prevent improper connection, the cable lead for
pin 6 is present in the cable and is grounded, as shown in the schematics and wiring diagrams in this document.
SPRU641
Designing for JTAG Emulation
3
Designing Your Target System’s Emulator Connector (14-Pin Header)
Table 1.
14-Pin Header Signal Descriptions
Emulator†
State
Target†
State
Test mode select
O
I
TDI
Test data input
O
I
TDO
Test data output
I
O
TCK
Test clock. TCK is a 10.368-MHz clock source from the emulation cable
pod. This signal can be used to drive the system test clock
O
I
TRST‡
Test reset
O
I
EMU0
Emulation pin 0
I
I/O
EMU1
Emulation pin 1
I
I/O
PD(VCC)
Presence detect. Indicates that the emulation cable is connected and
that the target is powered up. PD should be tied to VCC in the target system.
I
O
TCK_RET
Test clock return. Test clock input to the emulator. May be a buffered or
unbuffered version of TCK.
I
O
GND
Ground
Signal
Description
TMS
† I = input; O = output
‡ Do not use pullup resistors on TRST: it has an internal pulldown device. In a low-noise environment, TRST can be left floating.
In a high-noise environment, an additional pulldown resistor may be needed. (The size of this resistor should be based on
electrical current considerations.)
Although you can use other headers, recommended parts include:
straight header, unshrouded
DuPont Connector Systems
part numbers: 65610−114
65611−114
67996−114
67997−114
4
Designing for JTAG Emulation
SPRU641
Designing Your Target System’s Bus
Emulator
Connector
(14-PinStandard
Header)
Protocol
/ IEEE 1149.1
2
Bus Protocol
The IEEE 1149.1 specification covers the requirements for the test access port
(TAP) bus slave devices and provides certain rules, summarized as follows:
- The TMS/TDI inputs are sampled on the rising edge of the TCK signal of
the device.
- The TDO output is clocked from the falling edge of the TCK signal of the
device.
When these devices are daisy-chained together, the TDO of one device has
approximately a half TCK cycle setup to the next device’s TDI signal. This type
of timing scheme minimizes race conditions that would occur if both TDO and
TDI were timed from the same TCK edge. The penalty for this timing scheme
is a reduced TCK frequency.
The IEEE 1149.1 specification does not provide rules for bus master (emulator) devices. Instead, it states that it expects a bus master to provide bus slave
compatible timings. The XDS510 provides timings that meet the bus slave
rules.
3
IEEE 1149.1 Standard
For more information concerning the IEEE 1149.1 standard, contact IEEE
Customer Service:
Address:
IEEE Customer Service
445 Hoes Lane, PO Box 1331
Piscataway, NJ 08855-1331
Phone:
in the US and Canada: (800) 678−IEEE
outside the US and Canada: (908) 981−1393
FAX: (908) 981−9667
Telex:
833233
SPRU641
Designing for JTAG Emulation
5
JTAG Emulator Cable Pod Logic
4
JTAG Emulator Cable Pod Logic
Figure 2 shows a portion of the emulator cable pod. These are the functional
features of the pod:
- Signals TDO and TCK_RET can be parallel-terminated inside the pod if
required by the application. By default, these signals are not terminated.
- Signal TCK is driven with a 74LVT240 device. Because of the high-current
drive (32 mA IOL/IOH), this signal can be parallel-terminated. If TCK is tied
to TCK_RET, then you can use the parallel terminator in the pod.
- Signals TMS and TDI can be generated from the falling edge of TCK_RET,
according to the IEEE 1149.1 bus slave device timing rules.
- Signals TMS and TDI are series-terminated to reduce signal reflections.
- A 10.368-MHz test clock source is provided. You may also provide your
own test clock for greater flexibility.
Figure 2.
JTAG Emulator Cable Pod Interface
+5 V
180 Ω
74F175
270 Ω
Q
JP1
Q
D
TDO (Pin 7)
74LVT240
10.368 MHz
Y
Y
GND (Pins 4,6,8,10,12)
A
33 Ω
TMS (Pin 1)
33 Ω
Y
TDI (Pin 3)
Y
EMU0 (Pin 13)
74AS1034
TCK (Pin 11){
EMU1 (Pin 14)
+5 V
180 Ω
TCK_RET (Pin 9){
270 Ω
JP2
TRST (Pin 2)
74AS1004
PD(VCC) (Pin 5)
100 Ω
RESIN
TL7705A
† The emulator pod uses TCK_RET as its clock source for internal synchronization. TCK is provided as an optional target system
test clock source.
6
Designing for JTAG Emulation
SPRU641
JTAG Emulator Cable Pod Signal Timing
5
JTAG Emulator Cable Pod Signal Timing
Figure 3 shows the signal timings for the emulator cable pod. Table 2 defines
the timing parameters. These timing parameters are calculated from values
specified in the standard data sheets for the emulator and cable pod and are
for reference only. Texas Instruments does not test or guarantee these timings.
The emulator pod uses TCK_RET as its clock source for internal synchronization. TCK is provided as an optional target system test clock source.
Figure 3.
JTAG Emulator Cable Pod Timing Diagram
1
1.5 V
TCK_RET
2
3
TMS/TDI
4
5
6
TDO
Table 2.
No.
Emulator Cable Pod Timing Parameters
Reference
Description
Min
Max
1
tc(TCK)
2
TCK_RET period
35
200
tw(TCKH)
TCK_RET high-pulse duration
15
ns
3
tw(TCKL)
TCK_RET low-pulse duration
15
ns
4
td(TMS)
Delay time, TMS/TDI valid from TCK_RET low
6
5
tsu(TDO)
TDO setup time to TCK_RET high
3
ns
6
th(TDO)
TDO hold time from TCK_RET high
12
ns
SPRU641
20
Units
ns
ns
Designing for JTAG Emulation
7
Emulation Timing Calculations
6
Emulation Timing Calculations
The following examples help you calculate emulation timings in your system.
For actual target timing parameters, see the appropriate device data sheets.
Assumptions:
tsu(TTMS)
td(TTDO)
td(bufmax)
td(bufmin)
t(bufskew)
t(TCKfactor)
Target TMS/TDI setup to TCK high
Target TDO delay from TCK low
Target buffer delay, maximum
Target buffer delay, minimum
Target buffer skew between two devices
in the same package:
[td(bufmax) − td(bufmin)] × 0.15
Assume a 40/60 duty cycle clock
10 ns
15 ns
10 ns
1 ns
1.35 ns
0.4
(40%)
Given in Table 2 (on page 7):
td(TMSmax)
Emulator TMS/TDI delay from TCK_RET
low, maximum
tsu(TDOmin)
TDO setup time to emulator TCK_RET
high, minimum
20 ns
3 ns
There are two key timing paths to consider in the emulation design:
- The TCK_RET-to-TMS/TDI path, called tpd(TCK_RET−TMS/TDI), and
- The TCK_RET-to-TDO path, called tpd(TCK_RET−TDO).
Of the following two cases, the worst-case path delay is calculated to determine the maximum system test clock frequency.
Case 1:
Single processor, direct connection, TMS/TDI timed from TCK_RET low.
t pd ǒTCK_RET–TMSńTDIǓ +
ƪt
d ǒTMSmaxǓ
) t su ǒTTMSǓ
ƫ
t ǒTCKfactorǓ
[20ns ) 10ns]
0.4
+ 75ns (13.3 MHz)
+
t pd ǒTCK_RET–TDOǓ +
ƪt
d ǒTTDOǓ
) t su ǒTDOminǓ
ƫ
t ǒTCKfactorǓ
[15ns ) 3ns]
0.4
+ 45ns (22.2 MHz)
+
In this case, the TCK_RET-to-TMS/TDI path is the limiting factor.
8
Designing for JTAG Emulation
SPRU641
Emulation Timing Calculations
Case 2:
Single/multiprocessor, TMS/TDI/TCK buffered input, TDO buffered output,
TMS/TDI timed from TCK_RET low.
t pd (TCK_RET–TMSńTDI) +
+
ƪtd (TMSmax ) tsu (TTMS ) t (bufskew)ƫ
)
)
t ǒTCKfactorǓ
ƪ20ns ) 10ns ) 1.35 nsƫ
0.4
+ 78.4ns (12.7 MHz)
t pd (TCK_RET–TDO) +
+
ƪtd (TTDO ) tsu (TDOmin) ) td (bufmax ƫ
)
)
t
ǒTCKfactorǓ
[15ns ) 3ns ) 10ns]
0.4
+ 70ns (14.3 MHz)
In this case, the TCK_RET-to-TMS/TDI path is the limiting factor.
In a multiprocessor application, it is necessary to ensure that the EMU0−1 lines
can go from a logic low level to a logic high level in less than 10 µs. This can be
calculated as follows:
tr
= 5(Rpullup × Ndevices × Cload_per_device)
= 5(4.7 kW ×16 × 15 pF)
= 5.64 µs
Refer to the device datasheet for the actual Rpullup value.
SPRU641
Designing for JTAG Emulation
9
Connections Between the Emulator and the Target System
7
Connections Between the Emulator and the Target System
It is extremely important to provide high-quality signals between the emulator
and the JTAG target system. Depending upon the situation, you must supply
the correct signal buffering, test clock inputs, and multiple processor interconnections to ensure proper emulator and target system operation.
Signals applied to the EMU0 and EMU1 pins on the JTAG target device can
be either input or output (I/O). In general, these two pins are used as both input
and output in multiprocessor systems to handle global run/stop operations.
EMU0 and EMU1 signals are applied only as inputs to the XDS510 emulator
header.
7.1
Buffering Signals
If the distance between the emulation header and the JTAG target device is
greater than 6 inches, the emulation signals must be buffered. If the distance
is less than 6 inches, no buffering is necessary. The following illustrations
depict these two situations.
- No signal buffering. In this situation, the distance between the header
and the JTAG target device should be no more than 6 inches.
6 Inches or Less
VCC
VCC
JTAG Device
Emulator Header
EMU0
EMU1
TRST
TMS
TDI
TDO
TCK
13
14
2
1
3
7
11
9
EMU0
PD
5
EMU1
TRST
GND
TMS
GND
TDI
GND
TDO
GND
TCK
GND
4
6
8
10
12
TCK_RET
GND
The EMU0 and EMU1 signals must have pullup resistors connected to VCC to
provide a signal rise time of less than 10 µs. Refer to the device datasheet for
the recommended resistor value.
10
Designing for JTAG Emulation
SPRU641
Connections Between the Emulator and the Target System
- Buffered transmission signals. In this situation, the distance between
the emulation header and the processor is greater than 6 inches. Emulation signals TMS, TDI, TDO, and TCK_RET are buffered through the same
package.
Greater Than
6 Inches
VCC
VCC
JTAG Device
Emulator Header
EMU0
EMU1
TRST
TMS
TDI
TDO
TCK
13
14
2
1
3
7
11
9
EMU0
PD
5
EMU1
TRST
GND
TMS
GND
TDI
GND
TDO
GND
TCK
GND
4
6
8
10
12
TCK_RET
GND
SPRU641
J
The EMU0 and EMU1 signals must have pullup resistors connected to
VCC to provide a signal rise time of less than 10 µs. Refer to the device
datasheet for the recommended resistor value.
J
The input buffers for TMS and TDI should have pullup resistors connected to VCC to hold these signals at a known value when the emulator is not connected. Refer to the device datasheet for the recommended resistor value.
J
To have high-quality signals (especially the processor TCK and the
emulator TCK_RET signals), you may have to employ special care
when routing the PWB trace. You also may have to use termination
resistors to match the trace impedance. The emulator pod provides
optional internal parallel terminators on the TCK_RET and TDO. TMS
and TDI provide fixed series termination.
J
Since TRST is an asynchronous signal, it should be buffered as
needed to insure sufficient current to all target devices.
Designing for JTAG Emulation
11
Connections Between the Emulator and the Target System
7.2
Using a Target-System Clock
Figure 4 shows an application with the system test clock generated in the
target system. In this application, the TCK signal is left unconnected.
Figure 4.
Target-System-Generated Test Clock
Greater Than
6 Inches
VCC
JTAG Device
VCC
Emulator Header
13
EMU0
14
EMU1
2
TRST
1
TMS
3
TDI
7
TDO
TCK
NC
11
9
EMU0
PD
5
EMU1
TRST
GND
TMS
GND
TDI
GND
TDO
GND
TCK
GND
4
6
8
10
12
TCK_RET
GND
System Test Clock
Note:
When the TMS/TDI lines are buffered, pullup resistors should be used to hold the buffer inputs at a known level when the
emulator cable is not connected.
There are two benefits to having the target system generate the test clock:
- The emulator provides only a single 10.368-MHz test clock. If you allow
the target system to generate your test clock, you can set the frequency
to match your system requirements.
- In some cases, you may have other devices in your system that require
a test clock when the emulator is not connected. The system test clock
also serves this purpose.
12
Designing for JTAG Emulation
SPRU641
Connections Between the Emulator and the Target System
7.3
Configuring Multiple Processors
Figure 5 shows a typical daisy-chained multiprocessor configuration, which
meets the minimum requirements of the IEEE 1149.1 specification. The emulation signals in this example are buffered to isolate the processors from the
emulator and provide adequate signal drive for the target system. One of the
benefits of this type of interface is that you can generally slow down the test
clock to eliminate timing problems. You should follow these guidelines for
multiprocessor support:
- The processor TMS, TDI, TDO, and TCK signals should be buffered
through the same physical package for better control of timing skew.
- The input buffers for TMS, TDI, and TCK should have pullup resistors con-
nected to VCC to hold these signals at a known value when the emulator
is not connected. Refer to the device datasheet for the recommended resistor value.
- Buffering EMU0 and EMU1 is optional but highly recommended to provide
isolation. These are not critical signals and do not have to be buffered
through the same physical package as TMS, TCK, TDI, and TDO. Unbuffered and buffered signals are shown in section 7.1.
Multiprocessor Connections
VCC
VCC
EMU1
TDI
TRST
TDO
TMS
EMU1
TRST
TDI
EMU0
TCK
TMS
TDO
JTAG Device
EMU0
JTAG Device
TCK
Figure 5.
Emulator Header
13
14
2
1
3
7
11
9
EMU0
PD
5
EMU1
TRST
GND
TMS
GND
TDI
GND
TDO
GND
TCK
GND
4
6
8
10
12
TCK_RET
GND
SPRU641
Designing for JTAG Emulation
13
Mechanical Dimensions for the 14-Pin Emulator Connector
8
Mechanical Dimensions for the 14-Pin Emulator Connector
The JTAG emulator target cable consists of a 3-foot section of jacketed cable,
an active cable pod, and a short section of jacketed cable that connects to the
target system. The overall cable length is approximately 3 feet 10 inches.
Figure 6 and Figure 7 show the mechanical dimensions for the target cable
pod and short cable. Note that the pin-to-pin spacing on the connector is
0.100 inches in both the X and Y planes. The cable pod box is nonconductive
plastic with four recessed metal screws.
Figure 6.
Pod/Connector Dimensions
2.70
4.50
9.50
0.90
Emulator Cable Pod
Connector
Short, Jacketed Cable
Refer to Figure 7.
Note:
14
All dimensions are in inches and are nominal dimensions, unless otherwise specified.
Designing for JTAG Emulation
SPRU641
Mechanical Dimensions for the 14-Pin Emulator Connector
Figure 7.
14-Pin Connector Dimensions
0.20
Cable
0.66
Connector, Side View
Key, Pin 6
0.100
0.87
Cable
0.100
Connector, Front View
Pins 1, 3, 5, 7, 9, 11, 13
Note:
Pins 2, 4, 6, 8, 10, 12, 14
All dimensions are in inches and are nominal dimensions, unless otherwise specified.
SPRU641
Designing for JTAG Emulation
15
Emulation Design Considerations
9
Emulation Design Considerations
This section describes the use and application of the scan path linker (SPL),
which can simultaneously add all four secondary JTAG scan paths to the main
scan path. It also describes the use of the emulation pins and the configuration
of multiple processors.
9.1
Using Scan Path Linkers
You can use the TI ACT8997 scan path linker (SPL) to divide the JTAG emulation scan path into smaller, logically connected groups of 4 to 16 devices. As
described in the Advanced Logic and Bus Interface Logic Data Book (literature
number SCYD001), the SPL is compatible with the JTAG emulation scanning.
The SPL is capable of adding any combination of its four secondary scan paths
into the main scan path.
A system of multiple, secondary JTAG scan paths has better fault tolerance
and isolation than a single scan path. Since an SPL has the capability of adding
all secondary scan paths to the main scan path simultaneously, it can support
global emulation operations, such as starting or stopping a selected group of
processors.
TI emulators do not support the nesting of SPLs (for example, an SPL
connected to the secondary scan path of another SPL). However, you can
have multiple SPLs on the main scan path.
Although the ACT8999 scan path selector is similar to the SPL, it can add only
one of its secondary scan paths at a time to the main JTAG scan path. Thus,
global emulation operations are not assured with the scan path selector. For
this reason, scan path selectors are not supported.
You can insert an SPL on a backplane so that you can add up to four device
boards to the system without the jumper wiring required with nonbackplane
devices. You connect an SPL to the main JTAG scan path in the same way you
connect any other device. Figure 8 shows you how to connect a secondary
scan path to an SPL.
16
Designing for JTAG Emulation
SPRU641
Emulation Design Considerations
Figure 8.
Connecting a Secondary JTAG Scan Path to an SPL†
SPL
DTCK
TDI
TDI
DTDO0
TMS
TMS
DTMS0
TCK
TCK
DTDI0
TDO
DTDO1
TRST
TDO
...
TRST
JTAG 0
DTMS1
DTDI1
TDI
DTDO2
TMS
DTMS2
TCK
DTDI2
TRST
DTDO3
TDO
JTAG N
DTMS3
DTDI3
† Voltage translators should be used between the SPL (5V) and the C6000 (3V).
The TRST signal from the main scan path drives all devices, even those on
the secondary scan paths of the SPL. The TCK signal on each target device
on the secondary scan path of an SPL is driven by the SPL’s DTCK signal. The
TMS signal on each device on the secondary scan path is driven by the respective DTMS signals on the SPL.
DTDO on the SPL is connected to the TDI signal of the first device on the
secondary scan path. DTDI on the SPL is connected to the TDO signal of the
last device in the secondary scan path. Within each secondary scan path, the
TDI signal of a device is connected to the TDO signal of the device before it.
If the SPL is on a backplane, its secondary JTAG scan paths are on add-on
boards; if signal degradation is a problem, you may need to buffer both the
TRST and DTCK signals. Although less likely, you may also need to buffer the
DTMSn signals for the same reasons.
SPRU641
Designing for JTAG Emulation
17
Emulation Design Considerations
9.2
Emulation Timing Calculations for SPL
The following examples help you to calculate the emulation timings in the SPL
secondary scan path of your system. For actual target timing parameters, see
the appropriate device data sheets.
Assumptions:
tsu(TTMS)
Target TMS/TDI setup to TCK high
10 ns
td(TTDO)
Target TDO delay from TCK low
15 ns
td(bufmax)
Target buffer delay, maximum
10 ns
td(bufmin)
Target buffer delay, minimum
1 ns
t(bufskew)
Target buffer skew between two devices
in the same package:
[td(bufmax) − td(bufmin)] × 0.15
t(TCKfactor)
Assume a 40/60 duty cycle clock
1.35 ns
0.4
(40%)
Given in the SPL data sheet:
td(DTMSmax)
SPL DTMS/DTDO delay from TCK
low, maximum
tsu(DTDLmin)
DTDI setup time to SPL TCK
high, minimum
31 ns
7 ns
td(DTCKHmin) SPL DTCK delay from TCK
high, minimum
2 ns
td(DTCKLmax) SPL DTCK delay from TCK
low, maximum
16 ns
There are two key timing paths to consider in the emulation design:
- The TCK-to-DTMS/DTDO path, called tpd(TCK−DTMS), and
- The TCK-to-DTDI path, called tpd(TCK−DTDI).
Of the following two cases, the worst-case path delay is calculated to determine the maximum system test clock frequency.
18
Designing for JTAG Emulation
SPRU641
Emulation Design Considerations
Case 1:
Single processor, direct connection, DTMS/DTDO timed from TCK low.
t pd ǒTCK–DTMSǓ +
+
ƪt
d ǒDTMSmaxǓ
) t d ǒDTCKHminǓ ) t su ǒTTMSǓ
ƫ
t ǒTCKfactorǓ
[31ns ) 2ns ) 10ns]
0.4
+ 107.5ns (9.3 MHz)
tpd ǒTCK–DTDIǓ +
+
ƪt
d ǒTTDOǓ
) td ǒDTCKLmaxǓ ) tsu ǒDTDLminǓ
ƫ
tǒTCKfactorǓ
[15ns ) 16ns ) 7ns]
0.4
+ 9.5ns (10.5 MHz)
In this case, the TCK-to-DTMS/DTDL path is the limiting factor.
Case 2:
Single/multiprocessor, DTMS/DTDO/TCK buffered input, DTDI buffered output, DTMS/DTDO timed from TCK low.
t pd (TCK–TDMS) +
+
ƪt
ƫ
d (DTMSmax) ) t ǒDTCKHminǓ ) t su (TTMS) ) t (bufskew)
t ǒTCKfactorǓ
[31ns ) 2ns ) 10ns ) 1.35ns]
0.4
+ 110.9ns (9.0 MHz)
t pd (TCK–DTDI) +
+
ƪt
d (TTDO) ) t d ǒDTCKLmaxǓ
) t su (DTDLmin) ) t d (bufskew)
t ǒTCKfactorǓ
[15ns ) 15ns ) 7ns ) 10ns]
0.4
+ 120ns (8.3 MHz)
In this case, the TCK-to-DTDI path is the limiting factor.
SPRU641
Designing for JTAG Emulation
19
Emulation Design Considerations
9.3
Using Emulation Pins
The EMU0/1 pins of TI devices are bidirectional, three-state output pins. When
in an inactive state, these pins are at high impedance. When the pins are
active, they function in one of the two following output modes:
- Signal Event
The EMU0/1 pins can be configured via software to signal internal events.
In this mode, driving one of these pins low can cause devices to signal
such events. To enable this operation, the EMU0/1 pins function as opencollector sources. External devices such as logic analyzers can also be
connected to the EMU0/1 signals in this manner. If such an external
source is used, it must also be connected via an open-collector source.
- External Count
The EMU0/1 pins can be configured via software as totem-pole outputs
for driving an external counter. If the output of more than one device is
configured for totem-pole operation, then these devices can be damaged.
The emulation software detects and prevents this condition. However, the
emulation software has no control over external sources on the EMU0/1
signal. Therefore, all external sources must be inactive when any device
is in the external count mode.
TI devices can be configured by software to halt processing if their EMU0/1
pins are driven low. This feature, in combination with the use of the signal event
output mode, allows one TI device to halt all other TI devices on a given event
for system-level debugging.
If you route the EMU0/1 signals between boards, they require special handling
because these signals are more complex than normal emulation signals.
Figure 9 shows an example configuration that allows any processor in the
system to stop any other processor in the system. Do not tie the EMU0/1 pins
of more than 16 processors together in a single group without using buffers.
Buffers provide the crisp signals that are required during a RUNB (run benchmark) debugger command or when the external analysis counter feature is
used.
20
Designing for JTAG Emulation
SPRU641
Emulation Design Considerations
Figure 9.
EMU0/1 Configuration
Target Board 1
Pullup Resistor
Open
Collector
Drivers
...
Backplane
Device
1
XCNT_ENABLE
EMU0/1
...
Device
n
EMU0/1-IN
...
...
Pullup
Resistor
PAL
EMU0/1-OUT
Target Board m
Pullup Resistor
To Emulator EMU0
TCK
Open
Collector
Drivers
...
Device
1
Notes:
EMU0/1
...
Device
n
1) The low time on EMUx-IN should be at least one TCK cycle and less than 10 ms. Software will set the EMUx-OUT
pin to a high state.
2) To enable the open-collector driver and pullup resistor on EMU1 to provide rising/falling edges of less than 25 ns,
the modification shown in this figure is suggested. Rising edges slower than 25 ns can cause the emulator to detect
false edges during the RUNB command or when the external counter selected from the debugger analysis menu
is used.
These seven important points apply to the circuitry shown in Figure 9 and
Figure 10 , and the timing shown in Figure 11:
- Open-collector drivers isolate each board. The EMU0/1 pins are tied to-
gether on each board.
- At the board edge, the EMU0/1 signals are split to provide IN/OUT. This
is required to prevent the open-collector drivers from acting as a latch that
can be set only once.
- The EMU0/1 signals are bused down the backplane. Pullup resistors are
installed as required.
SPRU641
Designing for JTAG Emulation
21
Emulation Design Considerations
- The bused EMU0/1 signals go into a PAL device, whose function is to
generate a low pulse on the EMU0/1-IN signal when a low level is detected
on the EMU0/1-OUT signal. This pulse must be longer than one TCK
period to affect the devices, but less than 10 µs to avoid possible conflicts
or retriggering, once the emulation software clears the device’s pins.
- During a RUNB debugger command or other external analysis count, the
EMU0/1 pins on the target device become totem-pole outputs. The EMU1
pin is a ripple carry-out of the internal counter. EMU0 becomes a
processor-halted signal. During a RUNB or other external analysis count,
the EMU0/1-IN signal to all boards must remain in the high (disabled)
state. You must provide some type of external input (XCNT_ENABLE) to
the PAL to disable the PAL from driving EMU0/1-IN to a low state.
- If sources other than TI processors (such as logic analyzers) are used to
drive EMU0/1, their signal lines must be isolated by open-collector drivers
and be inactive during RUNB and other external analysis counts.
- You must connect the EMU0/1-OUT signals to the emulation header or
directly to a test bus controller.
22
Designing for JTAG Emulation
SPRU641
Emulation Design Considerations
Figure 10.
EMU0/1 Configuration With Additional AND Gate to Meet Timing Requirements
Target Board 1
Pullup Resistor
Open
Collector
Drivers
...
Device
1
Backplane
XCNT_ENABLE
EMU0/1
...
Device
n
EMU0/1-IN
...
...
...
Pullup
Resistor
PAL
EMU0/1-OUT
Target Board m
Pullup Resistor
To Emulator EMU0
Circuitry required for >25-ns rising/
falling edge modification
AND
To Emulator EMU1
EMU1
Open
Collector
Drivers
EMU0/1
...
TCK
Device
1
...
Device
n
Up to
m boards
EMU1 signal from other boards
Notes:
1) The low time on EMUx−IN should be at least one TCK cycle and less than 10 ms. Software will set the EMUx−OUT
pin to a high state.
2) To enable the open-collector driver and pullup resistor on EMU1 to provide rising/falling edges of less than 25 ns,
the modification shown in this figure is suggested. Rising edges slower than 25 ns can cause the emulator to detect
false edges during the RUNB command or when the external counter selected from the debugger analysis menu
is used.
Figure 11.
Suggested Timings for the EMU0 and EMU1 Signals
TCK
EMU0/1-OUT
EMU0/1-IN
SPRU641
Designing for JTAG Emulation
23
Emulation Design Considerations
If having devices on one target board stopped by devices on another target
board via the EMU0/1 signals is not important, then the circuit in Figure 12 can
be used. In this configuration, the global-stop capability is lost. It is important
not to overload EMU0/1 with more than 16 devices.
Figure 12.
EMU0/1 Configuration Without Global Stop
Pullup Resistor
Pullup Resistor
...
Device
1
To Emulator
EMU0/1
Device
n
...
Target Board 1
EMU0/1
...
...
Target Board m
Pullup Resistor
...
Device
1
Note:
9.4
...
EMU0/1
Device
n
The open-collector driver and pullup resistor on EMU1 must be able to provide rising/falling edges of less than 25 ns.
Rising edges slower than 25 ns can cause the emulator to detect false edges during the RUNB command or when the
external counter selected from the debugger analysis menu is used. If this condition cannot be met, then the EMU0/1
signals from the individual boards should be ANDed together (as shown in Figure 10 ) to produce an EMU0/1 signal for
the emulator.
Performing Diagnostic Applications
For systems that require built-in diagnostics, it is possible to connect the
emulation scan path directly to a TI ACT8990 test bus controller (TBC) instead
of the emulation header. The TBC is described in the Texas Instruments
Advanced Logic and Bus Interface Logic Data Book (literature number
SCYD001). Figure 13 shows the scan path connections of n devices to the
TBC.
24
Designing for JTAG Emulation
SPRU641
Emulation Design Considerations
Figure 13.
TBC Emulation Connections for n JTAG Scan Paths†
Clock
TBC
VCC
TCKI
JTAG0
TDO
TDI
TMS0
TMS
TMS1
EMU0
TMS2/EVNT0
EMU1
TMS3/EVNT1
TRST
TMS4/EVNT2
TCK
TMS5/EVNT3
TDO
TCKO
TDI0
TDI1
TDI
JTAGn
TMS
EMU0
EMU1
TRST
TCK
TDO
† Voltage translators should be used between the TBC (5V) and the C6000 DSP (3V).
In the system design shown in Figure 13, the TBC emulation signals TCKI,
TDO, TMS0, TMS2/EVNT0, TMS3/EVNT1, TMS5/EVNT3, TCKO, and TDI0
are used, and TMS1, TMS4/EVNT2, and TDI1 are not connected. The target
devices’ EMU0 and EMU1 signals are connected to VCC through pullup resistors and tied to the TBC’s TMS2/EVNT0 and TMS3/EVNT1 pins, respectively.
The TBC’s TCKI pin is connected to a clock generator. The TCK signal for the
main JTAG scan path is driven by the TBC’s TCKO pin.
On the TBC, the TMS0 pin drives the TMS pins on each device on the main
JTAG scan path. TDO on the TBC connects to TDI on the first device on the
main JTAG scan path. TDI0 on the TBC is connected to the TDO signal of the
last device on the main JTAG scan path. Within the main JTAG scan path, the
TDI signal of a device is connected to the TDO signal of the device before it.
TRST for the devices can be generated either by inverting the TBC’s
TMS5/EVNT3 signal for software control or by logic on the board itself.
SPRU641
Designing for JTAG Emulation
25
26
Designing for JTAG Emulation
SPRU641
Index
Index
B
E
block diagram
connecting a secondary JTAG scan path to an
SPL 21
EMU0/1 configuration 25
EMU0/1 configuration with additional AND gate
to meet timing requirements 27
EMU0/1 configuration without global stop 28
JTAG emulator cable pod interface 10
multiprocessor connections 17
TBC emulation connections for n JTAG scan
paths 29
buffering 14
bus protocol
9
C
cable pod 10
dimensions 18
configuring multiple processors
connector
14-pin header 7
14-pin, dimensions 19
dimensions, mechanical
SPRU641
H
header, 14-pin 7
dimensions 7
header signals 7
JTAG 7
I
D
diagnostic applications
18
17
EMU0/1
configuration 25
with additional AND gate to meet timing
requirements 27
without global stop 28
emulation pins 24
rising edge modification 27
emulation
JTAG cable 7
timing calculations 12, 22
emulation design considerations 20
timing calculations for scan path linkers 22
using scan path linkers 20
emulator
connection to target system, JTAG mechanical
dimensions 18
emulation pins 24
signal buffering 14
target cable, header design 7
28
IEEE 1149.1 specification, bus slave device
rules 9
Designing for JTAG Emulation
1
Index
J
S
JTAG emulator
buffered signals 15
no signal buffering 14
pod interface 10
signal timings 11
timing parameters 11
scan path linkers
secondary JTAG scan chain to an SPL 21
suggested timings 27
scan paths, TBC emulation connections for JTAG
scan paths 29
signal descriptions, 14-pin header 8
signals
buffering for emulator connections 14
description, 14-pin header 8
timing 11
N
notational conventions
3
P
T
protocol, bus
9
R
related documentation from Texas Instruments
run/stop operation 14
2
Designing for JTAG Emulation
3
TBC emulation connections for n JTAG scan
paths 29
test clock 16
timing calculations 12, 22
trademarks 4
SPRU641