Professional Documents
Culture Documents
Testing and Boundary Scan: Roth Text: Chapter 10.1 - 10.4
Testing and Boundary Scan: Roth Text: Chapter 10.1 - 10.4
During test (TCK clock): configure flip flops as a shift register (scan path) to
load test patterns via input from SDI and observe flip flop states at output SDO.
Normal operation (SCK clock): flip flop inputs/outputs connect from/to combinational ckt.
Circuit with and without scan chain
One long
scan path
Boundary Scan (Text: Chap. 10.4)
• Developed to test interconnect between chips on
PCB
– Originally referred to as JTAG (Joint Test Action Group)
– Uses scan design approach to test external interconnect
– No-contact probe overcomes problem of “in-circuit” test:
• surface mount components with less than 100 mil pin spacing
• double-sided component mounting
• micro- and floating vias
• Standardized test interface
– IEEE standard 1149.1 Core
– Four wire interface I/O buffer Application
• TMS - Test Mode Select w/ BS cell
Logic
• TCK - Test Clock
• TDI - Test Data In
• TDO - Test Data Out BS chain BS Int
• TRST - reset (optional & rarely included)
TMS TCK TDI TDO
Use of boundary scan to detect
shorts/opens between ICs
Link I/O cells of all ICs into one long scan chain
Boundary Scan Cell Architecture
Basic BS Cell
IN OUT
MUX
SOUT Bi-directional buffers
MUX
Capture IN → CAP
Update CAP → UPD BS test data out (SOUT)
Boundary Scan Architecture
Additional logic :
• 1 Boundary Scan cell
per I/O pin BS Chain (I/O buffers)
MUX
User Defined Registers
– 4-wire interface TDI
MUX
• TMS Bypass Register FF
TDO
• TCK
• TDI
Instruction Decoder
• TDO
– TAP controller Instruction Register
• 16-state FSM
• controlled by TMS & TCK
– various registers for TMS
TAP
TCK
• instructions Controller
• operations
Boundary Scan TAP Controller Operation
Note: transitions 1 Test Logic Reset
on rising edge
0
of TCK based 0 1 1 1
on TMS value Run Test Idle Select DR Select IR
0 0
1. Send test instruction serially Capture DR Capture IR
via TDI into Instruction 1 1
0 0
Register (shift-IR)
0 0
Shift DR Shift IR
1 1
2. Decode instruction and
Exit-1 DR Exit-1 IR
configure test circuitry 1 0 1 0
(update-IR) Pause DR
0
Pause IR
0
1 1
– Shifted into IR LSB first Exit-1 DR Exit-1 IR
1 0 1 0
– Exit IR on last bit of instruction Pause DR 0 Pause IR 0