280 likes | 433 Views
A case study of test program generation. J. M. Martins Ferreira FEUP / DEEC - Rua Dr. Roberto Frias 4200-537 Porto - PORTUGAL Tel. 351 225 081 748 / Fax: 351 225 081 443 (jmf@fe.up.pt / http://www.fe.up.pt/~jmf). Objectives. To present practical BS test problems through a real case study
E N D
A case study of test program generation J. M. Martins Ferreira FEUP / DEEC - Rua Dr. Roberto Frias 4200-537 Porto - PORTUGAL Tel. 351 225 081 748 / Fax: 351 225 081 443 (jmf@fe.up.pt / http://www.fe.up.pt/~jmf)
Objectives • To present practical BS test problems through a real case study • To analyse the implementation of the test protocol using the test instruction set proposed earlier • To enable the student to acquire the necessary experience to develop small test programs for specific test situations • To enable hands-on sessions
Outline • The demonstration board • The information required for test program generation • The test vectors • The test program
Full-BS interconnects (1) • Number and identification of the BS chains • Is the interconnect tied to GND or VCC? • For output pins: • Number of output pins and location of the output cell, the control cell (if any) and the tristate control value • For input pins: • Number of input pins and location of the input cell
Full-BS interconnects (2) • For bidirectional pins: • Number of bidirectional pins and location of the output cell, the input cell, the control cell and the tristate control value • For primary input pins: • Number of primary inputs, identification and tristate control value • For primary output pins: • Number and identification of primary outputs
Test of IC1+IC2 (2) • HILO generated 5 test vectors to provide 100% fault coverage of stuck-at pins in both components
Test of IC6 (2) • HILO generated 5 test vectors to provide 100% fault coverage of stuck-at pins in IC6
The test vectors • A modified version of the self-diagnosis algorithm generated 6 test vectors for complete short-circuit fault detection in the 24 full-BS interconnects:
Detection of open circuit X1 • What are the conditions enabling the detection of open circuit X1?
JTAGercode (X1) start: seltap0; rst; state irshift; ld cnt,16d; ! two IRs nshf 0h; ! EXTEST instruction state drshift; ld cnt,18d; ! length of the BSR (IC3) nshf 02000h; ! /1G=0,1Y1=0,1Y2=1,1Y4=0 (in IC3) state drshift; ld cnt,18d; ! length of the BSRs ! Notice that we will shift only 18 bits, but: ! - the bitstream shifted in goes to the BSR of IC3 ! - the bitstream shifted out comes from the BSR of IC4 nshfcp 0h,00400h,00400h; ! check 2A3 when 1Y2=1; set 1Y2=0 jerr faulty; state drshift; ld cnt,18d; ! length of the BSR (IC4) nshfcp 0h,0h,00400h; ! check 2A3 when 1Y2=0 jerr faulty; state reset; halt; ! stop here if X1 not open faulty: state reset; halt; ! stop here if X1 open
Detection of short circuit X9 • What are the conditions enabling the detection of X9?
JTAGercode (X9) start: seltap0; ! the test vector is applied via TAP0 rst; state irshift; ld cnt,8d; ! length of the IR (IC3) nshf 0h; ! EXTEST instruction state drshift; ld cnt,18d; ! length of the BSR (IC3) nshf 40000h; ! /2G=0,2Y2=0,2Y3=1,2Y4=0 (in IC3) state drselect; ! test vector applied on passing UPD-DR seltap1; ! response capturing is via TAP1 rst; state irshift; ld cnt,8d; ! length of the IR (IC5) nshf 0h; ! EXTEST instruction state drshift; ! test response captured on passing CAPT-DR ld cnt,18d; ! length of the BSR (IC5) nshfcp 0h,00400h,00400h; ! check if 2A2,2A3,2A4 are 0,1,0 jerr faulty; state reset; halt; ! stop here if X9 is not shorted faulty: state reset; halt; ! stop here if X9 is shorted
Detection of short circuit X16 • What are the conditions enabling the detection of X16?
JTAGercode (X16) start: seltap0; rst; state irshift; ld cnt,16d; ! length of the IRs (IC3,IC4) nshfcp 0h,8080h,8080h; jerr faulty; state reset; halt; ! stop here if X16 is not shorted faulty: state reset; halt; ! stop here if X16 is shorted
Detection of short circuit X16 • What would happen if only the first 8 bits were shifted out? (instead of 16) ld cnt,8d; ! length of the IR (IC4) nshfcp 0h,80h,80h;