Vishwani D. Agrawal Department of ECE, Auburn University

Slides:



Advertisements
Similar presentations
ECE 553: TESTING AND TESTABLE DESIGN OF DIGITAL SYSTES Logic Simulation.
Advertisements

Copyright 2001, Agrawal & BushnellDay-1 PM Lecture 4a1 Design for Testability Theory and Practice Lecture 4a: Simulation n What is simulation? n Design.
02/02/20091 Logic devices can be classified into two broad categories Fixed Programmable Programmable Logic Device Introduction Lecture Notes – Lab 2.
Spring 08, Jan 15 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2007 Introduction Vishwani D. Agrawal James J. Danaher.
1 Hardware description languages: introduction intellectual property (IP) introduction to VHDL and Verilog entities and architectural bodies behavioral,
Spring 07, Jan 16 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2007 Introduction Vishwani D. Agrawal James J. Danaher.
Spring 08, Mar 27 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2008 Fault Simulation Vishwani D. Agrawal James J.
9/29/05ELEC / Lecture 101 ELEC / (Fall 2005) Special Topics in Electrical Engineering Low-Power Design of Electronic Circuits.
1/31/20081 Logic devices can be classified into two broad categories Fixed Programmable Programmable Logic Device Introduction Lecture Notes – Lab 2.
Fall 2006, Oct. 17 ELEC / Lecture 9 1 ELEC / (Fall 2006) Low-Power Design of Electronic Circuits Power Analysis: Logic Level.
Spring 07, Mar 1, 6 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2007 Timing Simulation and STA Vishwani D. Agrawal.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
8/28/2015 Based on text by S. Mourad "Priciples of Electronic Systems" and M. L. Bushnell and V. D. Agrawal, Essentials of Electronic Testing for Digital,
ECE 2372 Modern Digital System Design
ECE 553: TESTING AND TESTABLE DESIGN OF DIGITAL SYSTES Logic Modeling.
1 H ardware D escription L anguages Modeling Digital Systems.
Module 1.2 Introduction to Verilog
Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed.
Fault Models, Fault Simulation and Test Generation Vishwani D. Agrawal Department of ECE, Auburn University Auburn, AL 36849, USA
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
Introduction to ASIC flow and Verilog HDL
Copyright 2001, Agrawal & BushnellLecture 6:Fault Simulation1 VLSI Testing Lecture 6: Fault Simulation Dr. Vishwani D. Agrawal James J. Danaher Professor.
ELEC Digital Logic Circuits Fall 2015 Delay and Power Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and Computer Engineering.
Fault Models, Fault Simulation and Test Generation Vishwani D. Agrawal Department of ECE, Auburn University Auburn, AL 36849, USA
C OMBINATIONAL L OGIC D ESIGN 1 Eng.Maha AlGubali.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
EECE 320 L8: Combinational Logic design Principles 1Chehab, AUB, 2003 EECE 320 Digital Systems Design Lecture 8: Combinational Logic Design Principles.
COE 360 Principles of VLSI Design Delay. 2 Definitions.
Mohamed Younis CMCS 411, Computer Architecture 1 CMSC Computer Architecture Lecture 8 Hardware Design Languages February 21, 2001
Logic Simulation 1 Outline –Logic Simulation –Logic Design Description –Logic Models Goal –Understand logic simulation problem –Understand logic models.
Copyright 2001, Agrawal & BushnellVLSI Test: Lecture 61 Lecture 6 Logic Simulation n What is simulation? n Design verification n Circuit modeling n True-value.
ASIC Design Methodology
ELEC 7770 Advanced VLSI Design Spring Gate Delay and Circuit Timing
Systems Architecture Lab: Introduction to VHDL
ELEC 7770 Advanced VLSI Design Spring 2016 Introduction
VLSI Testing Lecture 5: Logic Simulation
Topics Modeling with hardware description languages (HDLs).
VLSI Testing Lecture 5: Logic Simulation
VLSI Testing Lecture 4: Testability Analysis
VLSI Testing Lecture 6: Fault Simulation
Reading: Hambley Ch. 7; Rabaey et al. Sec. 5.2
Lecture 7 Fault Simulation
ECE 553: TESTING AND TESTABLE DESIGN OF DIGITAL SYSTES
Lecture 13 Sequential Circuit ATPG Time-Frame Expansion
ELEC 7770 Advanced VLSI Design Spring 2014 Introduction
VLSI Testing Lecture 6: Fault Simulation
Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-I]
Topics Modeling with hardware description languages (HDLs).
Lecture 10 Sequential Circuit ATPG Time-Frame Expansion
Digital Logic Structures Logic gates & Boolean logic
COMBINATIONAL LOGIC.
Hardware Description Languages
IAY 0800 Digitaalsüsteemide disain
ELEC 7770 Advanced VLSI Design Spring 2012 Introduction
Design Technologies Custom Std Cell Performance Gate Array FPGA Cost.
Lecture 5 Fault Modeling
ELEC 7770 Advanced VLSI Design Spring 2010 Introduction
VLSI Testing Lecture 8: Sequential ATPG
Modeling Languages and Abstract Models
Fault Models, Fault Simulation and Test Generation
VHDL Introduction.
VLSI Testing Lecture 9: Delay Test
Combinational Circuits
VLSI Testing Lecture 7: Delay Test
VLSI Testing Lecture 4: Testability Analysis
VLSI Testing Lecture 3: Fault Modeling
Lecture 26 Logic BIST Architectures
Combinational Circuits
ELEC 7770 Advanced VLSI Design Spring 2012 Timing Simulation and STA
ELEC 5270/6270 Spring 2009 Low-Power Design of Electronic Circuits Pseudo-nMOS, Dynamic CMOS and Domino CMOS Logic Vishwani D. Agrawal James J. Danaher.
Presentation transcript:

TSS@ETS10 Logic Simulation Vishwani D. Agrawal Department of ECE, Auburn University Auburn, AL 36849, USA www.ece.auburn.edu/~vagrawal vagrawal@eng.auburn.edu Prague, May 22, 2010, 2:30-6:30PM © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

May 22, 2010, Agrawal: Lecture 2 Logic Simulation What is simulation? Design verification Circuit modeling True-value simulation algorithms Compiled-code simulation Event-driven simulation Summary © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

May 22, 2010, Agrawal: Lecture 2 Logic Simulation Simulation Defined Definition: Simulation refers to modeling of a design, its function and performance. A software simulator is a computer program; an emulator is a hardware simulator. Simulation is used for design verification: Validate assumptions Verify logic Verify performance (timing) Types of simulation: Logic or switch level Timing Circuit Fault (Lecture 3) © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

Simulation for Verification Specification Synthesis Response analysis Design changes Design (netlist) Computed responses True-value simulation Input stimuli © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

Modeling for Simulation Modules, blocks or components described by Input/output (I/O) function Delays associated with I/O signals Examples: binary adder, Boolean gates, FET, resistors and capacitors Interconnects represent ideal signal carriers, or ideal electrical conductors Netlist: a format (or language) that describes a design as an interconnection of modules. Netlist may use hierarchy. © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

May 22, 2010, Agrawal: Lecture 2 Logic Simulation Example: A Full-Adder a b c d e f HA HA; inputs: a, b; outputs: c, f; AND: A1, (a, b), (c); AND: A2, (d, e), (f); OR: O1, (a, b), (d); NOT: N1, (c), (e); Half-adder HA1 HA2 A B C D E F Sum Carry FA; inputs: A, B, C; outputs: Carry, Sum; HA: HA1, (A, B), (D, E); HA: HA2, (E, C), (F, Sum); OR: O2, (D, F), (Carry); Full-adder © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

Logic Model of MOS Circuit VDD pMOS FETs a Da Dc c a Ca b Db c Cc b Da and Db are interconnect or propagation delays Dc is inertial delay of gate Cb nMOS FETs Ca , Cb and Cc are parasitic capacitances © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

Options for Inertial Delay (simulation of a NAND gate) Transient region a Inputs b c (CMOS) c (zero delay) c (unit delay) Logic simulation X c (multiple delay) rise=5, fall=5 Unknown (X) c (minmax delay) min =2, max =5 5 Time units © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

May 22, 2010, Agrawal: Lecture 2 Logic Simulation Signal States Two-states (0, 1) can be used for purely combinational logic with zero-delay. Three-states (0, 1, X) are essential for timing hazards and for sequential logic initialization. Four-states (0, 1, X, Z) are essential for MOS devices. See example below. Analog signals are used for exact timing of digital logic and for analog circuits. Z (hold previous value) © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

May 22, 2010, Agrawal: Lecture 2 Logic Simulation Modeling Levels Modeling level Function, behavior, RTL Logic Switch Timing Circuit Circuit description Programming language-like HDL Connectivity of Boolean gates, flip-flops and transistors Transistor size and connectivity, node capacitances Transistor technology data, connectivity, Tech. Data, active/ passive component connectivity Signal values 0, 1 0, 1, X and Z and X Analog voltage voltage, current Timing Clock boundary Zero-delay unit-delay, multiple- delay Fine-grain timing Continuous time Application Architectural and functional verification Logic and test Timing Digital timing and analog circuit © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

True-Value Simulation Algorithms Compiled-code simulation Applicable to zero-delay combinational logic Also used for cycle-accurate synchronous sequential circuits for logic verification Efficient for highly active circuits, but inefficient for low-activity circuits High-level (e.g., C language) models can be used Event-driven simulation Only gates or modules with input events are evaluated (event means a signal change) Delays can be accurately simulated for timing verification Efficient for low-activity circuits Can be extended for fault simulation © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

Compiled-Code Algorithm Step 1: Levelize combinational logic and encode in a compilable programming language Step 2: Initialize internal state variables (flip-flops) Step 3: For each input vector Set primary input variables Repeat (until steady-state or max. iterations) Execute compiled code Report or save computed variables © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

Event-Driven Algorithm (Example) Scheduled events c = 0 d = 1, e = 0 g = 0 f = 1 g = 1 Activity list d, e f, g g a =1 e =1 t = 0 1 2 3 4 5 6 7 8 2 c =1 0 g =1 2 2 d = 0 4 f =0 b =1 Time stack g 4 8 Time, t © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

Efficiency of Event-Driven Simulator Simulates events (value changes) only Speed up over compiled-code can be ten times or more; in large logic circuits about 0.1 to 10% gates become active for an input change Steady 0 0 → 1 event Steady 0 (no event) Large logic block without activity © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation

May 22, 2010, Agrawal: Lecture 2 Logic Simulation Summary Logic or true-value simulators are essential tools for design verification. Verification vectors and expected responses are generated (often manually) from specifications. A logic simulator can be implemented using either compiled-code or event-driven method. Per vector complexity of a logic simulator is approximately linear in circuit size. Modeling level determines the evaluation procedures used in the simulator. © 2001 Agrawal, Bushnell May 22, 2010, Agrawal: Lecture 2 Logic Simulation