Presentation is loading. Please wait.

Presentation is loading. Please wait.

Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)1 Scan design techniques J. M. Martins Ferreira FEUP / DEEC - Rua.

Similar presentations


Presentation on theme: "Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)1 Scan design techniques J. M. Martins Ferreira FEUP / DEEC - Rua."— Presentation transcript:

1 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)1 Scan design techniques 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)

2 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)2 Objectives To introduce the basic concepts in design for test To prepare the introduction of the standard boundary-scan test architecture

3 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)3 Outline Testability and test generation in sequential circuits Testability improvement via ad hoc solutions Structured approaches to design for testability

4 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)4 Test generation for sequential circuits Direct application of the D-algorithm leads to the combinational circuit inputs and outputs, not necessarily to primary inputs or outputs

5 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)5 Test generation - step 1

6 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)6 Test generation - step 2

7 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)7 Test generation - step 3 The second clock cycle is applied with A=1 and guarantees fault detection, because the circuit is now brought to a state where fault activation and fault propagation are simultaneously possible. F CLK A fault-free X s@0

8 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)8 The general case is however much more complex... The D-algorithm does not necessarily lead to circuit primary inputs and outputs Knowledge of the state transition diagram is required It may happen that the fault affects the state transition diagram, in which case the required sequence at the circuit primary inputs becomes even harder to find

9 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)9 The case of Y s@0 Test vector generation for a fault that affects the state transition diagram will help us to understand the problem

10 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)10 The case of Y s@0 (cont.) 0 1 1 3 2 1 0 0 0 01 Q1,Q0=00 1 01 10 11 Modification in the state transition diagram: 0,1 3 2 1 0 Q1,Q0=00 States 1 and 3 (Q0=1) are no longer accessible 01 10 11 Q1 Q0

11 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)11 Ad hoc testability improvements Design rules or amendments to avoid or minimise test vector generation problems Major drawbacks: –Not always reusable –Testability depends largely on the type of circuit

12 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)12 Some ad hoc testability rules Split counters to avoid high numbers of clock cycles until the required output combination is achieved Include reset and preset lines (synchronous or asynchronous) Partition large circuits and add extra inputs and outputs for direct controllability and observability of internal nodes

13 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)13 Structured Design for Testability (DfT) Structured DfT methodologies enable a simple way to drive the circuit to any given state in a fixed (and short) number of clock cycles Does structured DfT have drawbacks? –Design rules (design styles) have to accepted –Additional silicon area, more pins and higher propagation delays… but is this an additional cost?

14 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)14 The scan design principle The scan design principle consists of inserting a 2:1 multiplexer between the input of every D flip-flop and its driving logic

15 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)15 Scan design advantages (1) Problem: Part of the combinational circuit inputs are not directly controllable, since they come from the D-FF outputs (these nodes define the present state of the circuit) Solution: Scan flip-flops enable direct controllability of the D-FF outputs through a simple procedure with a fixed number of clock cycles

16 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)16 Better controllability through scan design (1) Example Take the circuit to state 110, starting from state 100 (intrusive)

17 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)17 Better controllability through scan design (2)

18 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)18 Better controllability through scan design (3)

19 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)19 Better controllability through scan design (4)

20 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)20 Better controllability through scan design (5)

21 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)21 Scan design advantages (2) Problem: Part of the combinational circuit outputs are not directly observable, since they go to the D-FF inputs (these nodes define the circuit next state) Solution: Scan flip-flops enable direct observability of the D-FF inputs through a simple procedure with a fixed number of clock cycles

22 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)22 Better observability through scan design (1) Example Observe the next state (eventually non-intrusive)

23 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)23 Better observability through scan design (2)

24 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)24 Better observability through scan design (3)

25 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)25 Better observability through scan design (4)

26 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)26 Better observability through scan design (5)

27 Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)27 DfT: Eventually an overhead The 2:1 muxs increase the propagation delay and require additional silicon area and pins, but will this increase cost? How do we quantify the benefits of easier test vector generation and application? Design freedom was traded for higher testability, but partial scan design might be a preferred intermediate solution


Download ppt "Leonardo da Vinci ALLEGRO © J. M. Martins Ferreira - University of Porto (FEUP / DEEC)1 Scan design techniques J. M. Martins Ferreira FEUP / DEEC - Rua."

Similar presentations


Ads by Google