Computer Organization and Design Transistors & Logic - II Montek Singh Oct {21,28}, 2015 Lecture 10.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Morgan Kaufmann Publishers
Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
Lecture 20, Slide 1EECS40, Fall 2004Prof. White Lecture #20 ANNOUNCEMENT Midterm 2 Thursday Nov. 18, 12:40 – 2:00 pm A-L initials in F295 Haas Business.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
CS 151 Digital Systems Design Lecture 11 NAND and XOR Implementations.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
L08 – Transistors and Logic 1 Comp 411 – Fall /30/09 Transistors and Logic A B Comp 411 Box-o-Tricks F = A xor B 1) The digital contract 2) Encoding.
ENGIN112 L11: NAND and XOR Implementation September 26, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 11 NAND and XOR Implementations.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
EECS 40 Spring 2003 Lecture 11S. Ross and W. G. OldhamCopyright Regents of the University of California TO REVIEW AMPLIFIERS… Prove formulas for various.
Multiplexer as a Universal Function Generator
10/25/2004EE 42 fall 2004 lecture 231 Lecture #23 Synthesis Next week: Converting gates into circuits.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Digital Logic Design Adil Waheed. BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION AND gate F = A.B OR gate F = A + B NOT gate F = A NAND gate F = A.B NOR gate.
Chapter 2: Boolean Algebra and Logic Functions
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
CHAPTER 2 Boolean Algebra
The NAND gate as a universal gate Logic function NAND gate only AA A B A.BA.B A B A+B A B A B A B A A A B A.BA.B B A A B A B A B.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Lecture 7 Topics –Boolean Algebra 1. Logic and Bits Operation Computers represent information by bit A bit has two possible values, namely zero and one.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #7 COMBINATIONAL LOGIC ANALYSIS.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Combinational Logic 1.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
LOGIC GATES & BOOLEAN ALGEBRA
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 16, 2013 Lecture 10.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
Lecture 09 NAND and XOR Implementations. Overview °Developing NAND circuits °Two-level implementations Convert from AND/OR to NAND (again!) °Multi-level.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
1 Logic Gates and Circuits  Logic Gates Logic Gates  The Inverter The Inverter  The AND Gate The AND Gate  The OR Gate The OR Gate  The NAND Gate.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
5 - Digital Logic with Boolean Algebra
C.S. Choy21 BOOLEAN ALGEGRA The Mathematics of logic Boolean variables have only two possible values (binary) Operators:. Product+ SumComplement A.B A+B.
Chapter 3 Digital Logic Structures
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
Computer Organization and Design Transistors & Logic - II Montek Singh Mon, Mar 14, 2011 Lecture 9.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Logic Gates and Boolean Algebra Introduction to Logic II.
Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 17, 2012 Lecture 11.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Transistors and Logic - II
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
COMP541 Combinational Logic - II
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
Logic Gates.
Computer Organization and Design Transistors & Logic - II
Digital Logic.
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Lecture 3: Boolean Algebra
Logic Gates.
COMP541 Combinational Logic - II
COMP541 Combinational Logic - II
Presentation transcript:

Computer Organization and Design Transistors & Logic - II Montek Singh Oct {21,28}, 2015 Lecture 10

Today’s Topics  Basic gates  Boolean algebra  Synthesis using standard gates Truth tables Truth tables Universal gates: NAND and NOR Universal gates: NAND and NOR Gates with more than 2 inputs Gates with more than 2 inputs Sum-of-Products Sum-of-Products DeMorgan’s Law DeMorgan’s Law 2

Single-Input Logic Gates 3

Two-Input Logic Gates 4

More Two-Input Logic Gates 5

Multiple-Input Logic Gates 6

7

Boolean Algebra Algebra of 1s and 0s

9 Table of Identities

10Duals  Left and right columns are duals  Replace ANDs and ORs, 0s and 1s

11 Single Variable Identities

12Commutativity  Operation is independent of order of variables

13Associativity  Independent of order in which we group  So can also be written as and

14Distributivity

Substitution  Can substitute arbitrarily large algebraic expressions for the variables Distribute an operation over the entire expression Distribute an operation over the entire expression Example: Example: X + YZ = (X+Y)(X+Z) Substitute ABC for X ABC + YZ = (ABC + Y)(ABC + Z) 15

16 DeMorgan’s Theorem  Used a lot NOR  invert, then AND NOR  invert, then AND NAND  invert, then OR NAND  invert, then OR

17 Truth Tables for DeMorgan’s

18 Algebraic/Boolean Manipulation  Apply algebraic and Boolean identities to simplify expression Example: Example:

19 Simplification Example Apply

20 Fewer Gates

From Truth Table to Gate-Level Circuit

Now We’re Ready to Design Stuff!  We need to start somewhere usually it’s the functional specification usually it’s the functional specification A B Y If C is 1 then copy B to Y, otherwise copy A to Y C First step is to translate a verbal description into a tabular form. Any combinational function can be represented as a “truth table.” A truth table lists the output(s) for each combination of inputs. Truth Table

We Can Make Most Gates Out of Others  Example 1: B > A Output Y is 1 if and only if B is 1 AND A is 0 Output Y is 1 if and only if B is 1 AND A is 0  Y = B AND (NOT(A)) B>A A B y

We Can Make Most Gates Out of Others  Example 2: A XOR B Output Y is 1 if and only if … Output Y is 1 if and only if …  B is 1 AND A is 0 --OR—  B is 0 AND A is 1  Y = B AND (NOT(A)) OR A AND (NOT(B)) XOR A B Y A B Y Symbol for XOR

How many gates do we really need?

One Will Do!  NANDs and NORs are universal one can make any circuit out of just NANDs, or out of just NORs! one can make any circuit out of just NANDs, or out of just NORs!  Ah! But what if we want more than 2-inputs? = = = = = =

Gate Trees: Multi-input gates Suppose we have some 2-input XOR gates: (same idea holds for AND and OR gates) And we want an N-input XOR: XOR(A 1, A 2, A 3 … A N ) =XOR … (XOR(XOR(A 1, A 2 ), A 3 ) … A N ) A0011A0011 B0101B0101 C0110C0110 t pd = 1 (latency) t pd (latency)= O( ___ ) in the WORST CASE. output = 1 iff number of 1s in input is ODD (“ODD PARITY”) Can we compute N-input XOR faster? N

Gate Trees N-input TREE has O( ______ ) levels... Input  Output propagation takes O( _______ ) gate delays. log N log 2 N

Design Approach: Sum-of-Products Three steps: 1. Write functional spec as a truth table 2. Write down a Boolean expression for every ‘1’ in the output 3. Wire up the gates!  This approach will always give us logic expressions in a particular form: SUM-OF-PRODUCTS (“SOP”) SUM-OF-PRODUCTS (“SOP”)  “SUM” actually means OR  “PRODUCT” actually means AND Truth Table

Straightforward Synthesis  We can implement SUM-OF-PRODUCTS… …with just three levels of logic: …with just three levels of logic:  INVERTERS/AND/OR ABCABC ABCABC ABCABC ABCABC Y

Notations  Symbols and Boolean operators:

DeMorgan’s Laws  Change ANDs into ORs and vice-versa

AB=A+B Useful Gate Structures  NAND-NAND  NOR-NOR C A B Y C A B Y  C A B Y  C A B Y C A B Y C A B Y AB=A+B “Pushing Bubbles” DeMorgan’s Laws

An Interesting 3-Input Gate: Multiplexer  Based on C, select the A or B input to be copied to the output Y. Truth Table A B Y C If C is 1 then copy B to Y, otherwise copy A to Y 2-input Multiplexer A B C 0 1 Gate symbol

Multiplexer (MUX) Shortcuts S01S S01S S01S I0I1I2I3I0I1I2I3 Y S 0 S 1 A 4-input Mux (implemented as a tree) S01S S01S A2B2A3B3A2B2A3B3 Y0Y0 S S01S S01S A0B0A1B1A0B0A1B1 Y1Y1 Y2Y2 Y3Y3 A 4-bit wide 2-input Mux ABCDSABCDS Y A 0-3 B 0-3 S Y 0-3

Next Class  Arithmetic circuits