Professional Documents
Culture Documents
L12 Boundary Scan
L12 Boundary Scan
L12 Boundary Scan
1 JTAG
Boundary Scan Standard
1
Purpose of Standard
2
History
• 1985
– Joint European Test Action Group (JETAG, Philips)
• 1986
– VHSIC Element-Test & Maintenance (ETM) bus standard
(IBM et al.)
– VHSIC Test & Maintenance (TM) Bus structure (IBM et al.)
• 1988
– Joint Test Action Group (JTAG) proposed Boundary Scan
Standard
• 1990
– Boundary Scan approved as IEEE Std. 1149.1-1990
– Boundary Scan Description Language (BSDL) proposed
by HP
3
• 1993
– 1149.1a-1993 approved to replace 1149.1-1990
• 1994
– 1149.1b BSDL approved
• 1995
– 1149.5 (Module Test and Maintenance Bus) approved
4
Basic Chip Architecture for 1149.1
Sin Sout
TAP
TMS Controller TCK
5
• Test Access Port (TAP)
• TAP controller
– A finite-state machine with 16 states.
• Test Data Registers
– Mandatory
• Boundary scan register
• Bypass register
• Instruction register
– Optional
• Device-id register
• Design-specific registers
6
• Signals:
– TDI: Test Data In
– TDO: Test Data Out
– TMS: Test Mode Selection
– TCK: Test Clock
– TRST* (optional): Test Reset
7
• Basic operation:
– Instruction sent (serially) over TDI into
instruction register.
– Selected test circuitry configured to respond
to instruction.
– Test instruction executed.
– Test results shifted out through TDO.
• New test data on TDI may be shifted in at
the same time.
8
Elementary Boundary Scan Cell
SOUT
IN 0 M OUT
U
1 X
0 M
U Mode
1 X ID Q ID Q
QA QB
SIN
ShiftDR ClockDR UpdateDR
9
• Operation modes:
– Normal: Mode = 0;
IN → OUT
10
State Diagram of TAP Controller
11
States of TAP Controller
12
Instruction Set
• EXTEST
– Test interconnection between chips on board.
• SAMPLE/PRELOAD
– Sample and shift out data, or shift in data only.
• BYPASS
– Bypass data through a chip.
• Optional instructions
– INTEST, RUNBIST, CLAMP, IDCODE, HIGH-Z,
USERCODE.
13
EXTEST
Chip1 Chip2
Internal 0 Internal
1. Shift-DR (Chip1) Logic Logic
TDI Registers TDO TDI Registers
TDO
TAP Controller TAP Controller
Internal Internal
2. Update-DR (Chip1) 0 0
Logic Logic
3. Capture-DR (Chip2)
TDI Registers TDO TDI Registers
TDO
TAP Controller TAP Controller
Internal 0 Internal
4. Shift-DR (Chip2) Logic Logic
14
SAMPLE/PRELOAD
Input
M Internal M
SAMPLE Output
U Logic U
QA QB X X
QA QB
SIN SOUT
Input
M Internal M
PRELOAD Output
U Logic U
QA QB X X
QA QB
SIN SOUT
15
BYPASS
Internal
Logic
Bypass
TDI Register TDO
(1 bit)
TAP Controller
16
INTEST
0
Internal Internal
0
Logic Logic
1.Shift-DR 2.Update-DR
TDI Registers TDO Registers TDO
TDI
TAP Controller TAP Controller
0
Internal 0 Internal
Logic 4. Shift-DR Logic
3.Capture-DR
TDI Registers TDO TDI Registers TDO
17
Test Bus Configuration
master master
TD0 TDI
TDI TDI
TD0 TCK
TCK TMS1 #2
#2 TMS2 TMS
TDI TMS
TDO TDO
TMS TMSN
TCK TCK
TDI TDI
TCK TCK
#N TMS #N
TMS
TDO TDO
18