Gates. Quiz 1 will cover up to and including this lecture. The book says something about NAND... maybe an in-law. Is he talking about BILL??? 6.

Similar documents
Basic Gate Repertoire

Logic Synthesis. Late Policies. Wire Gauge. Schematics & Wiring

CMOS Technology Worksheet

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

CHAPTER 3 LOGIC GATES & BOOLEAN ALGEBRA

Logic Gates and Boolean Algebra

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

L2: Combinational Logic Design (Construction and Boolean Algebra)

CMSC 313 Lecture 16 Postulates & Theorems of Boolean Algebra Semiconductors CMOS Logic Gates

Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits

Memory, Latches, & Registers

Lecture 21: Boolean Logic. To Wrap up AVR

EEE130 Digital Electronics I Lecture #4

Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

Why digital? Overview. Number Systems. Binary to Decimal conversion

Theorem/Law/Axioms Over (.) Over (+)

EECS Variable Logic Functions

EEC 118 Lecture #6: CMOS Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

EEC 116 Lecture #5: CMOS Logic. Rajeevan Amirtharajah Bevan Baas University of California, Davis Jeff Parkhurst Intel Corporation

COSC3330 Computer Architecture Lecture 2. Combinational Logic

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

CS/COE0447: Computer Organization and Assembly Language

Boolean Algebra & Logic Gates. By : Ali Mustafa

Digital Integrated Circuits Designing Combinational Logic Circuits. Fuyuzhuo

Digital Integrated Circuits A Design Perspective

9/18/2008 GMU, ECE 680 Physical VLSI Design

Gates and Logic: From Transistors to Logic Gates and Logic Circuits

Sequential Logic. Handouts: Lecture Slides Spring /27/01. L06 Sequential Logic 1

L2: Combinational Logic Design (Construction and Boolean Algebra)

CS61c: Representations of Combinational Logic Circuits

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

CSE370 HW3 Solutions (Winter 2010)

Digital Design 2. Logic Gates and Boolean Algebra

12/31/2010. Overview. 05-Boolean Algebra Part 3 Text: Unit 3, 7. DeMorgan s Law. Example. Example. DeMorgan s Law

L2: Combinational Logic Design (Construction and Boolean Algebra)

Electronics. Overview. Introducction to Synthetic Biology

NTE74HC165 Integrated Circuit TTL High Speed CMOS, 8 Bit Parallel In/Serial Out Shift Register

Chapter 7 Combinational Logic Networks

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

CMOS Transistors, Gates, and Wires

Logic Gate Level. Part 2

Possible logic functions of two variables

Lecture 6: Circuit design part 1

4.10 The CMOS Digital Logic Inverter

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Digital Electronics H H

Week-I. Combinational Logic & Circuits

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

EC-121 Digital Logic Design

COMP 103. Lecture 16. Dynamic Logic

Lecture 9: Digital Electronics

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

Combinational Logic (mostly review!)

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Chapter 2. Digital Logic Basics

Sequential Logic Worksheet

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

Lecture 14: Circuit Families

CHAPTER 15 CMOS DIGITAL LOGIC CIRCUITS

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Review: 1st Order RC Delay Models. Review: Two-Input NOR Gate (NOR2)

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

1 Boolean Algebra Simplification

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Part 5: Digital Circuits

Review: Additional Boolean operations

Sequential Logic. Road Traveled So Far

Sequential Logic (3.1 and is a long difficult section you really should read!)

Properties of CMOS Gates Snapshot

CARLETON UNIVERSITY. X = Y 0 0 X > Y 1 0 X < Y 0 1 never 1 1 happens. Examples

Lecture 22 Chapters 3 Logic Circuits Part 1

Digital Logic Design ABC. Representing Logic Operations. Dr. Kenneth Wong. Determining output level from a diagram. Laws of Boolean Algebra

211: Computer Architecture Summer 2016

COMP2611: Computer Organization. Introduction to Digital Logic

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

New Students Day Activity

Topics. Dynamic CMOS Sequential Design Memory and Control. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

Implementation of Boolean Logic by Digital Circuits

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences

Chapter 2 Boolean Algebra and Logic Gates

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

ECE 546 Lecture 10 MOS Transistors

Computer organization

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates

Karnaugh Maps (K-Maps)

ECE/CS 250 Computer Architecture

Lecture 8: Combinational Circuit Design

Unit 2 Session - 6 Combinational Logic Circuits

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

MA 3260 Lecture 10 - Boolean Algebras (cont.) Friday, October 19, 2018.

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

CPE100: Digital Logic Design I

Number System conversions

Standard & Canonical Forms

Transcription:

Gates Is he talking about ILL??? The book says something about NND... maybe an in-law. WRD & HLSTED 6.4 NERD KIT Quiz will cover up to and including this lecture 6.4 - Fall 22 9/7/2 L4 - Gates

Quick Review Static discipline combinational device is a circuit element that has one or more digital inputs one or more digital outputs a functional specification that details the value of each output for every possible combination of valid input values a timing specification consisting (at minimum) of an upper bound t PD on the required time for the device to compute the specified output values from an arbitrary set of stable, valid input values input input input C If C is then copy to Y, otherwise copy to Y I will generate a valid output in no more than 2 weeks after seeing valid inputs output Y 6.4 - Fall 22 9/7/2 L4 - Gates 2

VTC and the Static Discipline V out Inverting gates Non-inverting gates V oh V ih V il V ol V ol V il V ih V oh Static Discipline requires that we avoid gray areas, which correspond to valid inputs but invalid outputs. Net result: combinational devices must have GIN and be NONLINER. The good news: CMOS gates do all this with the added bonus of no static power! V in 6.4 - Fall 22 9/7/2 L4 - Gates 3

Due to unavoidable delays Propagation delay (t PD ): n UPPER OUND on the delay from valid inputs to valid outputs. V IN V IH V IL GOL: minimize propagation delay! V OUT V OH V OL time constant τ = R PD C L < t PD 6.4 - Fall 22 9/7/2 < tpd time constant τ = R PU C L ISSUE: keep Capacitances low and transistors fast L4 - Gates 4

Contamination Delay an optional, additional timing spec INVLID inputs take time to propagate, too... V IN V IH Do Do we we really really need need tt CD? CD? V IL V OUT V OH > t CD > t CD Usually Usually not not it ll it ll be be important when when we we design design circuits circuits with with registers (coming (coming soon!) soon!) V OL If If tt CD is CD is not not specified, safe safe to to assume assume it s it s.. CONTMINTION DELY, t CD LOWER OUND on the delay from any invalid input to an invalid output 6.4 - Fall 22 9/7/2 L4 - Gates 5

The Combinational Contract t PD propagation delay t CD contamination delay > t CD Must be Note:. No Promises during 2. Default (conservative) spec: t CD = < t PD Must be 6.4 - Fall 22 9/7/2 L4 - Gates 6

Example: Timing nalysis If NND gates have a t PD = 4nS and t CD = ns t CD is the minimum cumulative contamination delay over all paths from inputs to outputs C t PD = 2 ns t CD = 2 ns Y t PD is the maximum cumulative propagation delay over all paths from inputs to outputs 6.4 - Fall 22 9/7/2 L4 - Gates 7

Functional Specifications There are many ways of specifying the function of a combinational device, for example: C If C is then copy to Y, otherwise copy to Y Concise alternatives: truth tables are a concise description of the combinational system s function. oolean expressions form an algebra in whose operations are ND (multiplication), OR (addition), and inversion (overbar). ny combinational (oolean) function can be specified as a truth table or an equivalent oolean expression! Y Truth Table C Y Y = C + C + C + C 6.4 - Fall 22 9/7/2 L4 - Gates 8

NOR: Oh yeah one last issue Z Z Recall the rules for combinational devices: Output guaranteed to be valid when all inputs have been valid for at least t PD, and, outputs may become invalid no earlier than t CD after an input changes! Many gate implementations--e.g., CMOS adhere to even tighter restrictions. Z t CD t PD 6.4 - Fall 22 9/7/2 L4 - Gates 9

What happens in this case? Z LENIENT Combinational Device: Output guaranteed to be valid when any combination of inputs sufficient to determine output value has been valid for at least t PD. Tolerates transitions -- and invalid levels -- on irrelevant inputs! Z t CD t PD Input alone is sufficient to determine the output NOR: Z Lenient NOR: 6.4 - Fall 22 9/7/2 Z X X Z L4 - Gates

We have a bag of gates. Lets design stuff! Where do we start? We have a spec. What do we do? Did I mention we have gates? F = xor 6.4 Gates We need a systematic approach for designing logic We can build NY Combinational Device can t we???? 6.4 - Fall 22 9/7/2 L4 - Gates

Slight Diversion re we sure we have all the gates we need? Just how many two-input gates are there? ND Y OR Y NND Y NOR Y Hum all of these have 2-inputs (no surprise) each with 4 combinations, giving 2 2 output cases 2 How many ways are there of assigning 4 outputs? 2 = 2 2 4 = 6 6.4 - Fall 22 9/7/2 L4 - Gates 2

There are only so many gates There are only 6 possible 2-input gates some we know already, others are just silly I N P U T Z E R O N D > > X O R O R N O R X N O R N O T <= N O T <= N N D O N E How many of these gates can be implemented using a single CMOS gate? Do we need all of these gates? Nope. fter all, we describe them all using ND, OR, and NOT. 6.4 - Fall 22 9/7/2 L4 - Gates 3

We can make most gates out of others > Y XOR Y Y y Y How many different gates do we really need? 6.4 - Fall 22 9/7/2 L4 - Gates 4

NNDs and NORs are universal One will do! Is that really an OR gate? = = = = = = h!, but what if we want more than 2-inputs 6.4 - Fall 22 9/7/2 L4 - Gates 5

Stupid Gate Tricks Suppose we have some 2-input XOR gates: C t pd = t cd = C nd we want an N-input XOR: 3 4 N 2 output = iff number of s input is ODD ( ODD PRITY ) N t pd = O( ) -- WORST CSE. Can we compute N-input XOR faster? 6.4 - Fall 22 9/7/2 L4 - Gates 6

I think that I shall never see a circuit lovely as... 2 3 4 N 2 log 2 N 2 2 2 N-input TREE has O( log N ) levels... Signal propagation takes O( log N ) gate delays. Question: Can EVERY N-Input oolean function be implemented as a tree of 2-input gates? 6.4 - Fall 22 9/7/2 L4 - Gates 7

re Trees lways est? lternate Plan: Large Fan-in gates N pulldowns with complementary pullups Output HIGH if any input is HIGH = OR... Propagation delay: O( ) since each additional MOSFET adds N t pd C O(N) O(log N) N Don t be mislead by the big O stuff the constants in this case can be much smaller so for small N this plan might be the best. ~4 6.4 - Fall 22 9/7/2 L4 - Gates 8

Here s a Design pproach Truth Table C Y ) Write out our functional spec as a truth table 2) Write down a oolean expression for every in the output Y = C + C + C + C 3) Wire up the gates, call it a day, and declare success! This approach will always give us oolean expressions in a particular form: SUM-OF-PRODUCTS 6.4 - Fall 22 9/7/2 L4 - Gates 9

Straightforward Synthesis We can implement SUM-OF-PRODUCTS with just three levels of logic. INVERTERS/ND/OR Propagation delay -- No more than 3 gate delays (ignoring fan-in) C C C C Y 6.4 - Fall 22 9/7/2 L4 - Gates 2

Oh, by the way That Gate has a Name! Truth Table The gate we ve been designing for this lecture is a relatively important one: C Y C If C is then copy to Y, otherwise copy to Y Y 2-input Multiplexer C Gate symbol C (one) implementation Y 6.4 - Fall 22 9/7/2 L4 - Gates 2

Logic Simplification Can we implement the same function with fewer gates? efore trying we ll add a few more tricks in our bag. OOLEN LGER: OR rules: a + =, a + = a, a + a = a ND rules: a = a, ao =, aa = a Commutative: a + b = b + a, ab = ba ssociative: (a + b) + c = a + (b + c), (ab)c = a(bc) Distributive: a(b+c) = ab + ac, a + bc = (a+b)(a+c) Complements: bsorption: a + a =, aa = Reduction: a ( a + b) = a, ab + ab = b, a( a + b) = ab ( a + b)( a + b) = DeMorgan s Law: a + ab = a, a + ab = a + b a + b = ab, ab = a + b 6.4 - Fall 22 9/7/2 b L4 - Gates 22

oolean Minimization: n lgebraic pproach Lets (again!) simplify Y = C + C + C + C Using the identity α + α = α For any expression α and variable : Y = C + C + C + C Y = C + C + C Y = C + C 6.4 - Fall 22 9/7/2 L4 - Gates 23

Summary Timing specs t PD : upper bound on time from valid inputs to valid outputs t CD : lower bound on time from invalid inputs to invalid outputs If not specified, assume t CD = Combinational logic ny function that can be specified by a truth table or, equivalently, in terms of ND/OR/NOT (oolean expression) Lenience: optional, more demanding functional guarantee. Rarely needed; assume non-lenient logic by default. Minimally, we can get away with just 2-input NNDs or NORs Sum-of-products canonical form Comes directly from truth table 3-level implementation of any logic function Limitations on number of inputs (fan-in) increases depth Next time: logic simplification, other canonical forms 6.4 - Fall 22 9/7/2 L4 - Gates 24