Design Verification & Testing Design for Testability and Scan



Similar documents
Introduction to VLSI Testing

Memory Elements. Combinational logic cannot remember

Flip-Flops, Registers, Counters, and a Simple Processor

Engr354: Digital Logic Circuits

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

ASYNCHRONOUS COUNTERS

Chapter 2 Clocks and Resets

ECE380 Digital Logic

Lecture 11: Sequential Circuit Design

Sequential Logic Design Principles.Latches and Flip-Flops

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Master/Slave Flip Flops

Lecture 10: Sequential Circuits

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Lecture 7: Clocking of VLSI Systems

Set-Reset (SR) Latch

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Theory of Logic Circuits. Laboratory manual. Exercise 3

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

CHAPTER 11 LATCHES AND FLIP-FLOPS

Sequential Logic: Clocks, Registers, etc.

Contents COUNTER. Unit III- Counters

Testing of Digital System-on- Chip (SoC)

Counters and Decoders

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

CSE140: Components and Design Techniques for Digital Systems

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Memory Testing. Memory testing.1

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Chapter 9 Latches, Flip-Flops, and Timers

Design of a High Speed Communications Link Using Field Programmable Gate Arrays

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Module 3: Floyd, Digital Fundamental

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Digital Fundamentals

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Digital Logic Design Sequential circuits

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Testing Low Power Designs with Power-Aware Test Manage Manufacturing Test Power Issues with DFTMAX and TetraMAX

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

7. Latches and Flip-Flops

Design Verification and Test of Digital VLSI Circuits NPTEL Video Course. Module-VII Lecture-I Introduction to Digital VLSI Testing

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Arbitrary Density Pattern (ADP) Based Reduction of Testing Time in Scan-BIST VLSI Circuits

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

Counters & Shift Registers Chapter 8 of R.P Jain

The Boundary Scan Test (BST) technology

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Counters. Present State Next State A B A B

BINARY CODED DECIMAL: B.C.D.

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Chapter 8. Sequential Circuits for Registers and Counters

Memory unit. 2 k words. n bits per word

TIMING-DRIVEN PHYSICAL DESIGN FOR DIGITAL SYNCHRONOUS VLSI CIRCUITS USING RESONANT CLOCKING

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Latch Timing Parameters. Flip-flop Timing Parameters. Typical Clock System. Clocking Overhead

Implementation Details

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Asynchronous counters, except for the first block, work independently from a system clock.

Cascaded Counters. Page 1 BYU

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

What is a System on a Chip?

CHAPTER 11: Flip Flops

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Copyright Peter R. Rony All rights reserved.

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Fault Modeling. Why model faults? Some real defects in VLSI and PCB Common fault models Stuck-at faults. Transistor faults Summary

Lecture-3 MEMORY: Development of Memory:

TABLE OF CONTENTS. xiii List of Tables. xviii List of Design-for-Test Rules. xix Preface to the First Edition. xxi Preface to the Second Edition

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Sequential Circuit Design

Combinational Logic Design Process

Lesson 12 Sequential Circuits: Flip-Flops

Introduction to CMOS VLSI Design

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

The components. E3: Digital electronics. Goals:

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

VLSI Design Verification and Testing

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

路 論 Chapter 15 System-Level Physical Design

Counters are sequential circuits which "count" through a specific state sequence.

Decimal Number (base 10) Binary Number (base 2)

Upon completion of unit 1.1, students will be able to

(1) /30 (2) /30 (3) /40 TOTAL /100

Transcription:

Overview esign for testability (FT) makes it possible to: Assure the detection of all faults in a circuit Reduce the cost and time associated with test development Reduce the execution time of performing test on fabricated chips We will focus on FT techniques for digital logic, although it is relevant for memory and analog/mixed-signal components as well. An example chip level FT technique is called Built-in self-test (BIST) (used for digital logic and memory.) At the system level, FT includes boundary scan and analog test bus. The FT techniques discussed focus on improving testability of SAFs. FT for other fault models, e.g., delay faults, is described in the literature.

Ad-hoc FT Two forms of FT: ad-hoc and structured. Ad-hoc FT relies on "good" design practices: Avoid asynchronous logic feedbacks. Feedback can result in oscillation. ATPG are designed to work on acyclic combinational logic. Make FFs initializable, i.e., provide clear and reset. Avoid gates with a large fan-in. Large fan-in makes the inputs difficult to observe and the output difficult to control. Provide test control for difficult to control signals. For example, signals produced by a long counter require many clk cycles to control. This increases the length of the test sequence. 2

Structured FT Testability measures can be used to identify circuit areas that are difficult to test. Once identified, circuit is modified or test points are inserted. This type of ad-hoc strategy is difficult to use in large circuits: Testability measures are approximations and don't always work. Good fault coverage is not guaranteed from ATPG even after circuit modifications and test point insertion is performed. Structured FT involves adding extra logic and signals dedicated for test according to some procedure. The circuit has two modes, normal and test mode. The most commonly used structured methods are Scan and BIST. 3

Scan Scan proposed in '73 by Williams and Angell. Main idea is to obtain control and observability for FFs. It reduces sequential TPG to combinational TPG. With Scan, a synchronous sequential circuit works in two modes. Normal mode and test mode: PIs POs PIs POs Combo logic Combo logic FFs FFs Scan-in Scan-out In test mode, all FFs are configured as a shift register, with Scan-in and Scan-out routed to a (possibly dedicated) PI and PO. 4

Scan Once initialized, normal mode is used to apply a pattern to the PIs, and the results are latched in the FFs. The circuit is put in test mode again and the results scanned out. PIs POs PIs POs Combo logic Combo logic FFs Scan Variations FFs FFs Multiple Scan chains FFs Partial Scan Note that scan is usually inserted after the circuit is verified to be functionally correct. 5

Scan-Path esign Any sequential circuit may be modeled as: X X 2 Next state and output combinational logic Z Z 2 X K Z N FF FF 2 FF 3 Clk X X 2 X K Next state and output combinational logic (Note, latches cannot be used here) Z Z 2 SI 0 FF 0 FF 2 0 FF 3 Z N 0 SO Clk Scan-Enable (SE) 6

Scan esign Rules A designer needs to observe four rules during functional design: Only -type master-slave FFs should be used. No JK, toggle FFs or other forms of asynchronous logic. At least on PI must be available for test. As shown in previous circuit, the Scan-in and Scan-out pins can be multiplexed (only one additional MUX is needed at Scan-out). Therefore, the only required extra pin is Scan-Enable, SE (or Test Control, TC). All FFs must be controlled from PIs. Simple circuit transformations can be used to change FFs whose Clk is "gated" by an internal logic signal. Clocks must not feed data inputs of the FFs. A race condition can result in normal mode otherwise. This is generally considered good design practice anyway. 7

Storage Cells for Scan esigns Common characteristics of all designs: A normal input and a scan input. The appropriate input can be selected using a multiplexer or by a two-clock system. A storage cell. The cell can be implemented using an edge-triggered FF, a master-slave FF or levelsensitive latches controlled by clocks having >= 2 phases. We'll focus only on -FFs of the master-slave variety. Latch φ φ -Latch 8

Storage Cells for Scan esigns An implementation using two-port master-slave FF with a MUX. 2-to- MUX SI Sel φ φ L L 2 2 φ A two-port clocked FF implementation. φ SI φ 2 L φ L 2 2 φ 9

Storage Cells for Scan esigns To ensure race-free operation, use a 2-phase non-overlapping clk. SI Sel φ φ 2 In order to avoid performance degradation introduced by the MUX. φ SI φ L L 2 φ 2 Not a FF, since two clocks are used. L 2 2 (SO) L φ 2 φ 3 NAN version of LSS 0

Storage Cells for Scan esigns In LSS, clocks φ and φ 2 can be NORed together to drive L 2, replacing φ 3. φ SI L φ 2 L 2 2 (SO) Note that in the 3-clock scheme, in order to prevent hazards, φ and φ 3 and well as φ 2 and φ 3 MUST be non-overlapping. φ φ 3 t φ t φ3

Tests for Scan Circuits Two phases: Shift test Set TC= 0, and shift toggle sequence 0000... using Clk. The length is n sff + 4, where n sff are the number of scan flops. This sequence produces all 4 transitions, 0->0, 0->, -> and ->0, catches all/most SA faults. The Shift test can be used in either single-clock or two-clock designs. A Flush test is also possible in two-clock designs: φ (Master Clk) is held low while φ 2 and φ 3 are held high. This creates a continuous path between SI and SO for application of 0 and. Combinational logic test This phase allows the combination logic circuit to be tested for SA faults. An ATPG algorithm is used where outputs of Scan FFs are treated as pseudo-pis (completely controllable) and inputs are treated as pseudo-pos. 2

Tests for Scan Circuits Each vector contains two parts: i x and s x represent PIs and pseudo-pis (state variables), o x and n x represent POs and pseudo-pos (next state variables). Seq Seq 2 Seq 3 on t on t on t on t PIs cares i cares i 2 cares i 3 cares Scanin s s 2 s 3 TC 000000000 000000000 000000000 000000000 9 scan vectors normal vector On 0th vector TC is set to. Scanout o o 2 o 3 n n 2 n 3 The vectors are converted as shown above. on't care bits can be filled randomly or with a specific sequence. 39 Clks are needed for these 3 vectors. Faults at POs under st vector are detected after 0th Clk. However, faults captured in FFs for this vector are detected on th through 9th Clk, during scanin of 2nd vector. 3

Tests for Scan Circuits The general formula for the length of the test (which includes Shift test) is: Scan test length = n sff + 4+ ( n sff + )n comb + n sff = ( n comb + 2)n sff + n comb + 4 clock periods For a circuit with 2,000 FFs and 500 vectors,,004,504 Clks needed. 4

Example Application TC SI C R N N 2 A A 2 O SA Z P N 3 A 3 A 4 O 2 P 2 N 4 A 5 Modulo-3 counter FF2 FF With R=0, counter is reset to 00. With R=0, C=, sequence is 00->0->0->00. 2 SO 5

Example Application The output Z becomes only in state 0, otherwise it's zero. With R=0, C=0, the counter retains its state. The combinational logic is combinationally irredundant. However, without scan, the sequential circuit has 6 untestable SA faults. A sequential ATPG algorithm generated 35 tests to detect 36 of the 42 faults in the non-scan version. Another combinational ATPG algorithm generated 2 vectors for the combinational part with C, R, P and P2 as inputs and Z, and 2 as outputs. Once converted to scan sequences with a 6 vector Shift test, 44 vectors result. Fault simulation indicates that all faults are detected, including the 6 untestable SA faults and the MUX fault 6

Scan Architectures General structure of an LSS double-latch design. e L L 2 y SO X Combo Network e 2 L L 2 y 2 Z φ φ 2 SI φ 3 e n L L 2 The outputs, y i, come from the output of the L 2 latches. Normal mode, φ and φ 3 are used, test mode, φ 2 and φ 3 are used. y n 7

Scan Architectures For the double latch design, operation proceeds as follows: Test the latches: Set φ 2 = φ 3 = Apply 0 and alternatively at SI Clock φ 2, then φ 3, n times. Initialize Shift in the initial values into the FFs. Repeat for all patterns: Apply a pattern to the PIs. Clock φ, then φ 3 and observe results at POs. Shift out the response and initialize for next pattern. Clock φ 2, then φ 3, n times. 8

Scan Architectures Scan-Set Architecture offers on-line test capability. X X 2 Combinational logic Z Z 2 X K 0 FF 0 FF 2 0 FF M Z N SClk TC SI 0 0 0 SO TClk TC 2 FF FF 2 FF M Shift FFs added TClk and SI used to initialize FFs with TC /TC 2 =, then SClk used to load data into upper FFs in parallel. Test pattern applied to PIs, TC /TC 2 =0, then SClk transfers data to upper FFs, TClk used to scan data out. 9