CSC 220: Computer Organization Logic Gates and Functions

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Basics Combinational Circuits Sequential Circuits
CT455: Computer Organization Logic gate
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 3.
Combinational Logic Circuits Chapter 2 Mano and Kime.
Logical Systems Synthesis.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2 Dr. Costas Kyriacou and Dr. Konstantinos.
Boolean Algebra and Logic Gates1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
ECE 331 – Digital System Design
Digital Logic Basics Chapter 2 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 
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.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
Logic Gates Ghader Kurdi Adapted from the slides prepared by DEPARTMENT OF PREPARATORY YEAR.
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
Boolean Algebra & Logic Gates
Dr. Ameria Eldosoky Discrete mathematics
Combinational Circuits Part 1
Digital Logic.
Digital Fundamentals Floyd Chapter 3 Tenth Edition
Morgan Kaufmann Publishers
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Combinational Logic Circuits
Chapter 2: Boolean Algebra and Logic Functions
Digital Fundamentals Floyd Chapter 5 Tenth Edition
ECE 2110: Introduction to Digital Systems
ECE 3110: Introduction to Digital Systems
Digital Fundamentals Floyd Chapter 3 Tenth Edition
Overview Part 1 – Gate Circuits and Boolean Equations
ECE/CS 352 Digital Systems Fundamentals
Digital Logic.
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
XOR, XNOR, and Binary Adders
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Basics Combinational Circuits Sequential Circuits
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
COE 202: Digital Logic Design Combinational Logic Part 2
BASIC & COMBINATIONAL LOGIC CIRCUIT
XOR, XNOR, & Binary Adders
Combinatorial Logic Circuit
Digital Fundamentals Floyd Chapter 3 Tenth Edition
CS Chapter 3 (3A and ) Part 3 of 8
Chapter 2 Introduction to Logic Circuits
CS Chapter 3 (3A and ) – Part 2 of 5
Digital Fundamentals Floyd Chapter 5 Tenth Edition
CSC 220: Computer Organization COMBINATIONAL CIRCUITS-2
Unit 3 Simplification and K-map
Dr. Clincy Professor of CS
Chapter 2 Gates.
XOR, XNOR, and Binary Adders
Instructor: Alexander Stoytchev
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Chapter 5 Combinational Logic Analysis
Digital Fundamentals Floyd Chapter 5 Tenth Edition
XOR, XNOR, and Binary Adders
Combinational Logic Circuit
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Basic Logic Operations
Presentation transcript:

CSC 220: Computer Organization Logic Gates and Functions College of Computer and Information Sciences Department of Computer Science CSC 220: Computer Organization Unit 2 Logic Gates and Functions

Overview Introduction to Digital Logic Gates Truth table Symbol Unit 2: Logic Gates and Functions Overview Introduction to Digital Logic Gates Truth table Symbol Universal Gates (NAND/NOR) XOR and XNOR Gates Logic Chips Logic Functions Logical Equivalence Standard Forms (SOP/POS) Chapter-2 M. Morris Mano, Charles R. Kime and Tom Martin, Logic and Computer Design Fundamentals, Global (5th) Edition, Pearson Education Limited, 2016. ISBN: 9781292096124

Introduction to Digital Logic Basics Hardware consists of a few simple building blocks These are called logic gates AND, OR, NOT, … NAND, NOR, XOR, … Logic gates are built using transistors NOT gate can be implemented by a single transistor AND gate requires 3 transistors Transistors are the fundamental devices Pentium consists of 3 million transistors Compaq Alpha consists of 9 million transistors Now we can build chips with more than 100 million transistors

Basic Concepts Simple gates AND OR NOT Functionality can be expressed by a truth table A truth table lists output for each possible input combination Precedence NOT > AND > OR F = A B + A B = (A (B)) + ((A) B)

Basic Concepts (cont.) Additional useful gates NAND = AND + NOT NOR XOR NAND = AND + NOT NOR = OR + NOT XOR implements exclusive-OR function NAND and NOR gates require only 2 transistors AND and OR need 3 transistors!

Basic Concepts (cont.) Proving NAND gate is universal

Basic Concepts (cont.) Proving NOR gate is universal

XOR and XNOR Gates The XOR Gate B B The XOR gate produces a HIGH output only when the inputs are at opposite logic levels. The truth table is 0 0 0 1 1 0 1 1 1 -XOR gate has only two inputs. The XOR operation is written as X = AB + AB. Alternatively, it can be written with a circled plus sign between the variables as X = A + B.

The XOR Gate Example waveforms: A B X Notice that the XOR gate will produce a HIGH only when exactly one input is HIGH.

The XNOR operation can be shown as X = AB + AB. The XNOR Gate B B The XNOR gate produces a HIGH output only when the inputs are at the same logic level. The truth table is 0 0 0 1 1 0 1 1 1 -XNOR gate has only two inputs. The XNOR operation can be shown as X = AB + AB.

The XNOR Gate Example waveforms: A B X Notice that the XNOR gate will produce a HIGH when both inputs are the same. This makes it useful for comparison functions.

Logic Chips

Logic Chips (cont.) Integration levels SSI (small scale integration) Introduced in late 1960s 1-10 gates (previous examples) MSI (medium scale integration) 10-100 gates LSI (large scale integration) Introduced in early 1970s 100-10,000 gates VLSI (very large scale integration) Introduced in late 1970s More than 10,000 gates

Logic Functions Number of functions With N logical variables, we can define 2N combination of inputs A function relates outputs to inputs Some of them are useful AND, NAND, NOR, XOR, … Some are not useful: Output is always 1 Output is always 0

Logic Functions Logical functions can be expressed in several ways: Truth table Logical expressions Graphical form Example: Majority function Output is one whenever majority of inputs is 1 We use 3-input majority function

Logic Functions (cont.) 3-input majority function A B C F 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 Logical expression form F = A B + B C + A C

Logical Equivalence All three circuits implement F = A B function

Logical Equivalence Derivation of logical expression from a circuit Trace from the input to output Write down intermediate logical expressions along the path

Logical Equivalence (cont.) Proving logical equivalence: Truth table method A B F1 = A B F3 = (A + B) (A + B) (A + B) 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1

Standard Forms for Boolean Expressions Sum-of-Products (SOP) Derived from the Truth table for a function by considering those rows for which F = 1. The logical sum (OR) of product (AND) terms. Realized using an AND-OR circuit. Product-of-Sums (POS) Derived from the Truth table for a function by considering those rows for which F = 0. The logical product (AND) of sum (OR) terms. Realized using an OR-AND circuit.

1

Minterms

Sum-of-Products Any function F can be represented by a sum of minterms, where each minterm is ANDed with the corresponding value of the output for F. F = S (mi . fi) where mi is a minterm and fi is the corresponding functional output Only the minterms for which fi = 1 appear in the expression for function F. F = S (mi) = S m(i) Denotes the logical sum operation shorthand notation

Sum-of-Products Sum of minterms are a.k.a. Canonical Sum-of-Products Synthesis process Determine the Canonical Sum-of-Products Use Boolean Algebra (and K-maps) to find an optimal, functionally equivalent, expression.

2

Maxterms

Product-of-Sums Any function F can be represented by a product of Maxterms, where each Maxterm is ANDed with the complement of the corresponding value of the output for F. F = P (Mi . f 'i) where Mi is a Maxterm and f 'i is the complement of the corresponding functional output Only the Maxterms for which fi = 0 appear in the expression for function F. F = P (Mi) = P M(i) Denotes the logical product operation shorthand notation

When the o/p is Zero When the o/p is 1

Product-of-Sums The Canonical Product-of-Sums for function F is the Product-of-Sums expression in which each sum term is a Maxterm. Synthesis process Determine the Canonical Product-of-Sums Use Boolean Algebra (and K-maps) to find an optimal, functionally equivalent, expression.