Level sensitive scan design(LSSD) and Boundry scan(BS)

PraveenKumar3664 8,948 views 37 slides Nov 25, 2018
Slide 1
Slide 1 of 37
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37

About This Presentation

This presentation contains,
Introduction,design for testability, scan chain, operation, scan structure, test vectors, Boundry scan, test logic, operation, BS cell, states of TAP controller, Boundry scan instructions.


Slide Content

Level sensitive scan
design
PRESENTED BY,
PRAVEENKUMAR S – 15E137
1

Design for testability
Design for testability (DFT) refers to the design techniques
that make test generation and test application cost-
effective.
DFT methods for digital circuits:
Ad-hoc methods
Structured methods:
Scan
Partial Scan
Boundary scan
2

Scan chain
Circuit is designed using pre-specified design rules.
Test structure (hardware) is added to the verified design:
Replacing flip-flops by scan flip-flops and connect to form one or more
shift registers in the test mode.
Make input/output of each scan shift register controllable/observable
from PI/PO.
Scan design techniques involves modifying the registers to allow them to be
chained into a long shift register, called a scan chain.
3

Scan Flip-Flop (master-slave)
4
D
TC
SD
CK
Q
Q
MUX
D flip-flop
Master latch Slave latch
CK
TC
Normal mode, D selected Scan mode, SD selected
Master open Slave open
t
t
Logic
overhead

Operation
Circuit with two modes of operation
 Normal functional mode
 Test mode
Circuit bistables are interconnected into a shift register With the circuit in test
mode It is possible to shift an arbitrary test pattern into the bistables.
 By returning the circuit to normal mode for one clock period the
combinational circuitry acts upon the bistable contents and primary input
signals, Stores the results in the bistables Circuit is then placed into test mode
 It is possible to shift out the contents of the bistables and compare these
contents with the correct response
5

Level-Sensitive Scan-Design Latch
(LSSD)
6
D
SD
MCK
Q
Q
D flip-flop
Master latch Slave latch
t
SCK
TCK
SCK
MCK
TCK
N
o
r
m
a
l
m
o
d
e
MCK
TCK
S
c
a
n
m
o
d
e
Logic
overhead

Adding Scan Structure
7
SFF
SFF
SFF
Combinational
logic
PI PO
SCANOUT
SCANIN
TC or TCK

Comb. Test Vectors
8
I2 I1
O1 O2
PI
PO
SCANIN
SCANOUT
S1 S2
N1 N2
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0TC
Don’t care
or random
bits
Sequence length = (n
sff
+ 1) n
comb
+ n
sff
clock periods
n
comb
= number of combinational vectors
n
sff
= number of scan flip-flops

Multiple Scan Registers
Scan flip-flops can be distributed among
any number of shift registers, each having
a separate scanin and scanout pin.
Test sequence length is determined by
the longest scan shift register.
9
SFF
SFF
SFF
Combinational
logic
PI/SCANIN PO/
SCANOUTM
U
X
CK
TC

Hierarchical Scan
Scan flip-flops are chained within
subnetworks before chaining subnetworks.
Advantages:
Automatic scan insertion in netlist
Circuit hierarchy preserved – helps in debugging and
design changes
Disadvantage: Non-optimum chip layout.
10
SFF1
SFF2 SFF3
SFF4
SFF3SFF1
SFF2SFF4
Scanin Scanout
Scanin
Scanout
Hierarchical netlist
Flat layout

Cons.
If the path is a critical timing path, performance of the whole system is
affected.
Another disadvantage of scan design, when compared to some other DFT
techniques, is that the scan chain is very long.
Shifting test vectors in and result vectors out takes a large fraction of test time,
so the system cannot be tested at full operational speed.
11

Level-Sensitive Scan Design (LSSD)
This approach was introduced by Eichelberger and T. Williams in 1977 and 1978.
It is a latch-based design used at IBM.
It guarantees race-free and hazard-free system operation as well as testing.
Level-sensitive scan design (LSSD) is part of an integrated circuit manufacturing
test process.
It is a DFT scan design method which uses separate system and scan clocks to
distinguish between normal and test mode.
Latches are used in pairs, each has a normal data input, data output and clock
for system operation. For test operation, the two latches form a master/slave
pair with one scan input, one scan output and non-overlapping scan clocks A
and B which are held low during system operation but cause the scan data to
be latched when pulsed high during scan.
12

Advantages & Drawbacks of LSSD
1. Correct operation independent of AC characteristics is guaranteed.
2. FSM is reduced to combinational logic as far as testing is concerned.
3. Hazards and races are eliminated, which simplifies test generation and fault
simulation.
1. Complex design rules are imposed on designers.
2. Asynchronous designs are not allowed in this approach.
3. Sequential routing of latches can introduce irregular structures.
4. Faults changing combinational function to sequential one may cause trouble, e.g.,
bridging and CMOS stuck-open faults.
5. Test application becomes a slow process, and normal-speed testing of the entire test
sequence is impossible.
6. It is not good for memory intensive designs.
13

Boundary scan test
14

Boundary scan
Boundary scan is a method for testing interconnects (wire lines) on printed circuit
boards or sub-blocks inside an integrated circuit. Boundary scan is also widely used
as a debugging method to watch integrated circuit pin states, measure voltage, or
analyze sub-blocks inside an integrated circuit.
The success of boundary scan techniques led to the formation of the Joint Test
Action Group (JTAG) in the 1980s for standardizing boundary scan components and
protocols.
Each component have a test access port (TAP), consisting of the following
connections:
oTest Clock (TCK): provides the clock signal for the test logic.
oTest Mode Select Input (TMS): controls test operation.
oTest Data Input (TDI): serial input for test data and instructions.
oTest Data Output (TDO): serial output for test data and instructions.
15

16

Boundary Scan Test Logic
17

Operation
To test the PCB, the test equipment shifts a test vector into the scan chain.
When the chain is loaded, the vector is driven onto the external outputs of the
chips.
The scan-chain flip-flops then sample the external inputs, and the sampled
values are shifted out to the test equipment.
The test equipment can then verify that all of the connections between the
chips.
The TAP Controller operates as a simple finite-state machine, changing between
states depending on the value of the TMS input. Different states govern shifting
of data into the Instruction Register or one of the data registers.
The JTAG standard defines a number of instructions formats for operations that
select among data registers, control the mode of the scan chain
18

A BS cell 19
1. Normal: Mode_Control=0;
IN->OUT
2. Scan: ShiftDR=1,ClockDR;
TDI->...->SIN->SOUT->...TDO
3. Capture: ShiftDR=0, ClcokDR;
IN-> QA, OUT driven by IN or QB
4. Update: Mode_Control=1, UpdateDR;
QA->OUT

TAP Controller State Diagram
20
Select-DR-Scan
Capture-DR
Shift-DR
Exit1-DR
Pause-DR
Exit2-DR
Update-DR
0
0
1
0
1
1
Test-Logic-Reset
Run-Test/Idle
0
1
0
1
0
1
0
0
Select-IR-Scan
Capture-IR
Shift-IR
Exit1-IR
Pause-IR
Exit2-IR
Update-IR
0
0
1
0
1
1
1
0
1
0
0
01
01

States of TAP Controller
Test-Logic-Reset: normal mode
Run-Test/Idle: wait for internal test
Select-DR-Scan: initiate a data-scan sequence
Capture-DR: load test data in parallel
 Shift-DR: load test data in series
Exit1-DR: finish phase-1 shifting of data
Pause-DR: temporarily hold the scan operation (allow the bus master to reload
data)
Exit2-DR: finish phase-2 shifting of data
Update-DR: parallel load from associated shift registers
21

BSDL
BSDL description of a component, together with a set of test vectors, as input to
ATE for testing the component and the board in which it is embedded.
Test data can be shifted into the cells at the inputs and then driven onto the
core’s inputs. The core’s outputs can be sampled into the cells at the output
pins and then shifted out to the ATE.
 Thus, the JTAG architecture solves two problems: in-circuit testing of
components in a system, and in-circuit testing of the connections between the
components.
22

Boundary Scan
Instructions
23

BYPASS Instruction
24
TDI
TMS
TCK
TRST_N
TDO
Finite
State
Machine
Instruction Register
Instruction
Decode
SOSI
Bypass Reg. Bypasses scan chain with
1-bit register
Usually loaded in chips
that are idle while other
chips on the board are
being tested

EXTEST & SAMPLE/PRELOAD
•Test off-chip circuits and board-level
interconnections
•Data is first loaded into boundary register chain
with SAMPLE/PRELOAD instruction
•Samples inputs and outputs, pass-through
•Loads boundary register with data
25

SAMPLE/PRELOAD: Start
26
SAMPLE/
PRELOAD
Chip
Core
TAP
Controller
TDI
TMS
TCK
TDO
TRST_N
BYPASS

TAP Controller State Diagram
Select-DR-Scan
Capture-DR
Shift-DR
Exit1-DR
Pause-DR
Exit2-DR
Update-DR
0
0
1
0
1
1
Test-Logic-Reset
Run-Test/Idle
0
1
0
1
0
1
0
0
Select-IR-Scan
Capture-IR
Shift-IR
Exit1-IR
Pause-IR
Exit2-IR
Update-IR
0
0
1
0
1
1
1
0
1
0
0
01
01
27

SAMPLE/PRELOAD: UpdateIR
28
SAMPLE/
PRELOAD
Chip
Core
TAP
Controller
TDI
TMS
TCK
TDO
TRST_N
BYPASS SMP/PRLD
DATA 1.Get snapshot of
normal chip output
signals
2.Put data on bound.
scan chain before next
instr.

Update-DR
Exit2-DR
Pause-DR
Exit1-DR
Shift-DR
Exit2-IR
Pause-IR
Exit1-IR
Shift-IR
Capture-IR
TAP Controller State Diagram
Select-DR-Scan
Capture-DR
0
0
1
0
1
1
Test-Logic-Reset
Run-Test/Idle
0
1
0
1
0
1
0
0
Select-IR-Scan
0
0
1
0
1
1
1
0
1
0
0
01
01
Update-IR
29

SAMPLE/PRELOAD: CaptureDR
30
Chip
Core
TAP
Controller
TDI
TMS
TCK
TDO
TRST_N
SMP/PRLD
DATA
Mode=0
Capture (sample)
0 1 0 1
0 1 0 1
0
1
0

Update-DR
Exit2-DR
Pause-DR
Exit1-DR
Shift-DR
Update-IR
Exit2-IR
Pause-IR
Exit1-IR
Shift-IR
Capture-IR
TAP Controller State Diagram
Select-DR-Scan
Capture-DR
0
0
1
0
1
1
Test-Logic-Reset
Run-Test/Idle
0
1
0
1
0
1
0
0
Select-IR-Scan
0
0
1
0
1
1
1
0
1
0
0
01
01
31

SAMPLE/PRELOAD: ShiftDR
32
Chip
Core
TAP
Controller
TDI
TMS
TCK
TDO
TRST_N
SMP/PRLD
DATA
0 1 0 11 0 1 0
0 1 0 1
1
0
0
0101
1
0
1
0
0
1
1

Update-IR
Exit2-IR
Pause-IR
Exit1-IR
Shift-IR
Capture-IR
TAP Controller State Diagram
Select-DR-Scan
Capture-DR
Shift-DR
Exit1-DR
Pause-DR
Exit2-DR
Update-DR
0
0
1
0
1
1
Test-Logic-Reset
Run-Test/Idle
0
1
0
1
0
1
0
0
Select-IR-Scan
0
0
1
0
1
1
1
0
1
0
0
01
01
33

SAMPLE/PRELOAD: UpdateDR
34
Chip
Core
TAP
Controller
TDI
TMS
TCK
TDO
TRST_N
SMP/PRLD
1 0 1 0
0101
0
1
1
Mode=0

TAP Controller State Diagram
Select-DR-Scan
Capture-DR
Shift-DR
Exit1-DR
Pause-DR
Exit2-DR
0
0
1
0
1
1
Test-Logic-Reset
Run-Test/Idle
0
1
0
1
0
1
0
0
Select-IR-Scan
Capture-IR
Shift-IR
Exit1-IR
Pause-IR
Exit2-IR
Update-IR
0
0
1
0
1
1
1
0
1
0
0
01
01
Update-DR
35

References
Lecture ppt on : Intro to boundary scan by David lavo
Peter J. Ashenden-Digital Design
36

Thank you
37