Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
HARDWARE TESTING
Introduces digital system testing that makes the systems easier to test
Testing of a system is an experiment in which the system is exercised and its resulting experience is analyzed to ascertain whether it behaved correctly.
If incorrect behavior is detected locate the cause of the misbehavior or failure Problem: Normally we have access only to the inputs and outputs of the circuit
Testing levels:
VHDL test benches: to verify the overall design and algorithms used are correct Simulation at the logic level : to verify that a design is logically correct Hardware testing: to verify that the manufactured digital system functions properly
TOPICS COVERED
Testing of combinational logic Testing of sequential logic
Using
Stuck
Stuck-at-1 test
Test Vectors
DETERMINE A MINIMUM SET OF TEST VECTORS TO TEST THE NETWORK- EXAMPLE 4 *TEST INPUT FOR P S-A-1 :
1. 2.
path A-a-p-v-f-F ABCD =0101 will test for faults a1, p1, v1, f1 and c1.
Assume that we can apply inputs to A,B,C,D and observe output at F And internal gate inputs and outputs cannot be accessed
1. 2. 3.
4. 5. 6.
7.
8. 9.
Test input for p s-a-1 Choose A,B,C,D such that p=0 And if p is s-a-1 ,we must propagate this fault to the output F so it can be observed. To propagate this fault ,Make c=0 and w=1 : C=0 We can make w=1 ,by making t=1 or u= 1 To make u=1 ,we must have d=1 and r=1 : D=1 and C= 0 ( c=0 makes r=1) To make p=0 ,we choose A=0 By choosing B=1 ,we can sensitize the path A-a-p-v-f-F ABCD =0101 will test for faults a1, p1, v1, f1 and c1.
1. 2.
path A-a-p-v-f-F ABCD = 1101 will test for faults a0,b0, p0,q1, r0 ,d0 , u0, v0, w0, f0
1. 2.
path B-b-s-t-w-f-F ABCD = 1011 will test for faults b1 , c0, s1, t0, v0, w0, f0
Test Vectors
EXAMPLE 5 - HW
A)DETERMINE THE NECESSARY INPUTS TO THE FOLLOWING NETWORK TO TEST FOR V STUCK AT 0. B)FOR THIS SET OF INPUTS DETERMINE WHICH OTHER STUCK AT FAULTS CAN BE TESTED. C)REPEAT (A) AND ( B) FOR R STUCK AT 1.
EXAMPLE 6- HW
Find the test sequences for C s-a-1 and D s-a-0
EXAMPLE 7- HW
Find the test sequences for G s-a-1 and L s-a-0
Iterative network, k identical copies K-length of sequence used to test the sequential network X(t)x(0),x(1),x(k) Z(t)->z(0),z(1),z(2).z(k) After the test vector have been derived for the iterative network ,these vectors become the input sequences used to test the original sequential network
Given state diagram should be strongly connected (ie., other states can be reached from every state) Test strategy for strongly connected state diagram
Find
an input sequence that will distinguish each state from the other states
EXAMPLE 1
Distinguishing Sequence =11 o/p for DS: s0=01, s1=11, s2=10, s3=00
1.Find distinguishing sequence (i/p sequence which distinguishes each state : finding by iteration) 2. Verify each entry using distinguishing sequence 3. Verify each transition given in the state diagram 4. aim: to verify the transition what should be the test sequences?
State table
Assume that the sequential network being tested has a reset input so we can reset it to a known initial state, then apply the test sequence and observe the output sequence Test procedure: reset the network to initial state, apply a test sequence and observe the output sequence Reset ,test input, distinguishing sequence: test vector Last 2 bits of o/p are equal to corresponding states o/p. Hence the transition is verified
EXAMPLE 2:
The state diagram consists of two sequential network 1st indicated with bold line 2nd indicated by dashed line
Determine the shortest input sequence that will distinguish the two sequences
EXAMPLE 3
to
connect the o/p of each f/f within the IC being tested, to one of the IC pins But number of pins on IC is limited, not practical
APPROACHSCAN TESTING
Can observe state of all flip flops Concept: flip flops are arranged to form a shift register We can shift out the state of the flip flops bit by bit using a single serial output pin on the IC
2 D inputs D1,D2 2 clock inputs-C1,C2 When C1 is pulsed ,D1 is stored in the flip flop When C2 is pulsed D2 is stored in the flip flop
NORMAL MODE
When the n/w is not being tested the SCK is used ie.,C1 A set of i/ps X1,X2,. Xn is applied and the outputs z1,z2,..zm are generated
TEST MODE
When the n/w is being tested, the f/fs are set to a specified state by shifting the state code into the register using the scan data i/p (SDI) and the test clock(TCK) The Q o/p of each f/f connected to D2 i/p of the next f/f to form shift register
The test vector x1,x2,xn is applied , the o/ps z1,z2,zm are verified & SCK is pulsed to take the n/w to the next state
The next state is then verified by pulsing TCK to shift the state code out of the scan data register via the scan data o/p
TEST PROCEDURE
EXAMPLE
Present state Next state output
Q1 Q2Q3
Q1+ Q2+Q3+
X=00 01 110 11 011
Z1 Z2
10 X=00 01 111 10 11 11 00 10 01
1 0 1
010
Seq n/w : 2 i/ps -> x1,x2 f/fs ->Q1, Q2, Q3 o/ps -> z1,z2 101 shifted in using TCK Then x1,x2 = 00 is applied Apply SCK pulses: Z1,z2 read as 10 Next state 010 010 shifted out using TCK
BST is a method of testing PCBs Standard for BST is introduced by Joint Test Action Group(JTAG)- ieee standard 1149.1, standard test access port and boundary scan architecture BST is intended to check for shorts or opens b/n ICs mounted on a board Include BST on ASIC
BOUNDARY SCAN
Introduced to test complex PC boards
One boundary scan cell is placed between each i/p or o/p pin & the internal core logic Tap controller and BSR is added to the core logic
To include BST on an ASIC , we add a special logic cell to each ASIC I/O pad
These cells are joined together to form a chain & create a boundary scan shift register that extends around each ASIC The i/p to a boundary scan shift register is the test data input(TDI) The o/p of a bdry scan shift register is TDO
TAP controller is a state machine clocked on the rising edge of the TCK ,
with
When in normal mode , data from the i/p pin is routed to the internal core logic in the IC, or data from core logic routed to the o/p pin
When in the shift mode , serial data from the previous cell is clocked into f/f Q1, at the same time as the data stored in Q1 is clocked in to the next boundary scan cell .After Q2 is updated , test data can be supplied to the internal logic or to the o/p pin
Boundary scan registers linked together serially in a single chain with i/p TD1 and o/p TD0 TCK,TMS, TRST are connected parallel to all of the ICs Using these signals test instructions and test data can be supplied to the internal logic or to o/p pin
Built in self test (BIST) is a design technique in which parts of a circuit are used to test the circuit itself BIST is a design for testability methodology aimed at detecting faulty components in a system by incorporating test logic on chip
Built in self test, is a set of structured test techniques for combinational and sequential logic, memories, multipliers and other embedded logic blocks
In each case the principle is to generate test vectors apply them to the circuit under test and then check the response The resulting output is observed by the response monitor, which produces an error signal if an incorrect output pattern is observed
REFERENCE
THANK YOU