JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-1
1997 TI Test Symposium
JTAG
(IEEE 1149.1/P1149.4)
Tutorial
Introductory
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-2
1997 TI Test Symposium
Agenda
■
What Is JTAG?
(5 minutes)
■
The Increasing Problem of Test
(5 minutes)
■
Conventional Methods of Test
(10 minutes)
■
The Boundary-Scan Idea
(15 minutes)
■
The Boundary-Scan Architecture
(15 minutes)
■
Typical Applications
(15 minutes)
—
Interconnect Testing
—Logic Cluster Testing
—Memory Testing
—System-Level Test
■
Real JTAG Applications
(10 minutes)
■
For More Information
(5 minutes)
■
Q & A
(10 minutes)
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-3
1997 TI Test Symposium
What Is JTAG?
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-4
1997 TI Test Symposium
Standard Approach To Test
■
Developed by Joint Test Action Group (over 200 SC, test, and
system vendors) starting in mid '80's
■
Sanctioned by IEEE as Std 1149.1 Test Access Port and
Boundary-Scan Architecture in 1990
■
Solution: Build test facilities/test points into chips
■Focus: Ensure compatibility between all compliant ICs
JTAG / IEEE 1149.1
JTAG / IEEE 1149.1
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
Standard Test Access Port ...
■
4/5-Wire Interface at Chip-Level
■
Serial Instruction/Serial Data Port
■
Extensible to Include
—
user-defined instructions
user-defined data registers
User Register Bypass Register Instruction Register Decode Logic DR TDI IR TDO TMS TCK TAP Controller TRST*
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
… and Boundary-Scan
Architecture
■
Scan effectively partitions digital
logic to facilitate control and
observation of its function
■Chip-Internal Scan: Partitions
chips at storage cells (latches/
flip-flops) to effectively partition
sequential logic into clusters of
combinational logic
■
Boundary-Scan: Partitions boards
at chip I/Os for control and
observation of board-level nodes
COREAL 10Sept.-97 1149.1(JTAG)-Tut.I-7
1997 TI Test Symposium
The Increasing
Problem of Test
AL 10Sept.-97 1149.1(JTAG)-Tut.I-8
1997 TI Test Symposium
The Incredible Shrinking
Board
■
Miniaturization results in loss of test access
Yesterday
Today
Tom orrow ?
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-9
1997 TI Test Symposium
The Ever-Expanding Chip
■
Increasing integration at chip level
complicates controllability
Yesterday
1
0
Today
1D C1 1D C11
?
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-10
1997 TI Test Symposium
Cost will increase by a factor of
ten as fault finding moves
from one level of complexity
to the next. The result:
■
Reduced Profit Margins
■
Delayed Product
Introduction
■
Dissatisfied Customers
Can’t Afford Not To Test
1. Device level
1 unit of cost
2. Board level
10 units of cost
3. System level
100 units of cost
4. Field level
1,000 units of cost
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-11
1997 TI Test Symposium
Conventional
Methods of
Test
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-12
1997 TI Test Symposium
Conventional Methods
of Board Test
■
Based on board function,
rather than structure
■
Test generation primarily
manual
■
Test access limited to
primary I/O only
Functional Test
AL 10Sept.-97 1149.1(JTAG)-Tut.I-13
1997 TI Test Symposium
Conventional Methods
of Board Test
■
Based on board structure, but
limited by chip complexity
■Expensive testers and fixtures
required
■
Test access limited by:
—
Fine pitch packages
—Double-sided boards
—Conformal coating
—MCMs
In-Circuit Test
(‘Bed-of-Nails’ Test)
AL 10Sept.-97 1149.1(JTAG)-Tut.I-14
1997 TI Test Symposium
Conventional Methods
of Board Test
In-Circuit Test
(‘Bed-of-Nails’ Test)
■
Chip function can be
ignored for shorts testing
■
Chip function must be
considered for continuity
test
■
Test generation, though
automated, requires ICT
models
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-15
1997 TI Test Symposium
The
Boundary-Scan
Idea
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-16
1997 TI Test Symposium
The Boundary Scan Idea
■
‘In-Circuit’ test points moved
onto the silicon, creating
‘Virtual Nails’
■
Boundary scan cells bound
each net, providing for
continuity testing
■
Observe/Control cells provide
for test and normal function
CORE COREJTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
The Boundary Scan Idea
■
Scan provides a means
to arbitrarily observe
test results and source
test stimulus
■
Scan method requires
minimal on chip/board
resources (pins/nets)
CORE CORE
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
Boundary Scan Method
of Board Test
■
Based on board structure;
Not limited by chip
function/ complexity
■
Test access is not limited
by board physical factors
CORE CORE CORE CORE CORE CORE J T A GAL 10Sept.-97 1149.1(JTAG)-Tut.I-19
1997 TI Test Symposium
Boundary Scan Method
of Board Test
■
Chip function need not be
considered for board test
(shorted/open nets)
■
Test generation is highly
automated; Simple
‘In-Circuit Library’ models
(BSDL) are
vendor-supplied or
EDA-generated
AL 10Sept.-97 1149.1(JTAG)-Tut.I-20
1997 TI Test Symposium
The Boundary Scan Cell
CORE
NO
(
N
ormal O
ut
p
u
t)
NI (N
or
ma
l I
nput)
SI (Serial Input)
SO (Serial Output)
TEST/DATA MUX UPDATE LATCH/FLOP SCAN LATCH/FLOP CAPTURE/SCAN MUXOBSERVE
CONTROL
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-21
1997 TI Test Symposium
The Control Architecture
■
Boundary scan and other test
data registers operate under
control of instruction
register
■
Data is scanned from TDI to
TDO through selected test
data register or instruction
register under control of Test
Access Port (TAP) controller
■
TAP operates synchronously
to TCK using TMS for state
selection
CORE ID Register Bypass Register Instruction Register Decode Logic DR TDI IR TDO TMS TCK TAP ControllerJTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-22
1997 TI Test Symposium
The Test Access Port Controller
■ 16-state TAP provides 4 major operations: — RESET — RUN-TEST — SCAN-DR — SCAN-IR ■ Scans consist of 3 primary steps: — CAPTURE — SHIFT — UPDATE
Select DR-Scan Select IR-Scan
state transitions occur on rising edge of TCK based on the current state and the TMS input value ONLY Test Logic Reset
Run Test/Idle Capture-IR Shift-IR Exit 1-IR Pause-IR Exit 2-IR Update-IR 0 1 0 1 1 1 1 0 0 0 0 1 1 1 0 1 0 1 1 0 0 1 0 0 1 1 0 0 1 Capture DR Shift-DR Exit 1-DR Pause-DR Update-DR Exit 2-DR 0 0 1
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-23
1997 TI Test Symposium
The Extest Instruction
(REQUIRED)
■
Provides for test external to chip,
such as interconnect test
Output pins operate in test mode,
driven from contents of BSC
update latch
Input data captured in BSC scan
latches prior to shift operation
■
Shift operation allows test
response to be observed at TDO
while next test stimulus inserted
at TDI
Following shift operation, new
test stimulus transferred to BSC
update latches
TMS TCK ID Register Bypass Register Instruction Register Decode Logic DR TDI IR TDO TAP Controller COREJTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-24
1997 TI Test Symposium
The Sample/Preload Instruction
(REQUIRED)
■
Provides means to preload
boundary before entry to test
mode
■
Output and input pins operate
in normal mode
Input pin data and core logic
output data captured in BSC
scan latches
■
Shift operation allows test
response to be observed while
next test stimulus inserted at
TDI
Following shift operation,
new stimulus transferred to
BSC update latches
ID Register Bypass Register Instruction Register Decode Logic DR TDI IR TDO TMS TCK ControllerTAP COREAL 10Sept.-97 1149.1(JTAG)-Tut.I-25
1997 TI Test Symposium
The Bypass Instruction
(REQUIRED)
■
Provides for abbreviated scan
path through chip
■
Output and input pins operate
in normal mode
■
The one-bit bypass register is
selected for scans
■
Mandatory that an all-ones
value updated into the IR
decodes to Bypass, as well as
any opcodes which are
otherwise undefined
CORE ID Register Bypass Register Instruction Register Decode Logic DR TDI IR TDO TMS TCK TAP ControllerAL 10Sept.-97 1149.1(JTAG)-Tut.I-26
1997 TI Test Symposium
Typical JTAG
Applications
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-27
1997 TI Test Symposium
Interconnect Test
■
All nets bound by BSC's
and/or primary I/O requiring
no physical access
■
Parallel access reduced
to card edge only
■
Test generation and
application fast and easy
Full B/S Board
J T A G
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-28
1997 TI Test Symposium
Interconnect Test
■
Not all nets are bound by
boundary scan and/or primary
I/O, perhaps requiring some ICT
access
■
Expense and complexity reduced
for test generation and test
application for chips/nets with
B/S access
■
Cluster testing may be used to
access non-scan nets
Partial B/S Board
J T A G
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
Logic Cluster Test
■
Random-logic cluster is
bound by
boundary-scannable chips
■
Deterministic test stimulus
(ATPG-generated) can be
driven to cluster from B/S
outputs
■
Test response can be captured
at B/S inputs
■
BIST methods (PRPG/PSA)
can be used for increased test
throughput and near
"At-speed" performance
L OGI C "CL UST E R "JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
Logic Cluster Test
IEEE 1149.1 Buffer Buffer Buffer Latch Buffer Registered Transceiver Mi crop rocessor Control Logic (Non-Scan) Parallel Data In Memory Array Address Control Data Scan Path ‘L V T 18 502 ‘L V T 18 502 ‘LVT18502 ‘A BT18502 ‘A BT18502 ‘L V T 18 504 TMS TCK TDO TDI
AL 10Sept.-97 1149.1(JTAG)-Tut.I-31
1997 TI Test Symposium
Memory Test
■
Memory array bound by
boundary scan chips
■
Automatic test patterns can be
generated and driven from B/S
outputs
■
Test response can be captured at
B/S inputs
■
Transceivers can test for net
shorts w/o memory R/W
■
BIST methods (PRPG/PSA) can
be used for increased test
throughput
Latch Buffer Registered TransceiverAddress
Control
Data
Memory
Array
‘ABT18
50
2
‘ABT18
50
2
‘LVT18
50
4
AL 10Sept.-97 1149.1(JTAG)-Tut.I-32
1997 TI Test Symposium
Memory Test
256 ACCESSES 1,000,000 ACCESSES IEEE 1149.1 EXTEST & SAMPLE) IEEE 1149.1 (with BIST capability) Time To Apply Scans Patterns Time To Apply Scans Patterns 375.00 Minutes 2,000,000 2,000,000 < 0.01 Minutes 28,000 2,000,000 MODE 5.625000 Seconds 512 512 0.000041 Seconds 7 512 SN74BCT8245 1A1 1A2 1A3 1A4 2A1 2A2 2A3 2A4 TDI TCK 1B1 1B2 1B3 1B4 2B1 2B2 2B3 2B4 DIR TDO TMS G 1Y1 1Y2 1Y3 1Y4 2Y1 2Y2 2Y3 2Y4 TDO TMS SN74BCT8244 1A1 1A2 1A3 1A4 2A1 2A2 2A3 2A4 TDI TCK G2 G1 256 x 8 RAM Array A0 A1 A2 A3 A4 A5 A6 A7 D0 D1 D2 D3 D4 D5 D6 D7 WE CS 1Y1 1Y2 1Y3 1Y4 2Y1 2Y2 2Y3 2Y4 TDI TCK SN74BCT8244 1A1 1A2 1A3 1A4 2A1 2A2 2A3 2A4 TDO TMS G2 G1JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-33
1997 TI Test Symposium
System-Level Test
■
TAP-addressable interface unit
extends JTAG access beyond
board-level
■
System-level test
■System design verification
■Sys integration (Mfg test)
■Sys self-test (Field Svc)
■Supports in place board test and
board-to-board test
■Allows reuse of device/
board test data
A S P TDO TDI TMS TCK A S P A S P
✦
ASP-Addressable Scan Port Device
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-34
1997 TI Test Symposium
Real JTAG
Applications
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-35
1997 TI Test Symposium
Real Applications of the TAP
■
Scan access to chips, boards,
systems for:
—
Design verification/debug
—
Manufacturing test
—
Hardware/software integration
—
Field test/diagnostics
■
Access built-in self-test (BIST)
■
Access on-chip/in-circuit
emulation (ONCE/ICE)
■
Access in-system programming
(ISP) of PLDs/EEPROMs
■
Let your imagination run wild!!!
TDI TCK TMS TDO TAP
CORE
I N T E R N A L S C A N T E S T BIST Emulation ProgrammingJTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-36
1997 TI Test Symposium
J T A G
Design Verification/Debug
■
Provides control and observation of
system under test without need for
physical access
—
Ease of set-up for test
—Can be used in standard system
configuration (no need for card
extenders, etc.)
—
Can be used in environmental
chambers
—
Can access on-chip emulation for
software/debug
—
Can access ISP for code
AL 10Sept.-97 1149.1(JTAG)-Tut.I-37
1997 TI Test Symposium
■
Provides test and diagnostic
capabilities of in-circuit test
without need/expense of
physical access
—
Improved fault
coverage/diagnostic without
large capital expense
—
Highly automated test
generation reduces test
development time
Manufacturing Test
J T A GICT
AL 10Sept.-97 1149.1(JTAG)-Tut.I-38
1997 TI Test Symposium
System Configuration
Maintenance
■
Provides low-level test access
within configured systems for:
—
In-house system integration
—Fielded-system test and
diagnostics
—Built-in self-test
—In-field upgradability
via ISP, etc.
—Remote field test,
diagnostic and upgrade
JT A G
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-40
1997 TI Test Symposium
TI’s JTAG Educational Products
Call (214)-638-0333 to ORDER
■
Scan Educator
—
PC-based tutorial with interactive
boundary-scan simulation.
—
FREE download at
http://www.ti.com/sc/data/jtag/scanedu.exe
■IEEE 1149.1 Testability videotapes
—
Two-part video presenting an overview and
instructions for boundary scan.
—
Item No. SATV001 (NTSC VHS) and
SATV002 (PAL VHS), $149 each.
—
In process of converting to MPEG on CD-ROM
IEEE 1149.1 Boundary-Scan
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
AL 10Sept.-97 1149.1(JTAG)-Tut.I-42
1997 TI Test Symposium
IEEE Standards
Call (800) 678-IEEE to ORDER
■
IEEE Std 1149.1-1990 (Includes IEEE Std 1149.1a-1993), IEEE Standard
Test Access Port and Boundary-Scan Architecture, ISBN 1-55937-350-4,
IEEE order number SH16626.
—
The official document which specifies the international standard for a test
access port and boundary-scan architecture. Informally known as the JTAG
standard, it was officially ratified by the IEEE in February 1990. Since, it has
been supplemented twice. The first supplement, ratified in June 1993, is
included in the referenced document. The second supplement is currently a
separate document, as referenced below.
■
IEEE Std 1149.1b-1994, Supplement to IEEE Std 1149.1990, ISBN
1-55937-497-7, IEEE order number SH94256.
—
The official document which specifies the international standard for a
boundary-scan description language. This supplement to IEEE Std 1149.1-1990
was ratified in September 1994.
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
Tutorials/Handbooks
■
The Test Access Port and Boundary-Scan Architecture, Colin M. Maunder, Rodham
E. Tulloss, ed., IEEE CS Press, ISBN 0-8186-9070-4.
—
Edited by two principal chairs of the IEEE 1149.1 working group, this
Computer Society tutorial compiles several of the seminal papers on
boundary-scan along with several invited papers on various topics including applications,
implementation, and others. It will primarily be of interest to the design and/or
test engineer.
■
The Boundary-Scan Handbook, Kenneth P. Parker, Kluwer Academic Publishers,
ISBN 0-7923-9270-1.
—
Authored by the principal force behind the Boundary-Scan Description
Language (BSDL) and an IEEE 1149.1 working group principal as well as a
long time manufacturing and design-for-test expert, this is truly considered
THE indispensable handbook on boundary scan for the design and/or test
engineer.
■
Boundary-Scan Test - A Practical Approach, Harry Bleeker, Peter van den Eijnden,
Frans de Jong, Kluwer Academic Publishers, ISBN 0-792-9296-5.
—
Authored by several JTAG and IEEE 1149.1 working group principals, this
book is a ready reference to boundary-scan technology, its benefits, and
JTAG (IEEE 1149.1/P1149.4) Tutorial - Introductory
Abbreviations/Acronyms
ASIC Application-Specific Integrated Circuit ASP Addressable Scan Port
ATE Automatic Test Equipment ATPG Automatic Test Pattern Generation BIST Built-In Self-Test
B/S Boundary-Scan BSC Boundary-Scan Cell
BSDL Boundary-Scan Description Language BSR Boundary-Scan Register BST Boundary-Scan Test CAE Computer-Aided Engineering DFT Design-for-Test DR Data Register
DSP Digital Signal Processing/Processor EDA Electronic Design Automation eTBC Embedded Test Bus Controller FPGA Field-Programmable Gate Array HSDL Hierarchical Scan Description Language ICE In-Circuit Emulation
ICT In-Circuit Test
IEEE Institute of Electrical & Electronics Engineers IR Instruction Register
ISP In-System Programming JTAG Joint Test Action Group MCM Multi-Chip Module Mfg Manufacturing PCB Printed Circuit Board PLD Programmable Logic Device PRPG Pseudo-Random Pattern Generation PSA Parallel Signature Analysis PWB Printed Wiring Board SPL Scan Path Linker SVF Serial Vector Format TAP Test Access Port TBC Test Bus Controller TCK Test Clock TDI Test Data Input TDO Test Data Output TMS Test Mode Select TRST Test Reset