CprE 281: Digital Logic

Similar documents
CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

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

Boolean Algebra and Logic Simplification

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

CS 226: Digital Logic Design

CprE 281: Digital Logic

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

Lecture 2 Review on Digital Logic (Part 1)

EEE130 Digital Electronics I Lecture #4

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

EGC221: Digital Logic Lab

WEEK 2.1 BOOLEAN ALGEBRA

This form sometimes used in logic circuit, example:

Logic Design. Chapter 2: Introduction to Logic Circuits

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

Introduction to Computer Engineering ECE 203

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

MC9211 Computer Organization

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Administrative Notes. Chapter 2 <9>

Gate-Level Minimization

Chapter 2 Combinational Logic Circuits

Chapter 2: Boolean Algebra and Logic Gates

Unit 2 Session - 6 Combinational Logic Circuits

Number System conversions

Chapter 2. Boolean Algebra and Logic Gates

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

CHAPTER1: Digital Logic Circuits Combination Circuits

ECE 2300 Digital Logic & Computer Organization

Floating Point Representation and Digital Logic. Lecture 11 CS301

Cover Sheet for Lab Experiment #3

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

Combinatorial Logic Design Principles

CPE100: Digital Logic Design I

Boolean Algebra and Digital Logic

CprE 281: Digital Logic

Standard Expression Forms

COS 140: Foundations of Computer Science

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Combinational Logic. Review of Combinational Logic 1

Implementation of Boolean Logic by Digital Circuits

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2: Switching Algebra and Logic Circuits

Digital Circuit And Logic Design I. Lecture 3

Combinational Logic Fundamentals

Experiment 7: Magnitude comparators

Chapter 4 Optimized Implementation of Logic Functions

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

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

CSE 20 DISCRETE MATH WINTER

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Boolean Algebra and Logic Gates

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Combinational Logic Design Principles

Chapter 7 Logic Circuits

211: Computer Architecture Summer 2016

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

1 Boolean Algebra Simplification

Circuits & Boolean algebra.

Digital Logic Design. Combinational Logic

Cs302 Quiz for MID TERM Exam Solved

Slides for Lecture 10

ENG2410 Digital Design Combinational Logic Circuits

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Chapter 2 Boolean Algebra and Logic Gates

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Digital Circuit And Logic Design I. Lecture 4

Combinational Logic Circuits Part II -Theoretical Foundations

Logic Gate Level. Part 2

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

WEEK 3.1 MORE ON KARNAUGH MAPS

Chapter 2 Combinational Logic Circuits

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

cse 311: foundations of computing Spring 2015 Lecture 3: Logic and Boolean algebra

Digital Design 2. Logic Gates and Boolean Algebra

Review: Additional Boolean operations

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

CSE140: Components and Design Techniques for Digital Systems. Introduction. Instructor: Mohsen Imani

Chapter 2 Boolean Algebra and Logic Gates

CPE100: Digital Logic Design I

Lecture 4: More Boolean Algebra

Unit 8A Computer Organization. Boolean Logic and Gates

Chapter 2 : Boolean Algebra and Logic Gates

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Homework 5. This homework is due February 29, 2016, at Noon.

Transcription:

CprE 281: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/

NAND and NOR Logic Networks CprE 281: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev

Administrative Stuff HW2 is due on Wednesday Sep 7

Administrative Stuff HW3 is out It is due on Monday Sep 12 @ 4pm. Please write clearly on the first page (in BLOCK CAPITAL letters) the following three things: Your First and Last Name Your Student ID Number Your Lab Section Letter Staple all of your pages together If any of these are missing, then you will lose 10% of your grade for that homework.

Labs Next Week If your lab is on Mondays, i,e., Section N: Mondays, 9:00-11:50 am (Coover Hall, room 1318) Section P: Mondays, 12:10-3:00 pm (Coover Hall, room 1318) Section R: Mondays, 5:10-8:00 pm (Coover Hall, room 1318) You will have 2 labs in one on September 12. That is, Lab #2 and Lab #3.

Labs Next Week If your recitation is on Mondays, please go to one of the other 9 recitations next week: Section U: Tuesday 11:00 AM - 1:50 PM (Coover Hall, room 2050) Section M: Tuesday 2:10 PM - 5:00 PM (Coover Hall, room 2050) Section J: Wednesday 8:00 AM - 10:50 AM (Coover Hall, room 2050) Section T: Wednesday 6:10 PM - 9:00 PM (Coover Hall, room 1318) Section Q: Thursday 11:00 AM - 1:50 PM (Coover Hall, room 2050) Section V: Thursday 11:00 AM - 1:50 PM (Coover Hall, room 1318) Section L: Thursday 2:10 PM - 5:00 PM (Coover Hall, room 2050) Section K: Thursday 5:10 PM - 8:00 PM (Coover Hall, room 2050) Section G: Friday 11:00 AM - 1:50 PM (Coover Hall, room 2050) This is only for next week. And only for the recitation (first hour). You won't be able to stay for the lab as the sections are full.

Quick Review

The Three Basic Logic Gates x x x 1 x x 1 x 2 2 x 1 x x 1 + x 2 2 NOT gate AND gate OR gate [ Figure 2.8 from the textbook ]

Truth Table for NOT x x x x 0 1 1 0

x 1 x x 1 x 2 2 Truth Table for AND

x 1 x x 1 + x 2 2 Truth Table for OR

DeMorgan s Theorem

Synthesize the Following Function x 1 x 2 f(x 1,x 2 ) 0 0 1 0 1 1 1 0 0 1 1 1

Split the function into 4 functions x 1 x 2 f 00 (x 1,x 2 ) f 01 (x 1,x 2 ) f 10 (x 1,x 2 ) f 11 (x 1,x 2 ) 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1

Split the function into 4 functions x 1 x 2 f 00 (x 1,x 2 ) f 01 (x 1,x 2 ) f 10 (x 1,x 2 ) f 11 (x 1,x 2 ) 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1

Write Expressions for all four x 1 x 2 f 00 (x 1,x 2 ) f 01 (x 1,x 2 ) f 10 (x 1,x 2 ) f 11 (x 1,x 2 ) 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1

Then just add them together x 1 x 2 f 00 (x 1,x 2 ) f 01 (x 1,x 2 ) f 10 (x 1,x 2 ) f 11 (x 1,x 2 ) 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1

Example 2.10 Implement the function f(x 1, x 2, x 3 ) = Σ m(2, 3, 4, 6, 7)

Minterms and Maxterms (with three variables) [ Figure 2.22 from the textbook ]

Minterms and Maxterms (with three variables)

The SOP expression is: This could be simplified as follows:

Example 2.12 Implement the function f(x 1, x 2, x 3 ) = Π M(0, 1, 5), which is equivalent to f(x 1, x 2, x 3 ) = Σ m(2, 3, 4, 6, 7)

Minterms and Maxterms (with three variables)

The POS expression is: This could be simplified as follows:

Two New Logic Gates

NAND Gate x 1 x 2 f 0 0 1 0 1 1 1 0 1 1 1 0

NOR Gate x 1 x 2 f 0 0 1 0 1 0 1 0 0 1 1 0

AND vs NAND x 1 x x 1 x 2 2 x 1 x 2 x x 1 2 x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 x 1 x 2 f 0 0 1 0 1 1 1 0 1 1 1 0

AND followed by NOT = NAND x 1 x x 1 2 x x 1 2 x 1 x x 1 2 x 2 x 2 x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 f 1 1 1 0 x 1 x 2 f 0 0 1 0 1 1 1 0 1 1 1 0

NAND followed by NOT = AND x 1 x x 1 2 x x 1 2 x 1 x x 1 2 x 2 x 2 x 1 x 2 f 0 0 1 0 1 1 1 0 1 1 1 0 f 0 0 0 1 x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1

OR vs NOR x 1 x x 1 + x 2 2 x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1 x 1 x 2 f 0 0 1 0 1 0 1 0 0 1 1 0

OR followed by NOT = NOR x x 1 1 + x 2 x 1 + x 2 x 2 x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1 f 1 0 0 0 x 1 x 2 f 0 0 1 0 1 0 1 0 0 1 1 0

NOR followed by NOT = OR x 1 x 1 + x 2 x 2 x 1 + x 2 x 1 x 1 + x 2 x 2 x 1 x 2 f 0 0 1 0 1 0 1 0 0 1 1 0 f 0 1 1 1 x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1

Why do we need two more gates?

Why do we need two more gates? They can be implemented with fewer transistors. (more about this later)

They are simpler to implement, but are they also useful?

Building a NOT Gate with NAND x x x x x 0 1 x 1 0 x x f 0 0 1 0 1 1 1 0 1 1 1 0

Building a NOT Gate with NAND x x x x x 0 1 x 1 0 x x f 0 0 1 0 1 1 1 0 1 1 1 0 impossible combinations

Building a NOT Gate with NAND x x x x x 0 1 x 1 0 x x f 0 0 1 0 1 1 1 0 1 1 1 0 impossible combinations Thus, the two truth tables are equal!

Building an AND gate with NAND gates [http://en.wikipedia.org/wiki/nand_logic]

Building an OR gate with NAND gates [http://en.wikipedia.org/wiki/nand_logic]

Implications Any Boolean function can be implemented with only NAND gates!

NOR gate with NAND gates [http://en.wikipedia.org/wiki/nand_logic]

XOR gate with NAND gates [http://en.wikipedia.org/wiki/nand_logic]

XNOR gate with NAND gates [http://en.wikipedia.org/wiki/nand_logic]

Building a NOT Gate with NOR x x x x x 0 1 x 1 0 x x f 0 0 1 0 1 0 1 0 0 1 1 0

Building a NOT Gate with NOR x x x x x 0 1 x 1 0 x x f 0 0 1 0 1 0 1 0 0 1 1 0 impossible combinations

Building a NOT Gate with NOR x x x x x 0 1 x 1 0 x x f 0 0 1 0 1 0 1 0 0 1 1 0 impossible combinations Thus, the two truth tables are equal!

Building an OR gate with NOR gates [http://en.wikipedia.org/wiki/nor_logic]

Let s build an AND gate with NOR gates

Let s build an AND gate with NOR gates [http://en.wikipedia.org/wiki/nor_logic]

Implications Any Boolean function can be implemented with only NOR gates!

NAND gate with NOR gates [http://en.wikipedia.org/wiki/nor_logic]

XOR gate with NOR gates [http://en.wikipedia.org/wiki/nor_logic]

XNOR gate with NOR gates [http://en.wikipedia.org/wiki/nor_logic]

The following examples came from this book

[ Platt 2009 ]

[ Platt 2009 ]

[ Platt 2009 ]

[ Platt 2009 ]

[ Platt 2009 ]

[ Platt 2009 ]

DeMorgan s theorem in terms of logic gates x 1 x 2 x 1 x 2 x 1 x 2 (a) x 1 x 2 = x 1 + x 2

DeMorgan s theorem in terms of logic gates x 1 x 2 x 1 x 2 x 1 x 2 (b) x 1 + x 2 = x 1 x 2

Function Synthesis

Using NAND gates to implement a sum-of-products x 1 x 2 x 3 x 4 x 5 x 1 x 2 x 3 x 4 x 5 x 1 x 2 x 3 x 4 x 5 [ Figure 2.27 from the textbook ]

Using NOR gates to implement a product-of sums x 1 x 2 x 1 x 2 x 3 x 4 x 5 x 3 x 4 x 5 x 1 x 2 x 3 x 4 x 5 [ Figure 2.28 from the textbook ]

Example 2.13 Implement the function f(x 1, x 2, x 3 ) = Σ m(2, 3, 4, 6, 7) using only NOR gates.

Example 2.13 Implement the function f(x 1, x 2, x 3 ) = Σ m(2, 3, 4, 6, 7) using only NOR gates. The POS expression is: f = (x 1 + x 2 ) (x 2 + x 3 )

NOR-gate realization of the function x 1 x 2 f x 3 (a) POS implementation x 1 x 2 f x 3 (b) NOR implementation [ Figure 2.29 from the textbook ]

Example 2.14 Implement the function f(x 1, x 2, x 3 ) = Σ m(2, 3, 4, 6, 7) using only NAND gates.

Example 2.14 Implement the function f(x 1, x 2, x 3 ) = Σ m(2, 3, 4, 6, 7) using only NAND gates. The SOP expression is: f = x 2 + x 1 x 3

NAND-gate realization of the function x 1 x 2 f x 3 (a) SOP implementation x 1 x 2 f x 3 (b) NAND implementation [ Figure 2.30 from the textbook ]

Questions?

THE END