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

CS 226: Digital Logic Design

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

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

CprE 281: Digital Logic

Administrative Notes. Chapter 2 <9>

Experiment 7: Magnitude comparators

211: Computer Architecture Summer 2016

Combinational Logic Design Principles

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

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

Floating Point Representation and Digital Logic. Lecture 11 CS301

CHAPTER1: Digital Logic Circuits Combination Circuits

Boolean Algebra and Logic Simplification

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

Unit 2 Session - 6 Combinational Logic Circuits

CPE100: Digital Logic Design I

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

This form sometimes used in logic circuit, example:

Introduction to Computer Engineering ECE 203

Chapter 2: Switching Algebra and Logic Circuits

Combinatorial Logic Design Principles

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

Lecture 2 Review on Digital Logic (Part 1)

Chapter 2 Combinational Logic Circuits

Logic Design. Chapter 2: Introduction to Logic Circuits

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

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

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

CprE 281: Digital Logic

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

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

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Digital Circuit And Logic Design I. Lecture 4

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

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

Standard Expression Forms

Digital Circuit And Logic Design I. Lecture 3

Chapter 4 Optimized Implementation of Logic Functions

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

Slides for Lecture 10

Combinational Logic Fundamentals

ECE 2300 Digital Logic & Computer Organization

Combinational Logic. Review of Combinational Logic 1

Chapter 2 Combinational Logic Circuits

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

EECS Variable Logic Functions

COMPUTER ENGINEERING PROGRAM

Cover Sheet for Lab Experiment #3

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

EEE130 Digital Electronics I Lecture #4

Karnaugh Maps (K-Maps)

Slides for Lecture 19

ELEC Digital Logic Circuits Fall 2014 Switching Algebra (Chapter 2)

CPE100: Digital Logic Design I

Goals for Lecture. Binary Logic and Gates (MK 2.1) Binary Variables. Notation Examples. Logical Operations

University of Toronto Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering Midterm Examination

WEEK 2.1 BOOLEAN ALGEBRA

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

Chapter 3 Combinational Logic Design

Chapter 2 Boolean Algebra and Logic Gates

Logic Design Combinational Circuits. Digital Computer Design

MC9211 Computer Organization

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

Circuits & Boolean algebra.

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

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

Simplifying Logic Circuits with Karnaugh Maps

Number System conversions

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

ENGR 303 Introduction to Logic Design Lecture 3. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Combinational Logic. By : Ali Mustafa

ENG2410 Digital Design Combinational Logic Circuits

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

Chapter 2 Boolean Algebra and Logic Gates

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

NAND, NOR and XOR functions properties

CMSC 313 Lecture 16 Announcement: no office hours today. Good-bye Assembly Language Programming Overview of second half on Digital Logic DigSim Demo

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Chapter 7 Logic Circuits

Combinational Logic Circuits Part II -Theoretical Foundations

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

ELCT201: DIGITAL LOGIC DESIGN

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Logic Design I (17.341) Fall Lecture Outline

BOOLEAN ALGEBRA CLASS XII. Presented By : Dinesh Patel PGT CS KV IIT Powai

Chapter 2 Combinational Logic Circuits

Transcription:

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

Design Examples CprE 281: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev

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 Also, please Staple your pages

Administrative Stuff TA Office Hours: 11:00am-1:00pm on Wednesdays (Jinyuan Jia) Location: TLA (Coover Hall - first floor) 9:50am-11:50am on Thursday (Siyuan Lu) Location: TLA (Coover Hall - first floor)

Administrative Stuff Homework Solutions will be posted on BlackBoard

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 You can build any circuit using only these three gates [ Figure 2.8 from the textbook ]

(a) Dual-inline package V DD Gnd (b) Structure of 7404 chip Figure B.21. A 7400-series chip.

V DD 7404 7408 7432 x 1 x 2 x 3 Figure B.22. An implementation of f = x 1 x 2 + x 2 x 3. f

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 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 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? They can be implemented with fewer transistors. (more about this later)

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!

Implications Any Boolean function can be implemented with only NAND gates! The same is also true for NOR gates!

Another Synthesis Example

Truth table for a three-way light control [ Figure 2.31 from the textbook ]

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

Let s Derive the SOP form

Let s Derive the SOP form

Sum-of-products realization f x 1 x 2 x 3 [ Figure 2.32a from the textbook ]

Let s Derive the POS form [ Figure 2.31 from the textbook ]

Let s Derive the POS form

Product-of-sums realization x 3 x 2 x 1 f [ Figure 2.32b from the textbook ]

Multiplexers

2-1 Multiplexer (Definition) Has two inputs: x 1 and x 2 Also has another input line s If s=0, then the output is equal to x 1 If s=1, then the output is equal to x 2

Graphical Symbol for a 2-1 Multiplexer s x 1 x 2 0 1 f [ Figure 2.33c from the textbook ]

Analogy: Railroad Switch http://en.wikipedia.org/wiki/railroad_switch]

Analogy: Railroad Switch x 1 x 2 select f http://en.wikipedia.org/wiki/railroad_switch]

Analogy: Railroad Switch x 1 x 2 select f This is not a perfect analogy because the trains can go in either direction, while the multiplexer would only allow them to go from top to bottom. http://en.wikipedia.org/wiki/railroad_switch]

Truth Table for a 2-1 Multiplexer [ Figure 2.33a from the textbook ]

Let s Derive the SOP form

Let s Derive the SOP form

Let s Derive the SOP form Where should we put the negation signs? s x 1 x 2 s x 1 x 2 s x 1 x 2 s x 1 x 2

Let s Derive the SOP form s x 1 x 2 s x 1 x 2 s x 1 x 2 s x 1 x 2

Let s Derive the SOP form s x 1 x 2 s x 1 x 2 s x 1 x 2 s x 1 x 2 f (s, x 1, x 2 ) = s x 1 x 2 + s x 1 x 2 + s x 1 x 2 + s x 1 x 2

Let s simplify this expression f (s, x 1, x 2 ) = s x 1 x 2 + s x 1 x 2 + s x 1 x 2 + s x 1 x 2

Let s simplify this expression f (s, x 1, x 2 ) = s x 1 x 2 + s x 1 x 2 + s x 1 x 2 + s x 1 x 2 f (s, x 1, x 2 ) = s x 1 (x 2 + x 2 ) + s (x 1 +x 1 )x 2

Let s simplify this expression f (s, x 1, x 2 ) = s x 1 x 2 + s x 1 x 2 + s x 1 x 2 + s x 1 x 2 f (s, x 1, x 2 ) = s x 1 (x 2 + x 2 ) + s (x 1 +x 1 )x 2 f (s, x 1, x 2 ) = s x 1 + s x 2

Circuit for 2-1 Multiplexer x 1 s s x 2 f x 1 x 2 0 1 f (b) Circuit (c) Graphical symbol [ Figure 2.33b-c from the textbook ]

More Compact Truth-Table Representation s x 1 x 2 f (s, x 1, x 2 ) 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 (a) Truth table s 0 1 f (s, x 1, x 2 ) x 1 x 2 [ Figure 2.33 from the textbook ]

4-1 Multiplexer (Definition) Has four inputs: w 0, w 1, w 2, w 3 Also has two select lines: s 1 and s 0 If s 1 =0 and s 0 =0, then the output f is equal to w 0 If s 1 =0 and s 0 =1, then the output f is equal to w 1 If s 1 =1 and s 0 =0, then the output f is equal to w 2 If s 1 =1 and s 0 =1, then the output f is equal to w 3

4-1 Multiplexer (Definition) Has four inputs: w 0, w 1, w 2, w 3 Also has two select lines: s 1 and s 0 If s 1 =0 and s 0 =0, then the output f is equal to w 0 If s 1 =0 and s 0 =1, then the output f is equal to w 1 If s 1 =1 and s 0 =0, then the output f is equal to w 2 If s 1 =1 and s 0 =1, then the output f is equal to w 3 We ll talk more about this when we get to chapter 4, but here is a quick preview.

Graphical Symbol and Truth Table [ Figure 4.2a-b from the textbook ]

The long-form truth table

The long-form truth table [http://www.absoluteastronomy.com/topics/multiplexer]

The long-form truth table [http://www.absoluteastronomy.com/topics/multiplexer]

The long-form truth table [http://www.absoluteastronomy.com/topics/multiplexer]

The long-form truth table [http://www.absoluteastronomy.com/topics/multiplexer]

4-1 Multiplexer (SOP circuit) [ Figure 4.2c from the textbook ]

Using three 2-to-1 multiplexers to build one 4-to-1 multiplexer s 1 s 0 w 0 w 1 0 1 0 1 f w 2 w 3 0 1 [ Figure 4.3 from the textbook ]

Analogy: Railroad Switches http://en.wikipedia.org/wiki/railroad_switch]

Analogy: Railroad Switches w 0 w 1 w 2 w 3 s 1 f http://en.wikipedia.org/wiki/railroad_switch]

Analogy: Railroad Switches w 0 w 1 w 2 w 3 s 0 these two switches are controlled together s 1 f http://en.wikipedia.org/wiki/railroad_switch]

Using three 2-to-1 multiplexers to build one 4-to-1 multiplexer

Using three 2-to-1 multiplexers to build one 4-to-1 multiplexer

Using three 2-to-1 multiplexers to build one 4-to-1 multiplexer

Using three 2-to-1 multiplexers to build one 4-to-1 multiplexer w 0 s 1 s 0 w 1 w 2 f w 3

That is different from the SOP form of the 4-1 multiplexer shown below, which uses less gates

16-1 Multiplexer s 0 s 1 w 0 w 3 w 4 s 2 s 3 w 7 f w 8 w 11 w 12 w 15 [ Figure 4.4 from the textbook ]

[http://upload.wikimedia.org/wikipedia/commons/2/26/sunsettrackscrop.jpg]

Questions?

THE END