Lecture 6: Logical Effort

Similar documents
EE 447 VLSI Design. Lecture 5: Logical Effort

ECE429 Introduction to VLSI Design

Introduction to CMOS VLSI Design. Lecture 5: Logical Effort. David Harris. Harvey Mudd College Spring Outline

VLSI Design, Fall Logical Effort. Jacob Abraham

Lecture 8: Combinational Circuit Design

Logical Effort: Designing for Speed on the Back of an Envelope David Harris Harvey Mudd College Claremont, CA

Logical Effort. Sizing Transistors for Speed. Estimating Delays

Introduction to CMOS VLSI Design. Logical Effort B. Original Lecture by Jay Brockman. University of Notre Dame Fall 2008

Very Large Scale Integration (VLSI)

Lecture 8: Logic Effort and Combinational Circuit Design

Lecture 7: Multistage Logic Networks. Best Number of Stages

Lecture 5. Logical Effort Using LE on a Decoder

7. Combinational Circuits

Logic effort and gate sizing

EE M216A.:. Fall Lecture 5. Logical Effort. Prof. Dejan Marković

C.K. Ken Yang UCLA Courtesy of MAH EE 215B

Logic Gate Sizing. The method of logical effort. João Canas Ferreira. March University of Porto Faculty of Engineering

Chapter 4. Digital Integrated Circuit Design I. ECE 425/525 Chapter 4. CMOS design can be realized meet requirements from

Lecture 6: Circuit design part 1

Interconnect (2) Buffering Techniques. Logical Effort

EE115C Digital Electronic Circuits Homework #5

Lecture 9: Combinational Circuit Design

CPE/EE 427, CPE 527 VLSI Design I L13: Wires, Design for Speed. Course Administration

Estimating Delays. Gate Delay Model. Gate Delay. Effort Delay. Computing Logical Effort. Logical Effort

EE M216A.:. Fall Lecture 4. Speed Optimization. Prof. Dejan Marković Speed Optimization via Gate Sizing

Announcements. EE141-Spring 2007 Digital Integrated Circuits. CMOS SRAM Analysis (Read/Write) Class Material. Layout. Read Static Noise Margin

Logical Effort EE141

Digital Integrated Circuits Lecture 5: Logical Effort

Digital Integrated Circuits A Design Perspective

Lecture 34: Portable Systems Technology Background Professor Randy H. Katz Computer Science 252 Fall 1995

EE141. Administrative Stuff

Lecture 8: Combinational Circuits

EECS 151/251A Homework 5

EE141-Fall 2011 Digital Integrated Circuits

University of Toronto. Final Exam

Lecture 9: Combinational Circuits

Lecture 8: Combinational Circuits

Floating Point Representation and Digital Logic. Lecture 11 CS301

Clock signal in digital circuit is responsible for synchronizing the transfer to the data between processing elements.

CMPEN 411 VLSI Digital Circuits Spring 2012 Lecture 17: Dynamic Sequential Circuits And Timing Issues

Lecture 1: Gate Delay Models

Integrated Circuits & Systems

and V DS V GS V T (the saturation region) I DS = k 2 (V GS V T )2 (1+ V DS )

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

Spiral 2 7. Capacitance, Delay and Sizing. Mark Redekopp

Static CMOS Circuits. Example 1

ALUs and Data Paths. Subtitle: How to design the data path of a processor. 1/8/ L3 Data Path Design Copyright Joanne DeGroat, ECE, OSU 1

Sequential Logic Worksheet

Lecture 14: Circuit Families

CMPEN 411 VLSI Digital Circuits Spring Lecture 21: Shifters, Decoders, Muxes

EE371 - Advanced VLSI Circuit Design

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

9. Datapath Design. Jacob Abraham. Department of Electrical and Computer Engineering The University of Texas at Austin VLSI Design Fall 2017

Digital Microelectronic Circuits ( ) Logical Effort. Lecture 7: Presented by: Adam Teman

CMOS Technology Worksheet

ESE570 Spring University of Pennsylvania Department of Electrical and System Engineering Digital Integrated Cicruits AND VLSI Fundamentals

Simulation of Logic Primitives and Dynamic D-latch with Verilog-XL

Lecture 18: Datapath Functional Units

ESE570 Spring University of Pennsylvania Department of Electrical and System Engineering Digital Integrated Cicruits AND VLSI Fundamentals

Lecture 5: DC & Transient Response

EE241 - Spring 2000 Advanced Digital Integrated Circuits. Announcements

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

EE115C Digital Electronic Circuits Homework #6

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

EEC 216 Lecture #2: Metrics and Logic Level Power Estimation. Rajeevan Amirtharajah University of California, Davis

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

CSE370 HW3 Solutions (Winter 2010)

EECS 427 Lecture 8: Adders Readings: EECS 427 F09 Lecture 8 1. Reminders. HW3 project initial proposal: due Wednesday 10/7

Area-Time Optimal Adder with Relative Placement Generator

EE141-Fall 2012 Digital Integrated Circuits. Announcements. Homework #3 due today. Homework #4 due next Thursday EECS141 EE141

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

COSC3330 Computer Architecture Lecture 2. Combinational Logic

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance

Computer organization

EC-121 Digital Logic Design

! Charge Leakage/Charge Sharing. " Domino Logic Design Considerations. ! Logic Comparisons. ! Memory. " Classification. " ROM Memories.

CARNEGIE MELLON UNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING DIGITAL INTEGRATED CIRCUITS FALL 2002

EECS 151/251A Spring 2018 Digital Design and Integrated Circuits. Instructors: Nick Weaver & John Wawrzynek. Lecture 12 EE141

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

6.884 Complex Digital Systems Spring Quiz - March 18, Minutes

Lecture 12: Datapath Functional Units

CPE/EE 427, CPE 527 VLSI Design I L18: Circuit Families. Outline

EE115C Winter 2017 Digital Electronic Circuits. Lecture 19: Timing Analysis

EE 330 Lecture 39. Digital Circuits. Propagation Delay basic characterization Device Sizing (Inverter and multiple-input gates)

LECTURE 2: Delay models, std_ulogic and. EECS 316 CAD Computer Aided Design. with-select-when. Chris Papachristou Case Western Reserve University

Arithmetic Building Blocks

EE5780 Advanced VLSI CAD

Lecture 12 CMOS Delay & Transient Response

CprE 281: Digital Logic

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Mealy & Moore Machines

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

EE141Microelettronica. CMOS Logic

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

Advanced VLSI Design Prof. A. N. Chandorkar Department of Electrical Engineering Indian Institute of Technology- Bombay

Lecture 4: DC & Transient Response

EECS 312: Digital Integrated Circuits Final Exam Solutions 23 April 2009

Where are we? Data Path Design

! Crosstalk. ! Repeaters in Wiring. ! Transmission Lines. " Where transmission lines arise? " Lossless Transmission Line.

Transcription:

Lecture 6: Logical Effort

Outline Logical Effort Delay in a Logic Gate Multistage Logic Networks Choosing the Best Number of Stages Example Summary

Introduction Chip designers face a bewildering array of choices What is the best circuit topology for a function? How many stages of logic give least delay? How wide should the transistors be???? Logical effort is a method to make these decisions Uses a simple model of delay Allows back-of-the-envelope calculations Helps make rapid comparisons between alternatives Emphasizes remarkable symmetries 3

Example Ben Bitdiddle is the memory designer for the Motoroil 68W86, an embedded automotive processor. Help Ben design the A[3:0] A[3:0] decoder for a register file. 3 bits Decoder specifications: 6 6 word register file Each word is 3 bits wide Each bit presents load of 3 unit-sized transistors True and complementary address inputs A[3:0] Each input may drive 0 unit-sized transistors Ben needs to decide: How many stages to use? How large should each gate be? How fast can decoder operate? :6 Decoder Register File 6 words

Delay in a Logic Gate Express delays in process-independent unit d = Delay has two components: d = f + p τ = 3RC f: effort delay = gh (a.k.a. stage effort) Again has two components g: logical effort Measures relative ability of gate to deliver current g for inverter h: electrical effort = C out / C in Ratio of output to input capacitance Sometimes called fanout p: parasitic delay Represents delay of gate driving no load Set by internal parasitic capacitance d abs τ 3 ps in 65 nm process 60 ps in 0.6 μm process 5

Delay Plots d = f + p = gh + p What about NOR? Normalized Delay: d 6 5 3 -input NAND Inverter g = /3 p = d = (/3)h + g = p = d = h + Effort Delay: f 0 Parasitic Delay: p 0 3 5 Electrical Effort: h = C out / C in 6

Computing Logical Effort DEF: Logical effort is the ratio of the input capacitance of a gate to the input capacitance of an inverter delivering the same output current. Measure from delay vs. fanout plots Or estimate by counting transistor widths A Y A B Y A B Y C in = 3 g = 3/3 C in = g = /3 C in = 5 g = 5/3 7

Catalog of Gates Logical effort of common gates Gate type Number of inputs 3 n Inverter NAND /3 5/3 6/3 (n+)/3 NOR 5/3 7/3 9/3 (n+)/3 Tristate / mux XOR, XNOR, 6,, 6 8, 6, 6, 8 8

Catalog of Gates Parasitic delay of common gates In multiples of p inv ( ) Gate type Number of inputs 3 n Inverter NAND 3 n NOR 3 n Tristate / mux 6 8 n XOR, XNOR 6 8 9

Example: Ring Oscillator Estimate the frequency of an N-stage ring oscillator Logical Effort: g = Electrical Effort: h = Parasitic Delay: p = Stage Delay: d = Frequency: f osc = /(*N*d) = /N 3 stage ring oscillator in 0.6 μm process has frequency of ~ 00 MHz 0

Example: FO Inverter Estimate the delay of a fanout-of- (FO) inverter d Logical Effort: g = Electrical Effort: h = Parasitic Delay: p = Stage Delay: d = 5 The FO delay is about 300 ps in 0.6 μm process 5 ps in a 65 nm process

Multistage Logic Networks Logical effort generalizes to multistage networks Path Logical Effort Path Electrical Effort Path Effort G = g i C H = C out-path in-path F = fi = gh i i 0 g = h = x/0 x g = 5/3 h = y/x y g 3 = /3 h 3 = z/y z g = h = 0/z 0

Multistage Logic Networks Logical effort generalizes to multistage networks Path Logical Effort Path Electrical Effort Path Effort Can we write F = GH? G = g i Cout H = path C in path F = fi = gh i i 3

Paths that Branch No! Consider paths that branch: G = H = 90 / 5 = 8 5 5 90 GH = 8 h = (5 +5) / 5 = 6 5 90 h = 90 / 5 = 6 F = g g h h = 36 = GH

Branching Effort Introduce branching effort Accounts for branching between stages in path b = C on path B= b i C C on path off path Now we compute the path effort F = GBH + Note: h i = BH 5

Multistage Delays Path Effort Delay D F = f i Path Parasitic Delay Path Delay P= p i = i = F + D d D P 6

Designing Fast Circuits = i = F + D d D P Delay is smallest when each stage bears same effort fˆ = gh = F i i N Thus minimum delay of N stage path is N D= NF + P This is a key result of logical effort Find fastest possible delay Doesn t require calculating gate sizes 7

Gate Sizes How wide should the gates be for least delay? fˆ = gh= g C = in i C C out in gc i fˆ out i Working backward, apply capacitance transformation to find input capacitance of each gate given load it drives. Check work by verifying input cap spec is met. 8

Example: 3-stage path Select gate sizes x and y for least delay from A to B x x y 5 A 8 x y B 5 9

Example: 3-stage path x A y x 5 8 x y B 5 Logical Effort G = (/3)*(5/3)*(5/3) = 00/7 Electrical Effort H = 5/8 Branching Effort B = 3 * = 6 Path Effort F = GBH = 5 Best Stage Effort ˆ 3 F 5 Parasitic Delay P = + 3 + = 7 f = = Delay D = 3*5 + 7 = =. FO 0

Example: 3-stage path Work backward for sizes y = 5 * (5/3) / 5 = 5 x = (5*) * (5/3) / 5 = 0 x A P: 8 N: x P: x N: 6 y P: y N: 3 5 B 5

Best Number of Stages How many stages should a path use? Minimizing number of stages is not always fastest Example: drive 6-bit datapath with unit inverter Initial Driver D = NF /N + P = N(6) /N + N 8.8 6 8 3 Datapath Load 6 6 6 6 N: f: D: 6 65 8 8 3 5 Fastest.8 5.3

Derivation Consider adding inverters to end of path How many give least delay? = n N + i + i= D NF p N n p D N N N N ( ) Define best stage effort inv = F ln F + F + p = 0 inv ρ = F N Logic Block: n Stages Path Effort F N - n Extra Inverters p + ρ lnρ = 0 inv ( ) 3

Best Stage Effort p + ρ lnρ = 0 inv ( ) has no closed-form solution Neglecting parasitics (p inv = 0), we find ρ =.78 (e) For p inv =, solve numerically for ρ = 3.59

Sensitivity Analysis How sensitive is delay to using exactly the best number of stages?.6 D(N) /D(N).5..6..5.0 (ρ=6) (ρ =.) 0.0 0.5 0.7.0..0. < ρ < 6 gives delay within 5% of optimal We can be sloppy! I like ρ = N / N 5

Example, Revisited Ben Bitdiddle is the memory designer for the Motoroil 68W86, an embedded automotive processor. Help Ben design the A[3:0] A[3:0] decoder for a register file. 3 bits Decoder specifications: 6 6 word register file Each word is 3 bits wide Each bit presents load of 3 unit-sized transistors True and complementary address inputs A[3:0] Each input may drive 0 unit-sized transistors Ben needs to decide: How many stages to use? How large should each gate be? How fast can decoder operate? :6 Decoder Register File 6 words 6

Number of Stages Decoder effort is mainly electrical and branching Electrical Effort: H = (3*3) / 0 = 9.6 Branching Effort: B = 8 If we neglect logical effort (assume G = ) Path Effort: F = GBH = 76.8 Number of Stages: N = log F = 3. Try a 3-stage design 7

Gate Sizes & Delay Logical Effort: G = * 6/3 * = Path Effort: F = GBH = 5 Stage Effort: Path Delay: Gate sizes: z = 96*/5.36 = 8 y = 8*/5.36 = 6.7 A[3] A[3] A[] A[] A[] A[] A[0] A[0] 0 0 0 0 0 0 0 0 ˆ /3 = F = 5.36 f D = 3 fˆ + + + =. y z word[0] 96 units of wordline capacitance y z word[5] 8

Comparison Compare many alternatives with a spreadsheet D = N(76.8 G) /N + P Design NOR N G 3 P D 3 NAND-INV 5 9.8 NAND-NOR 0/9 30. INV-NAND-INV NAND-INV-INV-INV 3 6 7.. NAND-NOR-INV-INV 0/9 6 0.5 NAND-INV-NAND-INV 6/9 6 9.7 INV-NAND-INV-NAND-INV 5 6/9 7 0. NAND-INV-NAND-INV-INV-INV 6 6/9 8.6 9

Review of Definitions Term number of stages logical effort electrical effort branching effort effort effort delay parasitic delay delay Stage g h = b = f f p = C C C out in on-path gh + C C on-path d = f + p off-path Path N G = g i H = C C out-path in-path B = b i F = GBH D F = f i P = p i D = d = D + P i F 30

Method of Logical Effort ) Compute path effort ) Estimate best number of stages 3) Sketch path with N stages ) Estimate least delay 5) Determine best stage effort F = GBH N = log F N D= NF + P fˆ = F N 6) Find gate sizes C in i = gic fˆ out i 3

Limits of Logical Effort Chicken and egg problem Need path to compute G But don t know number of stages without G Simplistic delay model Neglects input rise time effects Interconnect Iteration required in designs with wire Maximum speed only Not minimum area/power for constrained delay 3

Summary Logical effort is useful for thinking of delay in circuits Numeric logical effort characterizes gates NANDs are faster than NORs in CMOS Paths are fastest when effort delays are ~ Path delay is weakly sensitive to stages, sizes But using fewer stages doesn t mean faster paths Delay of path is about log F FO inverter delays Inverters and NAND best for driving large caps Provides language for discussing fast circuits But requires practice to master 33