Reconfigurable Computing - Verifying Circuits

Slides:



Advertisements
Similar presentations
Introduction So far, we have studied the basic skills of designing combinational and sequential logic using schematic and Verilog-HDL Now, we are going.
Advertisements

Theoretical Program Checking Greg Bronevetsky. Background The field of Program Checking is about 13 years old. Pioneered by Manuel Blum, Hal Wasserman,
Reconfigurable Computing - Verifying Circuits John Morris Chung-Ang University The University of Auckland ‘Iolanthe’ at 13 knots on Cockburn Sound, Western.
Parallel Adder Recap To add two n-bit numbers together, n full-adders should be cascaded. Each full-adder represents a column in the long addition. The.
Reconfigurable Computing - Verifying Circuits Performance! John Morris Chung-Ang University The University of Auckland ‘Iolanthe’ at 13 knots on Cockburn.
Very Large Scale Integrated chips (VLSI) The complexity of the digital computation chips is increasing in line with Moore’s law.The complexity of the digital.
Chapter 6-1 ALU, Adder and Subtractor
Digital Logic Computer Organization 1 © McQuain Logic Design Goal:to become literate in most common concepts and terminology of digital.
Reconfigurable Computing - Type conversions and the standard libraries John Morris Chung-Ang University The University of Auckland ‘Iolanthe’ at 13 knots.
Basic Addition Review Basic Adders and the Carry Problem
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
Reconfigurable Computing - Verifying Circuit Performance! John Morris Chung-Ang University The University of Auckland ‘Iolanthe II’ in a good breeze on.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
Sep 29, 2004Subtraction (lvk)1 Negative Numbers and Subtraction The adders we designed can add only non-negative numbers – If we can represent negative.
Computer Architecture
1 Lecture 12: Adders, Sequential Circuits Today’s topics:  Carry-lookahead adder  Clocks, latches, sequential circuits.
Introduction to Computing Systems and Programming Digital Logic Structures.
Reconfigurable Computing - Verifying Circuits Performance! John Morris Chung-Ang University The University of Auckland ‘Iolanthe’ at 13 knots on Cockburn.
Basic Addition Review Basic Adders and the Carry Problem Carry Propagation Speedup Speed/Cost Tradeoffs Two-operand Versus Multi-operand Adders.
Reconfigurable Computing - Options in Circuit Design John Morris Chung-Ang University The University of Auckland ‘Iolanthe’ at 13 knots on Cockburn Sound,
Finite Automata (FA) with Output FA discussed so far, is just associated with R.Es or language. Is there exist an FA which generates an output string corresponding.
Clothing Manipulation Takeo Igarashi John F.Hughes Computer Science Department University of Tokyo Computer Science Department Brown University.
Reconfigurable Computing - Performance Issues John Morris Chung-Ang University The University of Auckland ‘Iolanthe’ at 13 knots on Cockburn Sound, Western.
Lecture 3 ALU and Carry Generator using FPGA 2007/09/21 Prof. C.M. Kyung.
1 Arithmetic Building Blocks Today: Signed ArithmeticFirst Hour: Signed Arithmetic –Section 5.1 of Katz’s Textbook –In-class Activity #1 Second Hour: Adder.
Functional testing, Equivalence class testing
Combinational Circuits
EKT 221 : Digital 2 Serial Transfers & Microoperations
Negative Numbers and Subtraction
Digital Systems and Number Systems
Hash table CSC317 We have elements with key and satellite data
Manager Environment, British Airways
UNIVERSITY OF MASSACHUSETTS Dept
Chapter 2 Resistive Circuits
EKT 221 : Digital 2 Serial Transfers & Microoperations
Addition and multiplication
Binary Addition and Subtraction
Compare/Contrast Essay - Brainstorm
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
PROGRAMMING IN HASKELL
Basics Combinational Circuits Sequential Circuits
Lecture 12: Adders, Sequential Circuits
Lecture 12: Adders, Sequential Circuits
King Fahd University of Petroleum and Minerals
Unconventional Fixed-Radix Number Systems
Systems Architecture I
Polynomial Construction for Arithmetic Circuits
Subtraction The arithmetic we did so far was limited to unsigned (positive) integers. Today we’ll consider negative numbers and subtraction. The main problem.
PROGRAMMING IN HASKELL
EECS150 Fall 2007 – Lab Lecture #4 Shah Bawany
Multiplying binomials the Break up out of jail method
Debugging EECS150 Fall Lab Lecture #4 Sarah Swisher
UNIVERSITY OF MASSACHUSETTS Dept
Debugging EECS150 Fall Lab Lecture #4 Sarah Swisher
ECE 352 Digital System Fundamentals
Combinational Circuits
ECE 352 Digital System Fundamentals
ECE 352 Digital System Fundamentals
ECE 352 Digital System Fundamentals
XOR Function Logic Symbol  Description  Truth Table 
UNIVERSITY OF MASSACHUSETTS Dept
A Practical Approach to Arithmetic Circuit Verification
Adder and Subtractors Discussion D4.1. Adder and Subtractor Circuits Objective: (i) To construct half and full adder circuit and verify its working (ii)
Multiplying binomials
DeMorgan’s Law and Gates
Starter.
Secret-Key Encryption
Multiplying binomials
Presentation transcript:

Reconfigurable Computing - Verifying Circuits John Morris The University of Auckland Iolanthe II at anchor near the Marsden Cross, Bay of Islands

Verification Circuits need to be verified This is completely obvious! A circuit with an error Costs money How much did Intel’s Pentium divide bug cost them? May endanger lives Medical systems Aircraft control Spacecraft guidance Spoil your reputation! Testing is expensive!

Verification Circuits need to be verified Testing is expensive! 32-bit adder – inputs a, b, c Naïve approach - Test all possibilities a – 4  109 (all possible 32-bit numbers) b – 4  109 (------- do -------------) c – 2 ( 0 or 1 ) Total 4  4  2  1018 = 1.6 x 1019 4 GHz machine – 109 cases / sec (optimistic!) 1.6  1010 seconds – about 6 months will do it! What about the rest of the machine? -, x, /, ^, v, <<, >>, … We should be finished in about 5 years Hmmmm … our 4 GHz machine should be about 30 GHz now! Clearly we need to be more efficient about testing!

Case study – Ripple carry adder Composed of full adder circuits and carry chains Test the full adders 3 inputs, each with 2 possible values  23 = 8 possible inputs In this case, exhaustive testing (trying every possible combination of inputs) will work fine! We can probably work out how to check all the full adders individually at the same time If there are no carries, then they all operate independently Input pairs (a=0,b=0) (a=0,b=1) and (a=1,b=0) all generate no carries, so we can test the inputs (a,b,c) = (0,0,0) (0,1,0) (1,0,0) (3 out of 8 cases) for each FA in parallel with the patterns 0000…0000 and 0000…0000 0000…0000 and 1111…1111 1111…1111 and 0000…0000 (3 tests)

Case study – Ripple carry adder Composed of full adder circuits and carry chains Test the full adders 3 inputs, each with 2 possible values  23 = 8 possible inputs Exhaustive testing … We can also check the cases where a carry is generated or propagated when there is a carry in Input pairs (a=1,b=0) (a=0,b=1) and (a=1,b=1) all propagate a carry, so we can test the inputs (a,b,c) = (1,0,1) (0,1,1) (1,0,1) (3 out of 8 cases) for each FA in parallel with the patterns 1111…1111 and 0000…0000 0000…0000 and 1111…1111 1111…1111 and 1111…1111 and a carry in set to 1

Case study – Ripple carry adder Composed of full adder circuits and carry chains Test the full adders 3 inputs, each with 2 possible values  23 = 8 possible inputs Exhaustive testing … Finally we have the cases where a carry in is ‘absorbed’ (ie not propagated) (0,0,1) a carry is generated when there is no carry in (1,1,0) We can try to be efficient here and generate alternating patterns that test every second FA for these two cases 4 tests Total tests so far 3 + 3 + 4 = 10

Case study – Ripple carry adder Composed of full adder circuits and carry chains Test the full adders 3 inputs, each with 2 possible values  23 = 8 possible inputs Exhaustive testing … Total tests so far 3 + 3 + 4 = 10 Now we’ve checked Each FA block Carry links between each block Carry out (whenever carry is generated, we check the carry out from the whole circuit too!) Carry in (needed to generate carry input to FA0) so we could possibly claim that we’ve verified everything!

Case study – Ripple carry adder Composed of full adder circuits and carry chains Test the full adders 3 inputs, each with 2 possible values  23 = 8 possible inputs Exhaustive testing … 10 tests adequate? A formal argument certainly claims it! A thorough tester would probably want to check Different carry chain lengths Testing so far has only checked a carry propagated Across 1 link Along the full adder (there may be some circuit loading or cross-talk patterns that produce glitches) Different numbers of sum bits … possibly some more But we can certainly get away with far less than 1.6 x 1019 tests!

Equivalence Classes We reduced the number of tests by just working out which tests were ‘different’ They processed the inputs in a different way We avoided tests which – although the inputs differed – were basically similar to other tests This is formally known as identifying the equivalence classes An equivalence class contains all the inputs which cause basically the same actions to occur In the RC adder case, random inputs would just apply the 8 input patterns for each FA block to different parts of the adder Our tests ensured that all 8 possible patterns were tried for each FA in the full circuit

Random Testing With automated test generation For example, use an FPGA to generate test vectors! Testing can be very fast ~109 tests / second is possible Programmed generation of random numbers can apply large numbers of tests in reasonable times However There’s always a (non-zero) probability that some vital test will be missed It is sometimes difficult to calculate (or generate) the expected answer After all, that’s what the circuit you’re testing is supposed to do!! Random testing sometimes relies on the absence of exceptions rather than checking that the answer is right!