Outline Last time: Deriving the State Diagram & Datapath (Cont.) Mapping the Datapath onto Control

Similar documents
Fault Modeling. EE5375 ADD II Prof. MacDonald

EE273 Lecture 15 Asynchronous Design November 16, Today s Assignment

Convert the NFA into DFA

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

6.004 Computation Structures Spring 2009

First Midterm Examination

expression simply by forming an OR of the ANDs of all input variables for which the output is

Digital Control of Electric Drives

Minimal DFA. minimal DFA for L starting from any other

Efficient Implication - Based Untestable Bridge Fault Identifier*

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

ECE 327 Solution to Midterm 2016t1 (Winter)

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

State Minimization for DFAs

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 188: Artificial Intelligence Spring 2007

Fast Frequent Free Tree Mining in Graph Databases

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

Math 131. Numerical Integration Larson Section 4.6

Bases for Vector Spaces

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

GNFA GNFA GNFA GNFA GNFA

Centrum voor Wiskunde en Informatica REPORTRAPPORT. Supervisory control for nondeterministic systems

First Midterm Examination

ECE223. R eouven Elbaz Office room: DC3576

y1 y2 DEMUX a b x1 x2 x3 x4 NETWORK s1 s2 z1 z2

Lexical Analysis Finite Automate

Chapter 2 Finite Automata

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

Jin-Fu Li. Department of Electrical Engineering National Central University Jhongli, Taiwan

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014

Lecture 3. Introduction digital logic. Notes. Notes. Notes. Representations. February Bern University of Applied Sciences.

Worked out examples Finite Automata

Learning Moore Machines from Input-Output Traces

The Trapezoidal Rule

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

p-adic Egyptian Fractions

Signal Flow Graphs. Consider a complex 3-port microwave network, constructed of 5 simpler microwave devices:

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs

Formal languages, automata, and theory of computation

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes

Homework 3 Solutions

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

Designing finite automata II

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

DFA minimisation using the Myhill-Nerode theorem

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Chapter 4: Techniques of Circuit Analysis. Chapter 4: Techniques of Circuit Analysis

CMSC 330: Organization of Programming Languages

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

CSCI 340: Computational Models. Transition Graphs. Department of Computer Science

Thomas Whitham Sixth Form

Reinforcement Learning

Engr354: Digital Logic Circuits

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences

Thoery of Automata CS402

Table of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings...

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Date Lesson Text TOPIC Homework. Solving for Obtuse Angles QUIZ ( ) More Trig Word Problems QUIZ ( )

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

Lesson 1: Quadratic Equations

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

A-Level Mathematics Transition Task (compulsory for all maths students and all further maths student)

Where did dynamic programming come from?

CS S-12 Turing Machine Modifications 1. When we added a stack to NFA to get a PDA, we increased computational power

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Designing Information Devices and Systems I Spring 2018 Homework 7

Linear Systems with Constant Coefficients

5.2 Volumes: Disks and Washers

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Module 9: Tries and String Matching

Module 9: Tries and String Matching

Preview 11/1/2017. Greedy Algorithms. Coin Change. Coin Change. Coin Change. Coin Change. Greedy algorithms. Greedy Algorithms

Formal Methods in Software Engineering

Special Numbers, Factors and Multiples

Lecture 2: January 27

Section 6: Area, Volume, and Average Value

Parse trees, ambiguity, and Chomsky normal form

List all of the possible rational roots of each equation. Then find all solutions (both real and imaginary) of the equation. 1.

Exercise 5.5: Large-scale log-normal fading

10.2 The Ellipse and the Hyperbola

Using QM for Windows. Using QM for Windows. Using QM for Windows LEARNING OBJECTIVES. Solving Flair Furniture s LP Problem

Computing with finite semigroups: part I

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016

Regular expressions, Finite Automata, transition graphs are all the same!!

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

Harvard University Computer Science 121 Midterm October 23, 2012

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Consolidation Worksheet

19 Optimal behavior: Game theory

Section: Other Models of Turing Machines. Definition: Two automata are equivalent if they accept the same language.

CSC 473 Automata, Grammars & Languages 11/9/10

Transcription:

Outline Lst time: Deriving the Stte Digrm & Dtpth (Cont.) Mpping the Dtpth onto Control This lecture: Comintionl Testility nd Test-pttern Genertion Fults in digitl circuits Wht is test? : Controllility & Oservility Redundncy & testility Test coverge & simple PODEM ATPG Sequentil Test: Wht re sequentil fults? SCAN Design Outline Bckground: Role of Don't-Cres in Logic Synthesis Controllility & Oservility Optimlity, Redundncy & Testility The Sequentil Test Prolem Synthesis-Directed Sequentil Test Two Approches to Full Testility Effectiveness nd Limittions so fr.... Role of Don't-Cres in Logic Synthesis Role of Don't-Cres in Logic Synthesis Comintionl Logic f Comintionl Logic f f = cnnot e reduced further in isoltion 00 0 0 0 + cn never hppen Don't-Cre Set: D = ' ( + ) + ' ' 00 0 0 0 Minimize f with respect to D...3..4 Role of Don't-Cres in Logic Synthesis 00 0 0 0 f = Fult Ecittion stuck-t-0..5..6

Fult Models Input or output pin (not entire net!) stuck t logic 0 or stuck t logic. Open circuit Cn mke comintionl circuit sequentil! Short circuit.. 0 Fult Propgtion stuck-t-0 The test is cue, not minterm...8 Optimlity & Redundncy in Comintionl Logic c d Circuit with redundnt fult: stuck-t-0 f = (.).(c+d).c' = (..c +..d).c' =..c.c' +..d.c' =..d.c' f c d Circuit with = 0 f = (.).c'.d f Pth-Oriented DEcision Mking [Goel, 98] () Assign ll (PI) to the vlue "don't cre" ( ). () Given n output signl nd desired vlue for the output, trce pth to the PIs to otin PI ssignment. (3) Simulte the PI vector to see if it sets up the desired vlue on the output. If so, terminte. (4) If the opposite vlue is set, ssign n opposite vlue to the PI nd re-simulte. If desired vlue is set, terminte. (5) If the output remins unspecified, repet the pth trcing to set nother PI, s necessry. Procedure continues until either: A successful PI ssignment hs een found (circuits not equivlent). All possile PI ssignments hve een ehusted...9..0 c d Cover Etrction w ON cd 0 0 0 0 OFF cd 0 0 d= d=0 c= c=0 =0 = =0 = Covers cn e generted with s mny "don't cres" in the present stte prt s possile. Testility nd Logic Synthesis Importnt Issue: Generting tests for circuits with redundncies is very difficult. Must use lgorithms which decrese the numer of redundncies or eliminte them completely during synthesis.....

Test Genertion for Finite-Stte Mchines Irredundnt comintionl logic does not imply 00% sequentil testility Sequentil Fults: Fults my not e ecited ("controlled") y primry inputs; fults my not e propgted to primry outputs ("oserved"). (PIs) Finite-Stte Mchines Comintionl Net-Stte Logic Ltches Comintionl Output Logic (POs) Moore Mchine..3..4 (PIs) Finite-Stte Mchines Comintionl Net-Stte Logic Ltches (POs) Mely Mchine Emple Finite-Stte Mchine: Stte Trnsition Digrm / A 0/ /0 0/0 0/ B /0 0/ /0 E / C D 0/0..5..6 Emple Finite-Stte Mchine: Encoded Sttes / 00 00 0/ /0 0/0 0/ 00 0/0 /0 0/ /0 0 000 / 0 0 Stte Assignment Find inry encoding of sttes which minimizes the eventul re (or dely) of the FSM fter comintionl logic optimiztion of nd OL. FSM ENCODE OPTIMIZE Need to predict nd model the optimiztion Stte ssignment hs mjor effect on testility.....8

Emple Finite-Stte Mchine: Net-Stte Logic Mely Mchine t Time tn in ps(3)' ps()' ps() ns() ns() ns(3) PIn L(Sn ) PO n ps()' out in' ps() Sn is stte of ltches t time tn..9..0 Finite-Stte Mchine s Iterted Arry Idel Iterted Arry PI PO PI PO PI n PO n PI PO PI PO PI n PO n L(S 0 ) L(S ) L(S ) L(S n ) L(S 0 ) n L(S ) L(S ) L(S n ) Fult is present in ll copies of Fult my msk ecittion or propgtion More likely, fult my cuse net-stte N to e invlid stte Nf. In n idel sitution, the would e optimized seprtely for ech possile stte trnsition! Ech lock would e mde prime nd irredundnt seprtely..... PIs Sequentil Circuits: Controllility & Oservility Comintionl Net-Stte Logic Ltches POs A test: 00 : 00 : 00 0:0 : 0 0: Scn Design Mke ll flip-flops scn (i.e. direct red nd write ccess) All inputs to the comintionl logic cn e set nd ll outputs cn e red. The sequentil testing prolem ecomes comintionl testing prolem. "Overkill" in virtully ll cses. Are nd time penlty; often longer testing time. But scn cn e inserted utomticlly...3..4

Synthesis Procedure for Fully-Testle Non-Scn Finite-Stte Mchine (Devds, et.l. 988) (PIs) N Ltches Output Logic (POs) Prtition into single-cone circuits Single stuck-fult correct & incorrect net-stte differ y ectly one it. Perform stte ssignment such tht ll sttes differing in one it ssert different outputs one-step propgtion Synthesis Procedure for Fully-Testle Non-Scn Finite-Stte Mchines Given stte-trnsition grph (STG) of FSM, 00%-testle logic-level implementtion of the mchine is produced No scnnle ltches required Uses prtitioned logic pproch nd constrined stte ssignment Smll penlty..5..6 Cscded Finite-Stte Mchines Coupled Finite-Stte Mchines PIs POs e.g. controller Is it possile to synthesize cscde of FSM's such tht ll emedded fults re detectle non-scn from the eternl inputs only? Wht is the penlty in rel cses? PIs e.g. dt pth POs....8 Nme sse tk plnet scf Emple FSMs 6 3 9 54 Sttes 3 6 4 48 9 Edges 59 8 99 8 68 Nme sse tk plnet Constrined Stte Assignment (single cones) Fult Gtes Cover (%) 9 8 4 4 Optimized only 84.6 98.6 96.9 98.8 TPG time 0s s 04s 33s Optimized nd Testle Fult Gtes Cover (%) 9 3 44 449 00 98.6 00 00 scf 50 96. 83m 54 00 Output logic lock contined comintionl redundncies TPG time 5s 4s s 4s s..9..30

Nme sse tk plnet scf Constrined Stte Assignment (single cones) Optimized only Normlized Gtes Are 9.00 8 4 4 50.00.00.00.00 Optimized nd Testle Normlized Gtes Are 9.34 3 44 449 54.0 0.98 0.86.0..3 Effect of Gte Dupliction in Stndrd-Cell Lyout logic gtes routing trcks Dupliction of gtes reduces routing congestion nd my sve routing trck. The re of routing trck is usully >> the re of gte. Reducing mimum gte fnout my improve performnce...3 Emple Finite-Stte Mchine with Fult d in ps(3)' ps()' ps() ps()' in' ps() stuck-t-0 ns() ns() ns(3) out Emple Finite-Stte Mchine Effect of Fult d / 00 00 0/ /0 0/0 0/ 00 0/0 /0 0/ /0 0 000 / N f N, where N f is vlid stte. 0 0..33..34 Emple Finite-Stte Mchine with Fult g in ps(3)' ps()' ps() ps()' in' ps() γstuck-t- ns() ns() ns(3) out Emple Finite-Stte Mchine Effect of Fult g / 00 00 0/ 0/0 0/ /0 0/ 00 /0 0/ 0/0 /0 /0 0 000 / N f N, where N f is invlid stte (stte splitting hs occurred). 0 0..35..36

Use of Etended Don't-Cre Set to Gurntee Testility (Devds & Keutzer, '90) Etrct the Stte Grph Anlyze the Stte Equivlences Generte the Etended Don't-Cre Set Informtion Optimize for Prime nd Irredundnt Network Under the Don't-Cre Set Chnged? Fully Testle Nme e e s key Emple FSMs 8 6 Sttes 6 3 0 4 9 Edges 4 5 0 96 0..3..38 Results of Synthesis Procedure Results Using Etended Don't-Cre Sets During Synthesis Nme e Ltches 3 Gtes 3 Fult Cover (%) 9.9 OptimizeTPGidentify remove redund. redund. 0.5s.0s.s.0s Nme e Stte Enum. 0.5s Optimize Time 0.5s TPG.s Logic Optimize Fult Cover (%) 00.0 e 5 35 98..s 4s 6.s.8m e 6.5s.4s 4s 00.0 s 5 05 99.8 5.5s 303s 4.0s 303s s.0s 6.s 98s 00.0 6 9.8 6.s 33s 4s >h 0.s 5.5s 4s 3 00.0 key 5 46 98. 9.5s m.m >h key 4.6s.8s m 00.0 %-5% smller designs thn without don't-cre sets...39..40 Test Procedure: Scn Test Procedure: Non-Scn Npi Npo Npi Npo Nl Nl+Npi input its per test One tester clock tick per it Nl Npi input its per test One tester clock tick per Npi its..4..4

Wht Aout Testing Time? (Ghosh et. l. 989) Numer of Test Bits Nme Scn S for T e 4,03 3,8 e 9,696,50 e3 55,680 34,90 des 868,86 key,856 5,968 viteri 5,68 4,950 Viteri Chip Prt of system for rel-time continuous speech recognition developed y Prof's. Broderson & Rey t Berkeley. Lrgest chip in the chip-set for the system. Implements the Viteri lgorithm for mpping n oservtion (some speech) into the most likely sequence of sttes in the speech model eing used. Chip Sttistics: 5,000 trnsistors 6 inputs, 44 outputs. 0.5 mm die size..43..44 Wht Aout Testing Time? A Revolution in Test in the Lte 990s? Tester Cycles Test Bits Nme Scn S for T Scn S for T e 4,03 08 4,03 3,8 e 9,696 590 9,696,50 e3 55,680,033 55,680 34,90 des 8,68 0 868,86 key,856 03,856 5,968 viteri 5,68,045 5,68 4,950 Cn Synthesize Gurnteed Fully-Testle, Non-Scn Implementtion of Any Collection of FSMs. Almost lwys requires fewer gtes or less re thn full scn. Almost lwys requires shorter tester times (in mny cses y one or two orders of mgnitude) thn full scn. Cn hndle fults in emedded mchines, mchines with feedck, etc. - ny topology of interconnected mchines. Test ptterns generted s y-product of the synthesis, so synthesis time represents sving of ATPG time...45..46 Synthesis-Directed Sequentil Test Entire-chip full-scn-sed design-for-test will e osolete y the end of the 990s Will e used for some very-specific on-chip structures (e.g. ROM, RAM, mye Dtpth) nd for some chip oundries. Circuit-structure-specific nd BILBO-like test styles will continue to e used for go-nogo tests. Architecturl memory structures will continue to e ccessile directly for the pins. Synthesis-Directed Sequentil Test Test will e incorported directly into the synthesis process Gurnteed fully-testle non-scn or prtilscn designs will e produced y the synthesis process. A complete set of test ptterns will e yproduct of the process..4..48