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

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

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Chapter 2 Combinational Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2 Combinational Logic Circuits

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Combinational Logic. By : Ali Mustafa

UNIVERSITI TENAGA NASIONAL. College of Information Technology

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

EGC221: Digital Logic Lab

Computer organization

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Experiment 7: Magnitude comparators

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Chapter 2. Digital Logic Basics

Fundamentals of Digital Design

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

Logic Design. Chapter 2: Introduction to Logic Circuits

Cs302 Quiz for MID TERM Exam Solved

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

MC9211 Computer Organization

Unit 8A Computer Organization. Boolean Logic and Gates

Combinational Logic. Course Instructor Mohammed Abdul kader

Digital Fundamentals

Gates and Flip-Flops

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Boolean Logic Prof. James L. Frankel Harvard University. Version of 3:20 PM 29-Aug-2017 Copyright 2017, 2016 James L. Frankel. All rights reserved.

Logic. Combinational. inputs. outputs. the result. system can

Computer Organization: Boolean Logic

Exclusive OR/ Exclusive NOR

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Chapter 3 Combinational Logic Design

CHAPTER1: Digital Logic Circuits Combination Circuits

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Circuits & Boolean algebra.

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

WEEK 3.1 MORE ON KARNAUGH MAPS

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

Projects about Quantum adder circuits Final examination June 2018 Quirk Simulator

to become literate in most common concepts and terminology of digital electronics

Systems I: Computer Organization and Architecture

Digital Logic (2) Boolean Algebra

Chap 2. Combinational Logic Circuits

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

Logic Design. Digital Logic. Goal: to become literate in most common concepts and terminology of digital electronics

Implementation of Boolean Logic by Digital Circuits

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Gate-Level Minimization

Floating Point Representation and Digital Logic. Lecture 11 CS301

9/29/2016. Task: Checking for a Lower-Case Letter. ECE 120: Introduction to Computing. Change C 5 to C 5 to Obtain L(C) from U(C)

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

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

COMBINATIONAL LOGIC FUNCTIONS

Chapter 2. Boolean Algebra and Logic Gates

Mealy & Moore Machines

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

Combinational Logic. Review of Combinational Logic 1

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

WEEK 2.1 BOOLEAN ALGEBRA

T02 Tutorial Slides for Week 6

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

EEE130 Digital Electronics I Lecture #4

Chapter 2: Switching Algebra and Logic Circuits

Lecture (02) NAND and NOR Gates

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

Switches: basic element of physical implementations

Introduction to Computer Engineering ECE 203

Logic Gates and Boolean Algebra

ELCT201: DIGITAL LOGIC DESIGN

Learning Objectives 10/7/2010. CE 411 Digital System Design. Fundamental of Logic Design. Review the basic concepts of logic circuits. Dr.

Combinational Logic Design Arithmetic Functions and Circuits

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

Introduction to Digital Logic

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

Boole Algebra and Logic Series

10/14/2009. Reading: Hambley Chapters

University of Technology

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ELCT201: DIGITAL LOGIC DESIGN

DIGITAL LOGIC CIRCUITS

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Review: Additional Boolean operations

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

Chapter 2 Boolean Algebra and Logic Gates

Lecture A: Logic Design and Gates

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Chapter 7 Logic Circuits

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Transcription:

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

Presentation Outline Additional Gates and Symbols Universality of NAND and NOR gates NAND-NAND and NOR-NOR implementations Exclusive OR (XOR) and Exclusive NOR (XNOR) gates Odd and Even functions Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 2

Why? Additional Logic Gates and Symbols Low cost implementation Useful in implementing Boolean functions + AND gate OR gate NOT gate (inverter) (+) NAND gate NOR gate Buffer ( ) XOR gate XNOR gate 3-state gate Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 3

NAND Gate The NAND gate has the following symbol and truth table NAND represents NOT AND The small bubble circle represents the invert function NAND gate = + + Another symbol for NAND x y NAND 0 0 1 0 1 1 1 0 1 1 1 0 NAND gate is implemented efficiently in CMOS technology In terms of chip area and speed Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 4

NOR Gate The NOR gate has the following symbol and truth table NOR represents NOT OR The small bubble circle represents the invert function NOR gate + = Another symbol for NOR x y NOR 0 0 1 0 1 0 1 0 0 1 1 0 NOR gate is implemented efficiently in CMOS technology In terms of chip area and speed Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 5

The NAND Gate is Universal NAND gates can implement any Boolean function NAND gates can be used as inverters, or to implement AND/OR A single-input NAND gate is an inverter NAND = ( ) = AND is equivalent to NAND with inverted output ( NAND ) = (( )) = (AND) OR is equivalent to NAND with inverted inputs ( NAND ) = ( ) = + (OR) + Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 6

The NOR Gate is also Universal NOR gates can implement any Boolean function NOR gates can be used as inverters, or to implement AND/OR A single-input NOR gate is an inverter NOR = (+) = OR is equivalent to NOR with inverted output ( NOR ) = ((+)) = + (OR) + AND is equivalent to NOR with inverted inputs ( NOR ) = ( +) = (AND) Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 7

Non-Associative NAND / NOR Operations Unlike AND, NAND operation is NOT associative ( NAND ) NAND NAND ( NAND ) ( NAND ) NAND = (()) =((+)) =+ NAND ( NAND ) = (()) =((+)) =+ Unlike OR, NOR operation is NOT associative ( NOR ) NOR NOR ( NOR ) ( NOR ) NOR = + + = + =(+) NOR ( NOR ) = + + = + =(+) Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 8

Multiple-Input NAND / NOR Gates NAND/NOR gates can have multiple inputs, similar to AND/OR gates 2-input NAND gate 3-input NAND gate 4-input NAND gate 2-input NOR gate + ++ 3-input NOR gate +++ 4-input NOR gate Note: a 3-input NAND is a single gate, NOT a combination of two 2-input gates. The same can be said about other multiple-input NAND/NOR gates. Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 9

NAND NAND Implementation Consider the following sum-of-products expression: =+ A 2-level AND-OR circuit can be converted easily to a 2-level NAND-NAND implementation 2-Level AND-OR Inserting Bubbles 2-Level NAND-NAND 3-input AND gate 3-input NAND gate Two successive bubbles on same line cancel each other Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 10

NOR NOR Implementation Consider the following product-of-sums expression: =(+)(++) A 2-level OR-AND circuit can be converted easily to a 2-level NOR-NOR implementation 2-Level OR-AND Inserting Bubbles 2-Level NOR-NOR 3-input OR gate 3-input NOR gate Two successive bubbles on same line cancel each other Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 11

Exclusive OR / Exclusive NOR Exclusive OR (XOR) is an important Boolean operation used extensively in logic circuits Exclusive NOR (XNOR) is the complement of XOR x y XOR 0 0 0 0 1 1 1 0 1 1 1 0 x y XNOR 0 0 1 0 1 0 1 0 0 1 1 1 XNOR is also known as equivalence ( ) XOR gate XNOR gate Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 12

XOR / XNOR Functions The XOR function is: =+ The XNOR function is: ( )=+ XOR and XNOR gates are complex Can be implemented as a true gate, or by Interconnecting other gate types XOR and XNOR gates do not exist for more than two inputs For 3 inputs, use two XOR gates The cost of a 3-input XOR gate is greater than the cost of two XOR gates Uses for XOR and XNOR gates include: Adders, subtractors, multipliers, counters, incrementers, decrementers Parity generators and checkers Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 13

XOR and XNOR Properties 0= =0 1= =1 = = = = XOR and XNOR are associative operations = = = ( ) = Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 14

Odd Function Output is 1 if the number of 1's is odd in the inputs Output is the XOR operation on all input variables Odd Function with 3 inputs x y z fodd 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 =(1,2,4,7) = + + + = Implementation using two XOR gates Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 15

Even Function with 4 inputs w x y z feven 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 0 0 1 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 0 1 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 Even Function Output is 1 if the number of 1's is even in the inputs (complement of odd function) Output is the XNOR operation on all inputs =(0,3,5,6,9,10,12,15) =( ) Implementation using two XOR gates and one XNOR Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 16

Parity Generators and Checkers n-bit code Sender Parity Generator (n+1)-bit code Parity Checker Error Receiver A parity bit is added to the n-bit code Produces (n+1)-bit code with an odd (or even) count of 1's Odd parity: count of 1's in the (n+1)-bit code is odd Use an even function to generate the odd parity bit Use an even function to check the (n+1)-bit code Even parity: count of 1's in the (n+1)-bit code is even Use an odd function to generate the even parity bit Use an odd function to check the (n+1)-bit code Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 17

Example of Parity Generator and Checker Design even parity generator & checker for 3-bit codes Solution: Use 3-bit odd function to generate even parity bit $. Use 4-bit odd function to check if there is an error % in even parity. Given that: = 001 then $ = 1. The sender transmits $ = 1001. If changes from 0 to 1 between generator and checker, the parity checker receives $ = 1011 and produces % = 1, indicating an error. $ Parity Generator Parity Checker $ % Additional Gates COE 202 Digital Logic Design Muhamed Mudawar slide 18