ELEC 7770 Advanced VLSI Design Spring 2012 Timing Simulation and STA

Slides:



Advertisements
Similar presentations
10/4-6/05ELEC / Lecture 111 ELEC / (Fall 2005) Special Topics in Electrical Engineering Low-Power Design of Electronic Circuits.
Advertisements

Spring 08, Mar 11 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2008 Zero - Skew Clock Routing Vishwani D. Agrawal.
ELEC Digital Logic Circuits Fall 2014 Logic Synthesis (Chapters 2-5) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
ECE 553: TESTING AND TESTABLE DESIGN OF DIGITAL SYSTES Logic Simulation.
1 Lecture 20 Delay Test n Delay test definition n Circuit delays and event propagation n Path-delay tests  Non-robust test  Robust test  Five-valued.
Copyright 2001, Agrawal & BushnellDay-1 PM Lecture 4a1 Design for Testability Theory and Practice Lecture 4a: Simulation n What is simulation? n Design.
Spring 08, Apr 1 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2008 Testability Measures Vishwani D. Agrawal James.
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.
Spring 08, Jan 31.. ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2008 Timing Simulation and STA Vishwani D. Agrawal.
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.
9/20/05ELEC / Lecture 81 ELEC / (Fall 2005) Special Topics in Electrical Engineering Low-Power Design of Electronic Circuits.
Spring 08, Feb 28 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2008 Retiming Vishwani D. Agrawal James J. Danaher.
Spring 07, Mar 8 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2007 Timing Verification and Optimization Vishwani D.
Vishwani D. Agrawal James J. Danaher Professor
10/11/05ELEC / Lecture 121 ELEC / (Fall 2005) Special Topics in Electrical Engineering Low-Power Design of Electronic Circuits.
9/29/05ELEC / Lecture 101 ELEC / (Fall 2005) Special Topics in Electrical Engineering Low-Power Design of Electronic Circuits.
January 16, '02Agrawal: Delay testing1 Delay Testing of Digital Circuits Vishwani D. Agrawal Agere Systems, Murray Hill, NJ USA
Fall 2006, Oct. 17 ELEC / Lecture 9 1 ELEC / (Fall 2006) Low-Power Design of Electronic Circuits Power Analysis: Logic Level.
Fall 2006, Sep. 26, Oct. 3 ELEC / Lecture 7 1 ELEC / (Fall 2006) Low-Power Design of Electronic Circuits Dynamic Power:
Spring 07, Apr 5 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2007 Retiming Vishwani D. Agrawal James J. Danaher Professor.
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.
Spring 08, Feb 26 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2008 Clock Skew Problem Vishwani D. Agrawal James J.
Spring 08, Feb 6 ELEC 7770: Advanced VLSI Design (Agrawal) 1 ELEC 7770 Advanced VLSI Design Spring 2008 Timing Verification and Optimization Vishwani D.
ELEC 7770 Advanced VLSI Design Spring 2014 Timing Simulation and STA Vishwani D. Agrawal James J. Danaher Professor ECE Department, Auburn University,
Spring 2014, Mar 17...ELEC 7770: Advanced VLSI Design (Agrawal)1 ELEC 7770 Advanced VLSI Design Spring 2014 Zero - Skew Clock Routing Vishwani D. Agrawal.
Static Timing Analysis
ELEC Digital Logic Circuits Fall 2015 Delay and Power Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and Computer Engineering.
ELEC Digital Logic Circuits Fall 2014 Delay and Power Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and Computer Engineering.
COE 360 Principles of VLSI Design Delay. 2 Definitions.
Copyright 2001, Agrawal & BushnellVLSI Test: Lecture 61 Lecture 6 Logic Simulation n What is simulation? n Design verification n Circuit modeling n True-value.
ELEC 5270/6270 Spring 2013 Low-Power Design of Electronic Circuits Pass Transistor Logic: A Low Power Logic Family Vishwani D. Agrawal James J. Danaher.
ELEC 7770 Advanced VLSI Design Spring Gate Delay and Circuit Timing
ELEC 7770 Advanced VLSI Design Spring 2016 Introduction
Vishwani D. Agrawal James J. Danaher Professor
VLSI Testing Lecture 5: Logic Simulation
VLSI Testing Lecture 5: Logic Simulation
Vishwani D. Agrawal James J. Danaher Professor
VLSI Testing Lecture 4: Testability Analysis
Vishwani D. Agrawal Department of ECE, Auburn University
Reading: Hambley Ch. 7; Rabaey et al. Sec. 5.2
ELEC 5270/6270 Spring 2013 Low-Power Design of Electronic Circuits Pseudo-nMOS, Dynamic CMOS and Domino CMOS Logic Vishwani D. Agrawal James J. Danaher.
ELEC 7770 Advanced VLSI Design Spring 2014 Introduction
ELEC 7770 Advanced VLSI Design Spring 2016 Clock Skew Problem
ELEC 7770 Advanced VLSI Design Spring 2016 Zero-Skew Clock Routing
ELEC 7770 Advanced VLSI Design Spring 2012 Clock Skew Problem
ELEC 7770 Advanced VLSI Design Spring 2014 Clock Skew Problem
ELEC 5270/6270 Spring 2015 Low-Power Design of Electronic Circuits Pseudo-nMOS, Dynamic CMOS and Domino CMOS Logic Vishwani D. Agrawal James J. Danaher.
ELEC 7770 Advanced VLSI Design Spring 2012 Retiming
COMBINATIONAL LOGIC.
Vishwani D. Agrawal James J. Danaher Professor
ELEC 7770 Advanced VLSI Design Spring 2012 Introduction
ELEC 7770 Advanced VLSI Design Spring 2010 Interconnects and Crosstalk
ELEC 7770 Advanced VLSI Design Spring 2010 Introduction
Vishwani D. Agrawal James J. Danaher Professor
Vishwani D. Agrawal James J. Danaher Professor
ELEC 5270/6270 Spring 2011 Low-Power Design of Electronic Circuits Pass Transistor Logic: A Low Power Logic Family Vishwani D. Agrawal James J. Danaher.
VLSI Testing Lecture 8: Sequential ATPG
Pre-Computed Asynchronous Scan Invited Talk
ELEC 7770 Advanced VLSI Design Spring 2014 Technology Mapping
ELEC 7770 Advanced VLSI Design Spring 2016 Technology Mapping
Vishwani D. Agrawal James J. Danaher Professor
Vishwani D. Agrawal James J. Danaher Professor
ELEC 7770 Advanced VLSI Design Spring 2014 VLSI Yield and Moore’s Law
VLSI Testing Lecture 9: Delay Test
ELEC 7770 Advanced VLSI Design Spring 2016 Retiming
VLSI Testing Lecture 7: Delay Test
VLSI Testing Lecture 4: Testability Analysis
Power Estimation Dr. Elwin Chandra Monie.
ELEC 7770 Advanced VLSI Design Spring 2010 Zero-Skew Clock Routing
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:

ELEC 7770 Advanced VLSI Design Spring 2012 Timing Simulation and STA Vishwani D. Agrawal James J. Danaher Professor ECE Department, Auburn University, Auburn, AL 36849 vagrawal@eng.auburn.edu http://www.eng.auburn.edu/~vagrawal/COURSE/E7770_Spr12/course.html Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Digital Circuit Timing Input Signal changes Output Observation instant Transient region Comb. logic Inputs Synchronized With clock Outputs time Clock period Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Timing Analysis and Optimization Dynamic analysis: Simulation. Static timing analysis (STA): Vector-less topological analysis of circuit. Timing optimization Performance Clock design Other forms of design optimization Chip area Testability Power Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Circuit Delays Switching or inertial delay is the interval between input change and output change of a gate: Depends on input capacitance, device (transistor) characteristics and output capacitance of gate. Also depends on input rise or fall times and states of other inputs (second-order effects). Approximation: fixed rise and fall delays (or min-max delay range, or single fixed delay) for gate output. Propagation or interconnect delay is the time a transition takes to travel between gates: Depends on transmission line effects (distributed R, L, C parameters, length and loading) of routing paths. Approximation: modeled as lumped delays for gate inputs. Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Spice Circuit/device level analysis Circuit modeled as network of transistors, capacitors, resistors and voltage/current sources. Node current equations using Kirchhoff’s current law. Analysis is accurate but expensive Used to characterize parts of a larger circuit. Original references: L. W. Nagel and D. O. Pederson, “SPICE – Simulation Program With Integrated Circuit Emphasis,” Memo ERL-M382, EECS Dept., University of California, Berkeley, Apr. 1973. L. W. Nagel, SPICE 2, A Computer program to Simulate Semiconductor Circuits, PhD Dissertation, University of California, Berkeley, May 1975. Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

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 Cd Ca , Cb , Cc and Cd are node capacitances Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Spice Characterization Input data pattern Delay (ps) Dynamic energy (pJ) a = b = 0 → 1 69 1.55 a = 1, b = 0 → 1 62 1.67 a = 0 → 1, b = 1 50 1.72 a = b = 1 → 0 35 1.82 a = 1, b = 1 → 0 76 1.39 a = 1 → 0, b = 1 57 1.94 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Spice Characterization (Cont.) Input data pattern Static power (pW) a = b = 0 5.05 a = 0, b = 1 13.1 a = 1, b = 0 5.10 a = b = 1 28.5 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Complex Gates: Switch-Level Partitions Circuit partitioned into channel-connected components for Spice characterization. Reference: R. E. Bryant, “A Switch-Level Model and Simulator for MOS Digital Systems,” IEEE Trans. Computers, vol. C-33, no. 2, pp. 160-177, Feb. 1984. Internal switching nodes not seen by logic simulator G2 G1 G3 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Interconnect Delay: Elmore Delay Model W. Elmore, “The Transient Response of Damped Linear Networks with Particular Regard to Wideband Amplifiers,” J. Appl. Phys., vol. 19, no.1, pp. 55-63, Jan. 1948. 2 R2 C2 R1 1 s 4 R4 C1 C4 R3 3 Shared resistance: R45 = R1 + R3 R15 = R1 R34 = R1 + R3 R5 C3 5 C5 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Elmore Delay Formula N Delay at node k = 0.69 Σ Cj × Rjk j=1 where N = number of capacitive nodes in the network Example: Delay at node 5 = 0.69 [ R1 C1 + R1 C2 + (R1+R3)C3 + (R1+R3)C4 (R1+R3+R5)C5 ] Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Event Propagation Delays Single lumped inertial delay modeled for each gate PI transitions assumed to occur without time skew Path P1 1 3 1 2 4 6 P2 1 2 3 P3 5 2 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Circuit Outputs Each path can potentially produce one signal transition at the output. The location of an output transition in time is determined by the delay of the path. Clock period Final value Initial value Fast transitions Slow transitions time Initial value Final value Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Delay and Discrete-Event Simulation (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 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Event-Driven Simulation (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 Time stack 4 f =0 b =1 g 4 8 Time, t Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Time Wheel (Circular Stack) max Current time pointer t=0 Event link-list 1 2 3 4 5 6 7 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Timing Design and Delay Test Timing simulation: Critical paths are identified by static (vector-less) timing analysis tools like Primetime (Synopsys). Timing or circuit-level simulation using designer-generated functional vectors verifies the design. Layout optimization: Critical path data are used in placement and routing. Delay parameter extraction, timing simulation and layout are repeated for iterative improvement. Testing: Some form of at-speed test is necessary. Critical paths and all gate transition delays are tested. Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Static Timing Analysis (STA) Finds maximum and minimum delays between all clocked flip-flops. Flip-flops Combinational circuit Flip-flops Flip-flops Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Early References T. I. Kirkpatrick and N. R. Clark, “PERT as an Aid to Logic Design,” IBM J. Res. Dev., vol. 10, no. 2, pp. 135-141, March 1966. R. B. Hitchcock, Sr., “Timing Verification and the Timing Analysis Program,” Proc. 19th Design Automation Conf., 1982, pp. 594-604. V. D. Agrawal, “Synchronous Path Analysis in MOS Circuit Simulator,” Proc. 19th Design Automation Conf., 1982, pp. 629-635. Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Basic Ideas Adopted from project management Frederick W. Taylor (1856-1915) Henry Gantt (1861-1919) PERT – Program Evaluation and Review Technique CPM – Critical Path Method Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

A Gantt Chart in Microsoft Excel Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Using a Gantt Chart Track progress of subtasks and project. Assess resource needs as a function of time. Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

PERT (Program Evaluation and Review Technique) Chart Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Example: Thesis Research Begin Defense done Analysis completed 2, 2, 2 2, 4, 6 weeks 4, 4, 4 4, 5, 6 2, 3, 4 Problem selected Background study completed Thesis Draft done Thesis submitted 3, 4, 5 5, 7, 9 4, 4, 4 minimum average maximum Program and Experiment completed Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Critical Path Begin Defense done Analysis completed 2, 2, 2 2, 4, 6 weeks 4, 4, 4 4, 5, 6 2, 3, 4 Problem selected Background study completed Thesis Draft done Thesis submitted 3, 4, 5 5, 7, 9 4, 4, 4 minimum average maximum Program and Experiment completed Critical path is path of maximum average delay (24 weeks). Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

A Basic Timing Analysis Algorithm Combinational logic. Circuit represented as an acyclic directed graph (DAG). Gates characterized by delays. Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Example Levelize graph. Initialize arrival times at primary inputs. A 1 H 3 B 3 E 1 G 2 C 1 J 1 F 1 D 2 Level 0 1 2 3 4 5 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Example (Cont.) Determine output arrival time when all input arrival times are known. A 1 1 10 H 3 B 3 3 4 E 1 7 G 2 C 1 1 8 J 1 5 F 1 2 D 2 Level 0 1 2 3 4 5 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) Example (Cont.) Trace critical path from the output with longest arrival time. A 1 1 10 H 3 B 3 3 4 E 1 7 G 2 C 1 1 8 J 1 5 F 1 2 D 2 Level 0 1 2 3 4 5 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Finding Earliest and Longest Times A 1 1,1 4,10 H 3 B 3 3,3 2,4 E 1 4,7 G 2 C 1 1,1 4,8 J 1 3,5 F 1 2,2 D 2 Level 0 1 2 3 4 5 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Shortest and Longest Paths A 1 1,1 4,10 H 3 B 3 3,3 2,4 E 1 4,7 G 2 C 1 1,1 4,8 J 1 3,5 F 1 2,2 D 2 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Characteristics of STA Linear time analysis, Complexity is O(n), n is number of gates and interconnects. Variations: Find k longest paths: S. Kundu, “An Incremental Algorithm for Identification of Longest (Shortest) Paths,” Integration, the VLSI Journal, vol. 17,  no. 1, pp. 25-35, August 1994. Find worst-case delays from an input to all outputs. Linear programming methods. Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

Algorithms for Directed Acyclic Graphs (DAG) Graph size: n = |V| + |E|, for |V| vertices and |E| edges. Levelization: O(n) (linear-time) algorithm finds the maximum (or minimum) depth. Path counting: O(n2) algorithm. Number of paths can be exponential in n. Finding all paths: Exponential-time algorithm. Shortest (or longest) path between two nodes: Dijkstra’s algorithm: O(n2) Bellman-Ford algorithm: O(n3) Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)

ELEC 7770: Advanced VLSI Design (Agrawal) References Delay modeling, simulation and testing: M. L. Bushnell and V. D. Agrawal, Essentials of Electronic Testing for Digital, Memory and Mixed-Signal VLSI Circuits, Springer, 2000. Analysis and Design: G. De Micheli, Synthesis and Optimization of Digital Circuits, McGraw-Hill, 1994. N. Maheshwari and S. S. Sapatnekar, Timing Analysis and Optimization of Sequential Circuits, Springer, 1999. PrimeTime (Static timing analysis tool): H. Bhatnagar, Advanced ASIC Chip Synthesis, Second Edition, Springer, 2002 Spring 2012, Jan 30 . . ELEC 7770: Advanced VLSI Design (Agrawal)