tutorial: implementing and using 1149 · introduction to mixed-signal boundary scan and test •...

92
Implementing and Using a Mixed-Signal Test Bus Stephen Sunter [email protected] © Stephen K. Sunter, 2004 Permission is hereby given to distribute freely, providing there is no fee charged and this copyright notice is included.

Upload: others

Post on 29-Jul-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

Implementing and Using a Mixed-Signal Test Bus

Stephen Sunter [email protected]

© Stephen K. Sunter, 2004 Permission is hereby given to distribute freely, providing there is no fee charged and this copyright notice is included.

Page 2: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

2© Stephen K. Sunter, 2004

Tutorial outline

Introduction to Mixed-Signal Boundary Scan and Test• 1149.1, .4, and LF analog test buses

Architecture and Design of 1149.4• Architecture, Instruction set, ABM & TBIC design

System Test Methodologies• Test automation, BSDL• System test methods

Page 3: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

Introduction toMixed-Signal Boundary Scan

1149

Page 4: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

4© Stephen K. Sunter, 2004

Introduction to Boundary Scan

Motivation for developing boundary scan• Circuit board size getting too small/expensive to probe• Need standard access to on-chip test capabilities

Expected benefits• Lower test cost – less hardware, complexity• Faster time to market – more automation, reuse

Result: JTAG, IEEE 1149.1 - 1990• Serial, digital access to all IC “digital” pins• Standard 4~5 pin Test Access Port

Page 5: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

5© Stephen K. Sunter, 2004

1149.1 digital control(only mandatory TAP pins shown)

4 pin Test Access Port used for all control and observation

Boundary Register

Bypass Register

Optional Register(s)

TAPController

TDO

Control signalsfor registers, mode, etc.

Instruction Register

InstructionDecoder

TDI

TMS

TCK

Page 6: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

6© Stephen K. Sunter, 2004

1149.1 view of digital IC

1149 TestController

Digital Circuits

TDO

Digital pins

Digital boundary modules

Digital pins

Digital boundary scan path

TMS

TCK

TDI

Page 7: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

7© Stephen K. Sunter, 2004

1149.1 view of mixed-signal IC

1149 TestController

Digital Circuits

TMS

TCK

TDI TDO

Analog Circuits

Digital pinsDigital pins

Analog pinsAnalog pins

Digital boundary modules

Digital boundary modules

Digital boundary scan path

Page 8: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

8© Stephen K. Sunter, 2004

What’s wrong with this picture?

Analog pins not handled by 1149.1• New ICs & boards with mixed-signal is >50%• Number of digital pins with analog circuitry is growing

– termination resistors, pull-ups, capacitors

Differential pins not handled by 1149.1• Number of differential pins growing

– Higher speed, lower VDD, lower power, less EMI

Digital ICs can have significant analog content• VBIAS , VREF , on-chip VDD/VBB generation

Page 9: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

9© Stephen K. Sunter, 2004

Introduction to 1149.4

Motivation for developing boundary scan• 1149.1 success is limited by analog circuitry• Board passive components getting too small to probe• P1149.4 Working Group started in 1992

Expected benefits• Lower test cost, time to market, … for all boards

Result: IEEE 1149.4 - 1999• Serial, analog access to all IC “analog” pins• Standard 2 pin Analog TAP (low frequency, analog bus)

Page 10: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

10© Stephen K. Sunter, 2004

1149.4 view of mixed-signal IC

1149 TestController

Digital Circuits

TMS

TCK

TDI TDO

AT1 AT2

Analog Circuits

AB2AB1

Digital pinsDigital pins

Analog pinsAnalog pins

Digital boundary modules

Analog boundary modules

Digital boundary modules

Digital boundary scan path

Test BusInterface Circuit

Page 11: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

11© Stephen K. Sunter, 2004

1149.1 board-level view

Parallel control busSerial (or parallel) data bus

TMSTCK

TDI TDO TDI TDO TDI TDO TDI TDOTDI TDO

Page 12: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

12© Stephen K. Sunter, 2004

1149.4 board-level view

1149.1 control and data busesParallel analog bus

TMSTCK

TDI TDO TDI TDO TDI TDO TDI TDOTDI TDO

AT1AT2

Page 13: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

13© Stephen K. Sunter, 2004

1149.4 board-level view

Alternative arrangement to accommodate ... • Multiple voltage ranges• Diverse frequency ranges• Large number of devices

TMSTCK

TDI TDO TDI TDO TDI TDO TDI TDOTDI TDO

AT1aAT2a e.g., 5V range

e.g., 2V rangeAT1bAT2b

Page 14: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

14© Stephen K. Sunter, 2004

Why low frequency bus?

LF: <100 kHz (allows <1ms measurements)

Won’t affect, or be affected by, other circuitry• Coupling via interconnect C and L is minimal at LF• Most interference is from digital at HF – easy to LPF

Relatively cheap to measure accurately• 16~24b resolution Generators/Digitizers are LF• Can implement on-chip using sigma-delta

1149.4 requires LF, but does not preclude HF

Page 15: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

15© Stephen K. Sunter, 2004

Why analog 2-wire bus?

Continuous time, voltage, current• Choose sampling rate, accuracy, precision… post-silicon• Many parameters inherently analog

Lowest power, widest voltage range• CMOS transmission gates + logic: ≈ zero DC current• CMOS transmission gates convey voltages outside rails

Two wires• Stimulus/response, force/measure, ± differential

Page 16: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

16© Stephen K. Sunter, 2004

Myths about LF analog bus

x Not useful for HF analog circuit testCan measure DC biases, termination impedances, and can drive/monitor AC via on-chip mod/demod

x Not useful for digital circuit testCan measure output drive (VOL/ IOL), VIL, pull-ups, VDD, … without probing the pins

x Slow – long test timesUp to 50 measurements/ms, with 16-bit accuracy

x 1149.4 is a set of constraints for a LF analog busAll rules had to satisfy criteria of “necessary & sufficient”

Page 17: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

17© Stephen K. Sunter, 2004

Pin test circuitry overview

Digital or analog

evolutionary

(No DFT)

BscanBscan

1149.1

Test

BscanBscan

1149.1

Test HighZ

AB1

AB2

1149.4BscanBscan

Test

Page 18: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

18© Stephen K. Sunter, 2004

Pin test circuitry overview

AB1

AB2

1149.4Single-endedDigital or analog

BscanBscan

Test HighZ

1149.4Differential Analog

AB1

AB2

+

BscanBscan

Test

AB1

AB2

BscanBscan

BscanBscan

Page 19: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

19© Stephen K. Sunter, 2004

Required test functions for each pin

Each “analog” pin shall be able toAchieve isolation• Connect to core• Disconnect from core, i.e., from all active circuitry (“CD state”)

Perform tests equivalent to 1149.1• Drive pin’s VMAX , VMIN (D.C.)

• Compare VPIN to pin’s VTH, where VTH ≈ (VMIN+VMAX )/2

Facilitate analog parametric tests• Deliver analog ground (VG) via power rail• Deliver current to pin via AT1 pin and AB1 bus• Monitor pin’s voltage via AB2 bus and AT2 pin

1 0 1 1 0 1

Page 20: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

20© Stephen K. Sunter, 2004

Required test functions

Bus calibration

Bus isolation

1149.1 functions

TBIC

VH

VL , VG

AT1 AT2

INor

OUTpin

VTH

ICCore

on-chip

(Stimulus) (Response)

AB1 AB2

1149.1 TAP controller

TCK TMS TDI TDO

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

(DC)

SB1 SB2

S5 S6

SG

Page 21: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

21© Stephen K. Sunter, 2004

Test pins

TCK Clock Rising edge latches TMS, TDI Falling edge updates TDO

TMS Mode Select Determines next stateTDI Data In Instructions or scan dataTDO Data Out Test results or for next chipTRST Reset Resets test circuitry (optional)

AT1 Analog Test Stimulus current busAT2 Analog Test Resultant voltage busAT1N Analog Test Inv. stimulus current (optional)AT2N Analog Test Inv. resultant voltage (optional)

Page 22: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

22© Stephen K. Sunter, 2004

Analog Test Access Port (ATAP)

AT1: stimulus input• at least capable of conveying ±100 µA

– may be any combination of AC and DC– DC–10 kHz minimum bandwidth (±0.04 dB/ ±0.5%)– sufficient for state-of-the-art ATE to achieve <1% accuracy

AT2: response output• at least capable of conveying ±100 mV

– range at ABM: VSS–100 mV to VDD+100 mV– ensures that protection diodes are not activated

Volts

Page 23: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

23© Stephen K. Sunter, 2004

VSS – 100 mV ?

Why does voltage range of analog buffer need to extend 100 mV outside power rails?

IC1 IC23.3V

AT1

AT2

AT1

AT2

0 V

VG

Response?Stimulus

Page 24: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

24© Stephen K. Sunter, 2004

< 100 µA and < 100 mV ?

Max switch resistance permitted is 10 kΩ• 1 kΩ appears optimal• Switch resistance is non-linear• >100 µA may cause >1% distortion and inaccuracy

CUT impedance for 1% accuracy is 10 Ω ~100 kΩ• 1kΩ is geometric mean – 100 µA causes 100 mV• Larger AC voltage swing around VSS or VDD

may activate protection diodes

But … for some measurements, >1 mA is OK !

Page 25: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

25© Stephen K. Sunter, 2004

Core access

Not required, and has no rules• Must not interfere with boundary tests• Permit separate analog buses for boundary, core

Facilitates …• Reusable, ad hoc tests for random analog circuitry

– Within company, from IP suppliers, and from universities

• Systematic parametric test access– Measure temperature, impedance, drive, switching point, …– Inject corrected signals, analog faults, deviations, …

Page 26: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

26© Stephen K. Sunter, 2004

Feature overview

Capabilities• Continuous time voltage & current access, via 2 analog pins• Measure R, C, L, drive, etc. with <1% accuracy• True differential access, and other options• 1149.1-compliant

Mixed-signal tester per pin + core access

Benefits/value• Parametric structural test of IC & board• Standard access: reusable analog tests• In situ diagnosis/test: virtual guided probe• Infrastructure for self-test

+

Page 27: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

Architecture and Design of 1149.4

1149

Page 28: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

28© Stephen K. Sunter, 2004

Outline

Design of ABM, TBIC, TAP

Details• Switches, core disconnect

• Differential pins

• Design vs. accuracy, speed

• On-chip access

Accessing HF signals

Example ICs

Page 29: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

29© Stephen K. Sunter, 2004

1149.4 Circuit Implementation

TBIC

VH

VL , VG

AT1 AT2

VTH

ICCore

on-chip

(Stimulus) (Response)

AB1 AB2

1149.1 TAP controller

TCK TMS TDI TDO

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

(DC)

ABM

C

D

B1 B2

Page 30: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

30© Stephen K. Sunter, 2004

ABM switch settings in EXTEST

data control AB1 AB2 switch

D C B1 B20 0 x x CD (tristate)

1 0 x x Drive “ground” out

data 1 x x Drive data out (1149.1)

x x 1 x Connect pin to AB1

x x x 1 Connect pin to AB2

x = don’t care

Page 31: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

31© Stephen K. Sunter, 2004

Example ABM schematic

Lines from my_chip.bsdl file-- this end closest to TDO--num cell port function safe [ccell disval rslt]“ 0 (LV_D, A01, bidir, 0, 1, 0, Z),"&“ 1 (LV_C, *, control, 0),“ &“ 2 (LV_B1, *, internal, 0),“ &“ 3 (LV_B2, *, internal, 0),“ &etc.

Lines from my_bscan_cells.allconstant LV_B2: CELL_INFO:=((INTERNAL, EXTEST, UPD),(INTERNAL, SAMPLE, ZERO));

constant LV_B1: CELL_INFO:=((INTERNAL, EXTEST, UPD),(INTERNAL, SAMPLE, ZERO));

constant LV_D: CELL_INFO:=((BIDIR_IN, EXTEST, PI),(BIDIR_OUT, EXTEST, PO),(BIDIR_IN, SAMPLE, PI),(BIDIR_OUT, SAMPLE, PO),

constant LV_C:CELL_INFO:=((CONTROL, EXTEST, UPD),(CONTROL, SAMPLE, PI));

Where is the VTH comparator ?What is value of VTH ?What is value of VG ?How would you modify this to

handle a digital I/O pin?

ESD Protection resistors

SDI

D Q

Clk

D Q

Clk

SDO

AB1 AB2UpdateDRClockDR

Mode1

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

Mode2

pad

En

AnalogFunction

D

C

B1

B2

From IC core

“A01”01

01

01

01

ShiftDR

Page 32: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

32© Stephen K. Sunter, 2004

.1 and .4 TAP overview

1149.1TAP

1149.1TAP

(test clock) TCK

TMS

TDI

TDO

ClockDRUpdateDRShiftDRMode

Scan Data

AB1 (on-chip analog bus)

AB2 (on-chip analog bus)

Scan Data

Scan DataATAP

(off-chip analog bus) AT1

AT2

Page 33: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

33© Stephen K. Sunter, 2004

Example TBIC schematic

Lines from my_chip.bsdl file-- this end closest to TDO--num cell port function safe [ccell disval rslt]“ 20 (LV_Ca, *, internal, 0),"&“ 21 (LV_Co, *, control, 0),“ &“ 22 (LV_D, AT1, bidir, 0, 21, 0, Z),“ &“ 23 (LV_D, AT2, bidir, 0, 21, 0, Z),“ &etc.

ESD Protection resistors

SDI

ShiftDR

D Q

Clk

D Q

Clk

SDO

AB1 AB2UpdateDRClockDR

Mode1

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

D Q

Clk

Mode2

Ca

Co

D1

D2

Random logic

(equations in 1149.4 standard)

From AT2 pad

From AT1 pad AT2pad

AT1pad

01

01

01

01

Lines from my_bscan_cells.allconstant LV_CA: CELL_INFO := ((INTERNAL, EXTEST, X),(INTERNAL, SAMPLE, X)),

constant LV_CO: CELL_INFO := ((CONTROL, EXTEST, X), (CONTROL, SAMPLE, PI)),

constant LV_D: CELL_INFO:=((BIDIR_IN, EXTEST, PI),(BIDIR_OUT, EXTEST, PO),(BIDIR_IN, SAMPLE, PI),(BIDIR_OUT, SAMPLE, PO)),

Page 34: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

34© Stephen K. Sunter, 2004

TAP state diagram (1149.1)

Select-DR-Scan

Capture-DR

Shift-DR

Exit1-DR

Pause-DR

Exit2-DR

Update-DR

0

0

1

0

1

1

1

0

0

0

1

Select-IR-Scan

Capture-IR

Shift-IR

Exit1-IR

Pause-IR

Exit2-IR

Update-IR

0

0

1

0

1

1

1

0

0

0

1

Run-test/Idle

Test-logicreset

1

00

1 11

1 0 01

© IEEE

The state transitions are determined by the value of TMS on the rising edge of TCK.

Page 35: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

35© Stephen K. Sunter, 2004

RTL synthesis

TAP controller typically needs one more bit in IR• Analog mode, or PROBE instruction

ATAP and ABMs• All synthesizable logic, in IC core, except

– Transmission gates– Connections to pad– Optional analog buffers– Optional analog comparators– Must ensure that analog bus is not “optimized” by synthesis

Page 36: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

36© Stephen K. Sunter, 2004

1149.4 Instructions

EXTEST• Disable mission-mode influence of pins (“Core Disconnect”)• Drive any pin to VDD/VSS, sample its logic value, access via AT1/AT2

PROBE• Mission-mode• Sample any pin’s logic value, access via AT1 and/or AT2

INTEST• Analog pins: same as PROBE• Digital pins: same as 1149.1 (plus access via AT1/AT2)

CLAMP, HIGHZ, BYPASS same as 1149.1

Page 37: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

37© Stephen K. Sunter, 2004

What is a ‘switch’ in 1149.4 ?

Allows signals to propagate from one wire to anotherCan be disabled to isolate one signal from the otherDoes not need to have ‘low’ impedance (500Ω is OK)

Examples• CMOS transmission gate

– allows bi-directional current flow

• Voltage buffer; 0 < gain < 1

• Current buffer; 0.5 < gain < 2

En En

+-

En

Page 38: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

38© Stephen K. Sunter, 2004

Achieving isolation: CD state(Core Disconnect)

Ideal isolation (disconnect, zero influence)• pin completely isolated

from on-chip circuitry

Practical isolation (high Z, minimal influence)• outputs tri-stated• inputs to transistor gates

only, and function

Practical isolation (high Z, minimal influence)• outputs tri-stated• inputs to transistor gates

only, and function Residual elements 50Ω

Minimum isolation (CD state, predictable influence)

Minimum isolation (CD state, predictable influence)

Page 39: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

39© Stephen K. Sunter, 2004

Residual Elements

Circuitry permitted to connect to a pin in CD state:• can be modeled with linear passive elements (R, C, L) and

independent DC voltage or current source• connects only to other analog or power pins, not digital or core• documented for IC user

ABM

ABM

ABM

ABM

CoreVSS

Be especially careful to document any series resistance in the metalization, pad, bond wire, and lead frame

Page 40: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

40© Stephen K. Sunter, 2004

Differential function pins

Each pin must have its own ABM• Inverting pins access AB1 and AB2, or optionally AB1N and AB2N• Non-inverting pins access AB1 and AB2• Non-inverting pin’s ABM monitors comparison result• ABM +/– pair drives at least VH/VL, VL/VH, VG/CD, CD/VG, CD/CD

ABM

ABM

+

ABM

ABM

+

–Core +

-

Mode

Note: similar to 1149.6 + analog bus

Page 41: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

41© Stephen K. Sunter, 2004

Measuring impedance

Kelvin probe (or four probe) principle• Apply known current via AT1/AB1 path ( <100 µA )• Measure voltage via AT2/AB2 path

RCOM

AB1

AB2

switch

switch

switch

switch

AT1

AT2

IAT1

ZCUT

V

IAT1

Require IAT2 << IAT1 RCOM << ZCUT

( >10 MΩ) (<0.5 Ω)

Page 42: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

42© Stephen K. Sunter, 2004

Performing tests equivalent to 1149.1

Driving a logic 0 or logic 1• Force pin driver to drive its normal DC max. or min. voltage• Function driver best: high current, verifies driver connection to pin• Alternate (digital) driver may be used• Objective: largest practical voltage swing to allow fast, simple test

En_

+

VSS

VDD

AGND (=VDD/2)

Drive 1

Drive 0

Test

Drive Z

En_

+

Test

D Q

Clk

D Q

Clk

Test

Page 43: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

43© Stephen K. Sunter, 2004

Performing tests equivalent to 1149.1

Sensing a logic 0 or logic 1• Detect pin voltage relative to mid-rail threshold voltage, VTH

• VTH is between 25% and 75% of (VMAX–VMIN)• Value is captured as 0 or 1 in boundary scan register

Weak Nand (or Nor)• minimal size• small current (100 µA during Test)• 1 ns response time

Examples

En = ShiftDR & TCK & TestMode

*

Minimum size comparator • size of 3 Nands• minimal current (µA)• 50 ns response time

VTH

En

Page 44: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

44© Stephen K. Sunter, 2004

ABM, TBIC implementation in ASICs

1149.1 is implementable without help from ASIC supplier• All circuitry is digital, and placement not important

Implementing1149.4 will typically require pad cell changes• Two, unbuffered, ESD-protected accesses to pads• Transmission gates that can be connected to pads (via ESD prot.)

Pad

AB1

AB2Input ESD protectionresistance, e.g. 1 kΩ

Output ESD protectionresistance, e.g. 10 Ω

CoreBond wire

Pin

Page 45: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

45© Stephen K. Sunter, 2004

Accessing internal signals

AB1 and AB2 can access core signals Access switches are enabled by dedicated scan bits• Enabled via private instruction, and not part of boundary register• Both AB2, AB1 would typically convey voltage, between VDD / VSS

EN1

SEL2

–+

AT2

AT1

Analog function

Analog function

ABM

TBIC

ABM

Part of TBIC

AB1

AB2

!

Page 46: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

46© Stephen K. Sunter, 2004

Internal analog scan

Internal analog buses is a common design practice– See reference article by Andlauer & Vu, of Tality

Limitations of only providing/accessing one signalUse update latches to avoid creating transients during scan

Stimulate/monitor Monitor

D Q

Clk

Analogfunction

Analogfunction

AB1

D Q

Clk

D Q

Clk

D Q

Clk

Analogfunction

D Q

Clk

D Q

Clk

AB2SO

SI

updatescanclk

Page 47: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

47© Stephen K. Sunter, 2004

Multiple analog buses

AB1 and AB2 may be partitioned into many buses• Allows multiple voltages, frequency ranges, etc.• Reduces bus capacitance ‘seen’ by accessed node• ~30 nodes per bus is practical upper limit for CMOS <0.25µm

– may need hierarchical analog buses (more switches in series)

5VAB2b(2 Volt core)AB1b

5VAB2c(3.3 Volt core)AB1c

AB2a(5 Volt ABMs)

AT1

5 V

AB1a

AT2

5 V

Page 48: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

48© Stephen K. Sunter, 2004

Testing HF analog paths

Monitor average voltage• Switch resistance and bus capacitance are LPF

(but note that transmission gate is non-linear R)

Under-sample• Example: under-sample 10 MHz signal

to obtain 10 kHz signal on bus• See next 9 slides

R (kΩ)

VBIAS(1µm CMOS)

Page 49: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

49© Stephen K. Sunter, 2004

Early capture (K. Lofstrom, ITC’96)

Analog bus provides DC reference for comparator

Modified 1149.1 TMSsignal used for strobe edge

Perform binary search to determine signal voltage

+-

signal

Digital input strobe (edge of TMS)

Digital comparison result (captured in boundary register)

Comparison voltageDACAT1 or AT2

Analog Signal

D Q

Clk

1D

C1

SDOSDI

ClockDR

ShiftDREarlyCapture

AB1

D Q

Clk

TCK

TMS

UpdateDR

EarlyCapture

ShiftDR

D Q

Clk

UpdateDR

D Q

ClkUpdate latches

ClockDR

01

01

+–

Page 50: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

50© Stephen K. Sunter, 2004

HF under-sampling

An under-sampling technique (R.Mason, D&T Oct’99)• Transmission gate clocked by narrow digital pulse• On-chip storage capacitance and buffer• (Extension to this in ITC’03 paper 9.4)

5 ns pulses @ 9.99 MHzSampling clock

+_

10 MHz sine wave 0.01 MHz sine waveOutputFrom DUT

FromDUT

Sampling clock

Output

Page 51: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

51© Stephen K. Sunter, 2004

HF under-sampling via 1149.4 IC

Improvements• Re-use ABM transmission gate• Exploit off-chip bus capacitance (as LPF)• Keep bus frequency <10 kHz

+_

AB2

TBIC switch

AT2

Analog pin

ABM switch

ABM bitClockpulses

CE

CEI

D Q

Clk

SamplingmodeD Q

Clk

fBUS = fCUT - n fCLK

Page 52: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

52© Stephen K. Sunter, 2004

Limits to bandwidthExample: fSAMPLE= 10 MHz τ = 5 ns

CBUS = 100 pF RSW = 1kΩ

1. Pulse duty cycle <100% increases apparent RSW that drives bus capacitancefBUS–3dB = τ fSAMPLE / 2πRSWCBUS fBUS–3dB ≈ 80 kHz

1/TS

2. Non-zero pulse width causes (sin x)/x roll-off

Amplitude ∝ sin(n π τ / TS) / (n π τ / TS)fSIGNAL–3dB = 0.44 / τ fSIGNAL–3dB ≈ 88 MHz

(Sunter, ITC’01)

Page 53: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

53© Stephen K. Sunter, 2004

Analog bus buffers

How to provide a buffer between AB2 and AT2 ?• Rule: high input impedance (10 MΩ)• Rule: handle signals between VSS–100mV and VDD+100mV• Rule: <1% non-linearity

VDD

En

50Ωoff-chip for analog mode

inv. input

Standard CMOS digital 3-state invinput/output range: OKinput impedance: OK→ non-linear, but can be calibrated

Inverting amplifier, gain <1input/output range: OK→ typ. input impedance <1MΩ

–+

AT2AB2

En

R

Full-swing op-amp output range: VDD–VSS

→ insufficient output range

–+

AT2

En

AB2

OK for core signals, but not compliant for pin signals

$ area More test complexity !

Conclusion: simple CMOS transmission gates may be best

Page 54: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

54© Stephen K. Sunter, 2004

Monitoring HF signals directly

Analog buffers monitor with less impact on CUT

VOUTto tester

±2.6 mA±2.6 V

VIN

±1.3 V

VDD/2

20X

50 Ω

VDD/2No Load

50 Ω

3 kΩ

VIN

+2.5

0

-2.50 1 2 3 4 5

IOUT (mA)

Bandwidth >30 MHzCalibrate non-linearity via TBIC, and use for analog signalsOr use unloaded for digital outputBuffers enabled by bits (one for AB1, one for AB2) in second data register

Sunter, VTS’96

Page 55: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

55© Stephen K. Sunter, 2004

Under-sampling analog buffer

Measured transfer function for strobed, 1 transistor monitor (near minimum size) with current mirrors for gain>1 GHz bandwidth

R.Ho et al (students of M.Horowitz), VLSI Design Symposium, 2001

10X

10X 100X

Other samplers

>VDD

1X

VREF

From CUT

Sample & Clk Clk

Calibrate & Clk 50 Ω

0 10ns

Page 56: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

56© Stephen K. Sunter, 2004

DFT for high-speed A/D and D/A ?

D/A

A/D

DSP

D/A

fS = 100 MHz

10~20 Mbps on each of 14 pinscoherently undersampled

100 Mbps on each of 14 pins

A/D

14-bit converters

50Ω

50Ω

>10 MHz

LoadboardIC

ATE

Page 57: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

57© Stephen K. Sunter, 2004

Synchronous under-sampling

D/A

A/D

50 MHz 100 MHz

VDC 1 kHz

1 kHz

N Mbps (serial, undersampled)

N Mbps (serial)

DSP

D/A

A/D

LoadboardIC

ATE

CMOS transmission gates

Shown single-ended. Typically, differential.

LF analog test buses

Sunter, ITC’03

Page 58: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

58© Stephen K. Sunter, 2004

1149.4 ICs and lessons learned

K.Lofstrom/IMP, 1996• Basic scheme works• Early Capture technique for HF signals• Switches in series with outputs impractical• T-switches important

HP/Matsushita, 1998• ABM gate count is small• Layout of AB switch connections important• Switch non-linearity and leakage significant

LogicVision/NationalSemi., 2000• TBIC buffer design is non-trivial• ABMs on digital pins can meet 1149.1 rules• RCOM <1Ω essential for accuracy• IC also known as D4access, and SCANSTA400

Pinout, showing internal circuit blocks and ABM-probed pins, when configured as a differential mux/demux.

A0

A2

C1

A1

A3

CE

AT2

Mode

AT1

VSS

VDD

A01

C0

A23

TRST

TDI

TDO

TCK

TMS

CEI

En

1149.1/1149.4

1

2

3

4

5

6

7

8

9

10

20

19

18

17

16

15

14

13

12

11NSC, LogicVision

Page 59: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

59© Stephen K. Sunter, 2004

Summary

Basic architecture is robust, simple• Suitable for logic synthesis• A few details are essential for accuracy• Almost no rules for internal access – innovation rules!

– Analog bus access is a common design practice

A variety of techniques for HF access• Under-sampling• V/I I/V buffers, limited-swing voltage buses

Experimental results published for 3 chips

Page 60: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

System Test Methods

1149Stephen Sunter

Page 61: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

61© Stephen K. Sunter, 2004

Outline

Automating Test• BSDL• Analog BSDL

“EXTESTing”• Pins: digital, analog, power• Board-level paths: digital, differential• Using commercially available software• Tester within a laptop PC

ReferencesConclusions

Page 62: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

62© Stephen K. Sunter, 2004

Example 1149.4 IC, with 11 ABMs

Digital

TDO

AT2

Analog

AB2AB1

Test BusInterface Circuit

C0

C1

Mode

A0

A1

A2

A3

1149.1 TestController

A01

A23

CE

CEI

AT1

TDI

TMS

TCK

Page 63: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

63© Stephen K. Sunter, 2004

ABM/TBIC description file

package MY_BSCAN_CELLS isuse STD_1149_1_1994.all; -- comments

constant LV_B2: CELL_INFO; -- ABM B2 control bitconstant LV_B1: CELL_INFO; -- ABM B1 control bitconstant LV_D: CELL_INFO; -- ABM D data bit, for analog pins, or for TBIC D1,D2constant LV_C: CELL_INFO; -- ABM C control bit, for analog pinsconstant LV_CA: CELL_INFO; -- TBIC CA control bitconstant LV_CO: CELL_INFO; -- TBIC CO control bit

end MY_BSCAN_CELLS;

package body MY_BSCAN_CELLS isuse STD_1149_1_1994.all;constant LV_B2: CELL_INFO :=

((INTERNAL, EXTEST, UPD), (INTERNAL, SAMPLE, ZERO));constant LV_B1: CELL_INFO :=

((INTERNAL, EXTEST, UPD), (INTERNAL, SAMPLE, ZERO));constant LV_D: CELL_INFO :=

((BIDIR_IN, EXTEST, PI), (BIDIR_OUT, EXTEST, PO),(BIDIR_IN, SAMPLE, PI), (BIDIR_OUT, SAMPLE, PO));

constant LV_C: CELL_INFO := ((CONTROL, EXTEST, UPD), (CONTROL, SAMPLE, PI));

constant LV_CA: CELL_INFO := ((INTERNAL, EXTEST, X), (INTERNAL, SAMPLE, ONE));

constant LV_CO: CELL_INFO := ((CONTROL, EXTEST, X), (CONTROL, SAMPLE, PI));

end MY_BSCAN_CELLS;

Page 64: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

64© Stephen K. Sunter, 2004

Example BSDL file (top half)-- commententity my_chip is

generic (PHYSICAL_PIN_MAP : string := "DEFAULT_PACKAGE_NAME");port (

CE : inout bit;...AT1 : inout bit;AT2 : inout bit;TCK : in bit;...TDO : out bit;VDD : linkage bit;VSS : linkage bit);

use STD_1149_1_1994.all;use MY_BSCAN_CELLS.all;attribute COMPONENT_CONFORMANCE of top: entity is "STD_1149_1_1993";attribute PIN_MAP of top: entity is PHYSICAL_PIN_MAP;constant DEFAULT_PACKAGE_NAME: PIN_MAP_STRING := "A0 : 1 , " &"A2 : 2 , " &..."VDD : 20 " ;

attribute TAP_SCAN_RESET of TRST : signal is true;...attribute TAP_SCAN_CLOCK of TCK : signal is (2.0e+07, BOTH);attribute INSTRUCTION_LENGTH of top: entity is 20;

-- continued on next slide

All 1149.4 pins are “inout”

Page 65: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

65© Stephen K. Sunter, 2004

Example BSDL file (bottom half)attribute INSTRUCTION_OPCODE of top: entity is

"BYPASS (11111111111111111111)," &"EXTEST (00000000000000000000," &

" 11111111111111101000)," &"SAMPLE (01111111111111111000)," &"PROBE (11111111111111111000)," & -- 1149.4 instruction"HIGHZ (01111111111111001111)," &"CLAMP (11111111111111101111) " ;

-- Mode2 Mode1-invattribute INSTRUCTION_CAPTURE of top: entity is "xxxxxxxxxxxxxxxxxx01";attribute REGISTER_ACCESS of top: entity is "BOUNDARY (PROBE)" ;attribute BOUNDARY_LENGTH of top: entity is 48;attribute BOUNDARY_REGISTER of top: entity is -- This end is closest to TDO-- num cell port function safe [ccell disval rslt]" 0 (LV_B1 , * , internal , 0 ) ,"&" 1 (LV_B2 , * , internal , 0 ) ,"&" 2 (LV_C , * , control , 0 ) ,"&" 3 (LV_D , A3 , bidir , 0 , 2 , 0 , Z ),"&..." 20 (LV_CA , * , internal , 0 ) ,"&" 21 (LV_CO , * , control , 0 ) ,"&" 22 (LV_D , AT1 , bidir , 0 , 21 , 0 , Z ),"&" 23 (LV_D , AT2 , bidir , 0 , 21 , 0 , Z ),"&..." 47 (LV_D , A0 , bidir , 0 , 46 , 0 , Z )";

end my_chip;

Selects boundary scan register

Selects bypass register

Controlcell

Disablevalue

Disableresult

Safevalue

Page 66: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

66© Stephen K. Sunter, 2004

EXTEST switch settings

ABM (AB1) (AB2) (analog access switches)D C B1 B20 0 0/1 0/1 CD (tristate)1 0 0/1 0/1 Drive “ground” outdata 1 0/1 0/1 Drive data out (1149.1)

TBIC (AT1) (AT2)Ca Co D1 D20 0 0/1 0/1 Connect AT1 AB1 or AB2 AT20 1 data data Drive data out (1149.1)1 0 1 0 Calibrate: AT1 AB1 AT21 0 0 1 Calibrate: AT1 AB2 AT2[all other settings are undefined]

Page 67: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

67© Stephen K. Sunter, 2004

EXTEST switch connections

ABM TBIC

D Q

Clk

UpdateDR

D Q

Clk

D Q

Clk

D Q

Clk

En

AnalogFunction

D

C

B1

B2

AB1 AB2

D Q

Clk

UpdateDR

D Q

Clk

D Q

Clk

D Q

Clk

Ca

Co

D1

D2

AB1 AB2

AT1

AT2

For simplicity, Mode1 and Mode2 connections are not shown.

Page 68: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

68© Stephen K. Sunter, 2004

Summary of InstructionsInstruction Requirement TDI – TDO path Mode of function pins

BYPASS Mandatory Direct (bypass) Function

SAMPLE/ PRELOAD

Mandatory Bscan register Function

EXTEST Mandatory Bscan register Test

PROBE Mandatory Bscan register Function

INTEST Optional Bscan register Test – digital pins Function – analog pins,

clock pinsCLAMP Optional Direct (bypass) Test

HIGHZ Optional Direct (bypass) High-Z – digital pins CD-state – analog pins

RUNBIST Optional Bscan register Test – output pinsFunction – input pins

IDCODE Optional Ident. register Function

USERCODE Optional Ident. register Function

Page 69: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

69© Stephen K. Sunter, 2004

Example circuit board

ADC

1

4

3

2.2µF10%

33.2K0.1%

2000.1%

5

2.2µF10%

12-to-1 MUX

Analog Probes

+5V

1.0K0.1%

1.0K0.1%

1.0K0.1%

1.0K0.1%

1.0K0.1%

Atest 0Atest 1Atest 2Atest 3

Analog_in

D4accessA0A1A2A3CEModeC0C1CEI

A01A23

D4accessA0A1A2A3CEModeC0C1CEI

A01A23

D4accessA0A1A2A3CEModeC0C1CEI

A01A23

FPGA(with

1149.1)

D4accessA0A1A2A3CEModeC0C1CEI

A01A23

+5V

DAC

V_OUT

V_IN

REF

CAP

XCEIVR(with1149.1)

XCEIVR(with1149.1)

Bus

142568

183

11

1917

ADDR

DATA

+5V

VREF4

DB0-11

LSB0-15

Control

11PD

Control

2.5VREF

12K

4K

3K

4K

U5

U6

U7

U8

U9

U10

U3

U4

U13

R1

R2

R3

R4

R5

R6

R7

1917

1917

1917

Probe 1

Probe 2

Probe 3

Probe 4

C1

C2

142568

183

11

142568

183

11

142568

183

11

TAP, ATAP signals not shown

Source: Joe Woo,Lockheed Martin

Page 70: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

70© Stephen K. Sunter, 2004

Measuring DC impedance at A3 pin

Apply 100 µA to A3, via AT1Measure VA3, via AT2

142568

183

11

D4accessA0A1A2A3CEModeC0C1CEI

A01A23

R1

R2

R3

R4

R5

TCKTMSTDI

RTI^ 01234567890123456789 ^ RTI

TCKTMSTDIRTI^ 0123456789012345678901234...67 ^ RTI

ABM switch bits TBIC switch bits

Load EXTEST instruction (refer to BSDL, next slide)

Load boundary scan register• Enable TBIC switches: AT1 AB1, AB2 AT2 • Enable A3 ABM switches:AB1 pin, pin AB2• Disable all other switches

VDD

Page 71: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

71© Stephen K. Sunter, 2004

Example BSDL file (again)attribute INSTRUCTION_OPCODE of top: entity is

"BYPASS (11111111111111111111)," &"EXTEST (00000000000000000000," &

" 11111111111111101000)," &"SAMPLE (01111111111111111000)," &"PROBE (11111111111111111000)," & -- 1149.4 instruction"HIGHZ (01111111111111001111)," &"CLAMP (11111111111111101111) " ;

-- ^Mode2 ^Mode1-invattribute INSTRUCTION_CAPTURE of top: entity is "xxxxxxxxxxxxxxxxxx01";attribute REGISTER_ACCESS of top: entity is "BOUNDARY (PROBE)" ;attribute BOUNDARY_LENGTH of top: entity is 48;attribute BOUNDARY_REGISTER of top: entity is -- This end is closest to TDO-- num cell port function safe [ccell disval rslt]" 0 (LV_B1 , * , internal , 0 ) ,"&" 1 (LV_B2 , * , internal , 0 ) ,"&" 2 (LV_C , * , control , 0 ) ,"&" 3 (LV_D , A3 , bidir , 0 , 2 , 0 , Z ),"&..." 20 (LV_CA , * , internal , 0 ) ,"&" 21 (LV_CO , * , control , 0 ) ,"&" 22 (LV_D , AT1 , bidir , 0 , 21 , 0 , Z ),"&" 23 (LV_D , AT2 , bidir , 0 , 21 , 0 , Z ),"&..." 47 (LV_D , A0 , bidir , 0 , 46 , 0 , Z )";

end my_chip;

Page 72: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

72© Stephen K. Sunter, 2004

Testing digital pins

Output drive• Via boundary scan, drive pin to logic 0 (or 1)• Apply ≥100 µA via AT1; measure VPIN via AT2

Pull-up impedance, or pin+wire capacitance• Via boundary scan, drive pin to CD (don’t use HIGHZ instruction)• Apply 10 µA (AC for capacitance) via AT1; measure VPIN via AT2

Why?

Page 73: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

73© Stephen K. Sunter, 2004

Testing power pins

Power rail voltage• Via boundary scan, drive unloaded pin to logic 0 (VSS) or 1 (VDD)

or monitor a pin connected to another VDD access (see U6-A2 pin)• Measure VPIN via AT2

(transmission gates can monitor voltages 100 mV beyond rails)• millivolt changes in power rail voltage may indicate faults

How to detect rail glitches with excess amplitude?• Power rail quality test – next 3 slides

Page 74: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

74© Stephen K. Sunter, 2004

Power rail impedance

R, L of power rail is a key source of delay faults• Output signal skew• Propagation delay

How much impedance is too much?• When it causes delay faults (or changes of state)

Power pins typically not tested• ICs can have 100’s, boards may have 1000’s• Proposals for testing: X-ray, measure IRDC on-chip

Page 75: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

75© Stephen K. Sunter, 2004

Power rail test

Test whether logic gate’s switching point changed• Via AT1, apply VSW +100 mV to flip-flop’s reset• Via boundary scan, cause nearby output pin transition• Flip-flop changes state if power rail glitch >200 mV

VAB1

VSS1

VDD1

VSWVQVR

VPAD

D QR

CkEn

Pad

VDD1

VSS1

VDD1

VSS1

1AB1

100 psSunter, ITC’02

VSW

Page 76: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

76© Stephen K. Sunter, 2004

Power rail test - discussion

Benefits• Programmable sensitivity via AB1 voltage• Use active-low (or high) reset to detect

positive (or negative) glitches• Minimal IC area, and scannable

Limitations• Must measure VSW for each die, or flip-flop• Analog bus noise – capacitance to quiet signals helps,

so noise margin needs to be characterized

Alternative implementation

VDD1

VSS1

AB1En

VDD1

VSS1

EnD

Out

Page 77: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

77© Stephen K. Sunter, 2004

Testing analog pins

Measuring input and output impedance• Similar to digital, except use PROBE or INTEST so that

analog pin voltage is mid-range(and driven by function driver)

Analog stimulus for core input• Limited drive via analog bus• Use AT1 to force stimulus voltage• Use AT2 to monitor stimulus voltage at input pin

(and adjust stimulus as necessary)then to monitor response at output pin

Page 78: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

78© Stephen K. Sunter, 2004

Testing digital paths

Example: digital control signals

• FPGA digital output has 1149.1

• D4access digital input has 1149.4

• Use conventional 1149.1 test software(BSDL: B1, B2 bits declared INTERNAL, safe value = 0)

Page 79: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

79© Stephen K. Sunter, 2004

Differential interconnect testing

(Discussed earlier)8 boundary scan bits per pair

ABM

ABM

+

ABM

ABM

+

–Core +

-

Mode

Page 80: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

80© Stephen K. Sunter, 2004

Differential interconnect tests

A noise tolerant test for each DC-coupled pair• Drive logic 1 (then logic 0)

– Measure received average pin voltages,via AT1 (–) and AT2 (+) simultaneously!

– Capture received logic values (may ignore single-ended values)

A noise tolerant test for each AC-coupled pair• Transmitter and receiver in CD state (e.g., high Z)

– Drive sine wave at transmitter pin via AT1– Measure response at each receiver pin via AT2

Page 81: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

81© Stephen K. Sunter, 2004

LVDS example

Correct termination resistance essential >100 Mb/sTestable by 1149.4, but not by 1149.1

ISOURCE ≈ 3.5 mA

ISINK = ISOURCE

+

+

–100 Ω

+

driver receiver

VN

Vp

350 mV swing

350 mV swing

700 mV swing

Page 82: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

82© Stephen K. Sunter, 2004

Pin test circuitry overview

+

BscanBscan

Test

+Test

BscanBscan

BscanBscan

BscanBscan

BscanBscan

BscanBscan

1bit

1bit

1bit

4bits

1bit

4bits

1149.6Differential Digital

1149.4Differential Digital

Page 83: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

83© Stephen K. Sunter, 2004

Differential interconnect testing

1149.4 vs. 1149.6

• Measures R,C • Only pass/fail• +2 analog pins • No extra pins• Analog stimulus • Digital stimulus (1149.1)• Crummy switches • Hysteretic comparator, RC (?) • +2 crummy • +2~4 accurate

comparators/pair comparators/pair• + one instruction • + two instructions• 1~10 ms/pin • ~1 ms for all pins in parallel

= 1~10 sec/1K pins (but whole board test time >3 min.)

Page 84: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

84© Stephen K. Sunter, 2004

Probing wires via the Internet

1149.1-based test via the Internet is available from many vendors (ASSET, Corellis, Intellitech, JTAG, …)

1149.4 facilitates diagnosis of almost-failures or parametric failures

Demonstrated by Lockheed Martin using representative demonstration board, off-the-shelf software, and LogicVision/NationalSemi. chip

Page 85: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

85© Stephen K. Sunter, 2004

Example of 1149.4-based board access

Accessing a continuous signal

Implemented using a variety of off-the-shelf software(from ASSET, Ohio Design Automation, National Instruments)

Demonstrated with the National Semiconductor IC (SCANSTA400)

Courtesy Lockheed Martin

Page 86: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

86© Stephen K. Sunter, 2004

Example of 1149.4-based board access

Measuring a resistance

Demonstrated by Lockheed Martin across their Intranet, via Microsoft’s NetMeeting

Courtesy Lockheed Martin

Page 87: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

87© Stephen K. Sunter, 2004

Laptop PC Mixed-Signal Tester

Digital/Analog I/O cards commercially available from many suppliers (PCMCIA card or USB connection)

Resistor + 2nd input channel can monitor delivered current

TAP signals

Digital I/O+

12 or 16-bit Analog I/O

(8 channels)

+ Out

+ In 1– In 1

+ In 2– In 2

AT1

AT2

RMON=1kΩ

VSS

Digital I/O

Page 88: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

88© Stephen K. Sunter, 2004

Test Automation

When will Analog BSDL happen?• Only in response to market demand

• Simple 1149.4 applications may not need ABSDL– Monitoring pin signal voltages– Measuring input/output impedances– Fault detection for 1 or 2 element networks

• Automation not essential for few 1149.4 ICs/ board– Manual coding of documented values, bits

Page 89: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

89© Stephen K. Sunter, 2004

Summary

1149.4 access can test paths and pins• Analog, digital, differential, power rails, etc.

Analog ATPG is key, but not yet available• Useful 1149.4 tests can be done with 1149.1 software• Analog hardware commercially available & linkable

1149.4 facilitates unique remote tests

Page 90: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

90© Stephen K. Sunter, 2004

Conclusions

1149.4: a serial access structure, not a test solution• Many 1149.4-based solutions published

• Faster parametric digital tests• Higher frequency mixed-signal tests• Unique diagnostic capabilities

History: difficult to get 1149.4 right first time (it’s analog)• Help is available

Most companies waiting for “market pull” before developing formal 1149.4 products• Some companies forging ahead anyway • ICs with 1149.4 were, and are being, designed at multiple companies

Page 91: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

91© Stephen K. Sunter, 2004

General References

IEEE Std. 1149.4-1999: Standard for a Mixed Signal Test Bus

1149.4 WG web page: http://grouper.ieee.org/groups/1149/4/index.html• P1149.4 Working Group Meeting Minutes, test chip reports, etc.

Analog and Mixed-Signal Boundary Scan – A Guide to the IEEE 1149.4 Test Standard, ed. by A.Osseiran, Kluwer Academic Publishers, 1999• A few chapters available at

http://www.chipcenter.com/TestandMeasurement/techarch.html

Proceedings of ITC and VTS (especially those on next slide)

Page 92: Tutorial: Implementing and Using 1149 · Introduction to Mixed-Signal Boundary Scan and Test • 1149.1, .4, and LF analog test buses Architecture and Design of 1149.4 • Architecture,

92© Stephen K. Sunter, 2004

Other 1149.4-related references(in chronological order)

B.Wilkins, “A Structure for Board-Level Mixed-Signal Testability”, ITC, Sept. 1992C.Thatcher, R.Tulloss, “Towards a Test Standard for Board and System Level Mixed-Signal Interconnects”, ITC, Oct. 1993K.Parker, J.McDermid, S.Oresjo, “Structure and Metrology for an Analog Testability Bus,” ITC, Oct 1993, pp. 309-22 J.Matos, A.Leão, J.Ferreira, “Control and Observation of Analog Nodes in Mixed-Signal Boards,” ITC, Oct 1993, pp. 323-31 S.Sunter, “A Low Cost 100 MHz Analog Test Bus”, VLSI Test Symposium, May, 1995S.Sunter, “The P1149.4 Mixed-Signal Test Bus: Costs and Benefits”, ITC, Oct. 1995S.Sunter, “Cost/Benefit Analysis of the P1149.4 Mixed Signal Test Bus,” IEE Proc. – Circuits, Devices and Systems, Vol. 143, No. 6, pp. 393-98, Dec 1996K.Lofstrom, “A Demonstration IC for the P1149.4 Mixed-Signal Test Standard,” ITC, Oct 1996, pp. 92-98K.Lofstrom, “Early Capture for Boundary Scan Timing Measurements,” ITC, Oct 1996, pp. 417-22 The Boundary-Scan Handbook, Second edition, K.Parker, Kluwer Academic, USA, 1998 R.Mason, “Mixed Signal DFT at GHz Frequencies”, VLSI Test Symposium, April, 1998Analog and Mixed-Signal Test, Edited by B.Vinnakota, Prentice Hall, USA, 1998J.McDermid, “Limited Access Testing: IEEE 1149.4 Instrumentation and Methods”, ITC, 1998, pp. 388-95R.Ho, B.Amrutur, K.Mai, B.Wilburn, T.Mori, M.Horowitz, “Applications of On-chip Samplers for Test and Measurement of Integrated Circuits”, IEEE Symposium on VLSI Circuits, June 1998, paper C12.1R. Mason, S. Ma, “Analog DFT Using an Undersampling Technique,” IEEE Design & Test of Computers, Oct-Dec 1999, pp. 84-88 S.Sunter, K.Filliter, J.Woo, P.McHugh, “A General Purpose 1149.4 IC with HF Analog Test Capabilities”, ITC, 2001, pp. 38-45R.Andlauer, P.Vu, “Analog Test Bus Grows in Importance”, Electronic News, May 27, 2002, pg. 32S.Sunter, B.Nadeau-Dostie, “Complete, Contactless I/O Testing – Reaching the Boundary in Minimizing Digital IC Testing Cost”, ITC 2002, pp. 446-55I.Duzevik, “Preliminary Results of Passive Component Measurement Methods Using an IEEE 1149.4 Compliant Device”, Board Test Workshop, Oct. 2002 (www.national.com/appinfo/scan/files/duzevik_BTW02_paper.pdf)U.Kac, F.Novak, F.Azaïs, P.Nouet, M.Renovell, “Extending IEEE Std. 1149.4 Analog Boundary Modules to Enhance Mixed-Signal Test”, IEEE Design & Test of Computers, Mar-Apr 2003, pp. 32-39S.Sunter, “Testing High Frequency ADCs and DACs with a Low Frequency Analog Bus”, ITC 2003