Digital Circuit And Logic Design I. Lecture 3

Similar documents
Chapter 2: Switching Algebra and Logic Circuits

Combinational Logic Design Principles

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

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

Chapter 2 Boolean Algebra and Logic Gates

Digital Circuit And Logic Design I. Lecture 4

Chapter 2. Boolean Algebra and Logic Gates

Logic Design. Chapter 2: Introduction to Logic Circuits

CS 226: Digital Logic Design

Boolean Algebra and Logic Gates

Chapter 2: Boolean Algebra and Logic Gates

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

Combinational Logic Fundamentals

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

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

Chapter 2 Combinational Logic Circuits

CHAPTER III BOOLEAN ALGEBRA

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

CHAPTER 2 BOOLEAN ALGEBRA

CHAPTER III BOOLEAN ALGEBRA

EEE130 Digital Electronics I Lecture #4

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

Chapter 2 Combinational Logic Circuits

MC9211 Computer Organization

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Week-I. Combinational Logic & Circuits

Digital Logic Design. Combinational Logic

Contents. Chapter 2 Digital Circuits Page 1 of 30

Chapter 2 Boolean Algebra and Logic Gates

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Standard Expression Forms

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

Unit 2 Boolean Algebra

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

Unit 2 Boolean Algebra

Lecture 2 Review on Digital Logic (Part 1)

Computer Organization I

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

Combinatorial Logic Design Principles

Boolean Algebra & Logic Gates. By : Ali Mustafa

Combinational Logic. Review of Combinational Logic 1

Switches: basic element of physical implementations

CprE 281: Digital Logic

CHAPTER1: Digital Logic Circuits Combination Circuits

Chapter 2 : Boolean Algebra and Logic Gates

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

Administrative Notes. Chapter 2 <9>

CHAPTER 12 Boolean Algebra

Chapter-2 BOOLEAN ALGEBRA

Binary Logic and Gates

Boolean Algebra CHAPTER 15

Learning Objectives. Boolean Algebra. In this chapter you will learn about:

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

Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Fundamentals of Computer Systems

Number System conversions

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

Midterm1 Review. Jan 24 Armita

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

Digital Systems and Information Part II

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

Chapter 2 Boolean Algebra and Logic Gates

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2

Chapter 2 Combinational Logic Circuits

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

Computer Organization: Boolean Logic

Slides for Lecture 10

Logic Gate Level. Part 2

CS61c: Representations of Combinational Logic Circuits

ECE380 Digital Logic. Axioms of Boolean algebra

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

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

This form sometimes used in logic circuit, example:

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

WEEK 2.1 BOOLEAN ALGEBRA

Digital Logic Design. Malik Najmus Siraj

Fundamentals of Computer Systems

1. Name the person who developed Boolean algebra

ENG2410 Digital Design Combinational Logic Circuits

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

14:332:231 DIGITAL LOGIC DESIGN. Combinational Circuit Synthesis

Boolean Algebra, Gates and Circuits

Standard & Canonical Forms

Chapter 2 Boolean Algebra and Logic Gates

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

Signals and Systems Digital Logic System

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

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

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Spiral 1 / Unit 3

211: Computer Architecture Summer 2016

EC-121 Digital Logic Design

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

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

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

CPE100: Digital Logic Design I

COE 202: Digital Logic Design Combinational Logic Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

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

Transcription:

Digital Circuit And Logic Design I Lecture 3

Outline Combinational Logic Design Principles (). Introduction 2. Switching algebra 3. Combinational-circuit analysis 4. Combinational-circuit synthesis Panupong Sornkhom, 25/2 2

Combinational Logic Design Principles ()

. Introduction Logic circuits are classified into two types Combinational circuits outputs depend only on its current inputs Sequential circuits outputs depend not only on its current inputs but also on its current state. Combinational-circuit analysis Logic diagram formal description (truth table or logic expression) Combinational-circuit synthesis Formal description logic diagram Panupong Sornkhom, 25/2 4

. Introduction (cont.) Combinational-circuit design Requirements Informal description Informal description formal description Formal description logic diagram Panupong Sornkhom, 25/2 5

2. Switching algebra In 854, George Boole invented a two-value algebraic system, now called Boolean algebra In 938, Claude E. Shannon showed how to adapt Boolean algebra to analyze and describe the behavior of circuits built from relays Axioms (A) X = if X (A ) X = if X (A2) If X =, then X = (A2 ) If X =, then X = (A3) = (A3 ) + = (A4) = (A4 ) + = (A5) = = (A5 ) + = + = Panupong Sornkhom, 25/2 6

2. Switching algebra (cont.) Single-Variable Theorems (T) X+ = X (T ) X = X (Identities) (T2) X+ = (T2 ) X = (Null elements) (T3) X+X = X (T3 ) X X = X (Idempotency) (T4) (X ) = X (Involution) (T5) X+X = (T5 ) X X = (Complements) Two- and Three-Variable Theorems (T6) X+Y = Y+X (T6 ) X Y = Y X (Commutativity) (T7) (X+Y)+Z = X+(Y+Z) (T7 ) (X Y) Z = X (Y Z) (Associativity) (T8) X Y+X Z = X (Y+Z) (T8 ) (X+Y) (X+Z) = X+Y Z (Distributivity) Panupong Sornkhom, 25/2 7

2. Switching algebra (cont.) Two- and Three-Variable Theorems (cont.) (T9) X+X Y = X (T9 ) X (X+Y) = X (Covering) (T) X Y+ X Y = X (T ) (X+Y) (X+Y ) = X (Combining) (T) X Y+X Z+Y Z = X Y+X Z (T ) (X+Y) (X +Z) (Y+Z)= (X+Y) (X +Z) (Consensus) n-variable Theorems (T2) X+X+ +X = X (T2 ) X X X = X (Generalized idempotency) (T3) (X X 2 X n ) = X +X 2 + +X n (T3 ) (X +X 2 + +X n ) = X X 2 X n (DeMorgan s theorems) Panupong Sornkhom, 25/2 8

2. Switching algebra (cont.) Principle of Duality If a Boolean statement is proved true, the dual of statement is also true. The dual of expression is obtained by replacing each + in the expression by and vice versa, and replacing by and vice versa. Notice that we must preserving the existence of all parentheses, whether present or implied For example, given X Y+X Z = X (Y+Z) its dual is (X+Y) (X+Z) = X +(Y Z) Panupong Sornkhom, 25/2 9

2. Switching algebra (cont.) Standard representations of logic functions Truth table An algebraic sum of minterms, the canonical sum A minterm list using the Σ notation An algebraic product of maxterms, the canonical product A maxterm list using the Π notation Panupong Sornkhom, 25/2

Panupong Sornkhom, 25/2 2. Switching algebra (cont.) Standard representations of logic functions (cont.) 6 7 5 4 3 2 F Z Y X Row Truth table for a particular 3-variable logic function, F(X,Y,Z)

2. Switching algebra (cont.) Standard representations of logic functions (cont.) A literal is a variable or the complement of a variable. A product term is a single literal or a logical product of two or more literals. A sum-of-products expression is a logical sum of product terms A sum term is a single literal or a logical sum of two or more literals A product-of-sums expression is a logical product of sum terms A normal term is a product or sum term in which no variable appears more than once. An n-variable minterm is a normal product term with n literals. An n-variable maxterm is a normal sum term with n literals Panupong Sornkhom, 25/2 2

2. Switching algebra (cont.) Standard representations of logic functions (cont.) There is a close correspondence between the truth table and minterms and maxterms. A minterm can be defined as a product term that is in exactly one row of the truth table. A maxterm can be defined as a sum term that is in exactly one row of the truth table. Picture from Textbook DDPP Panupong Sornkhom, 25/2 3

2. Switching algebra (cont.) Standard representations of logic functions (cont.) Based on the correspondence between the truth table and minterms, we can create an algebraic representation of a logic function from its truth table The canonical sum of a logic function is a sum of the minterms corresponding to truth-table rows (input combinations) for which the function produce a output. The cannonical product of a logic function is a product of the maxterms corresponding to input combinations for which the function produces a output. Panupong Sornkhom, 25/2 4

2. Switching algebra (cont.) Standard representations of logic functions (cont.) F=Σ X,Y,Z (,3,4,6,7) =X Y Z + X Y Z+ X Y Z + X Y Z +X Y Z Panupong Sornkhom, 25/2 5

2. Switching algebra (cont.) Standard representations of logic functions (cont.) F=Π X,Y,Z (,2,5) =(X+Y+Z ) (X+Y +Z) (X +Y+Z ) Panupong Sornkhom, 25/2 6

2. Switching algebra (cont.) Standard representations of logic functions (cont.) Therefore, Σ X,Y,Z (,3,4,6,7) = Π X,Y,Z (,2,5) In fact, for any logic function F, minterm list is complement of maxterm list and vice versa Panupong Sornkhom, 25/2 7

Panupong Sornkhom, 25/2 8 3. Combinational-Circuit Analysis 7 6 5 4 3 2 F Z Y X Row Pictures from text book DDPP Exhaustive approach

3. Combinational-Circuit Analysis (cont.) Algebraic approach F = ((X+Y ) Z)+(X Y Z ) Pictures from text book DDPP Panupong Sornkhom, 25/2 9

3. Combinational-Circuit Analysis (cont.) From F = ((X+Y ) Z)+(X Y Z ) We can use theorems to transform this expression into another form F = X Z+Y Z+X Y Z (sum of product form) Or F = ((X+Y ) Z)+(X Y Z ) = ((X+Y )+X Y Z ) (Z+X Y Z ) = ((X+Y )+X ) ((X+Y )+Y) ((X+Y )+Z ) (Z+X ) (Z+Y) (Z+Z ) = (X+Y +Z ) (X +Z) (Y+Z) = (X+Y +Z ) (X +Z) (Y+Z) (product of sum form) Panupong Sornkhom, 25/2 2

4. Combinational-Circuit Synthesis Circuit description and designs Given a circuit description, we convert it to formal description From formal description, we can derive it to logic diagram For example The description of a 4-bit prime-number detector might be, Given a 4-bit input combination N = N 3 N 2 N N, this function produces a output for N =, 2, 3, 5, 7,, 3, and otherwise. A formal description (logic function) can be designed directly from the canonical sum of product expression F = Σ N3N2NN (, 2, 3, 5, 7,, 3) = N 3 N 2 N N + N 3 N 2 N N + N 3 N 2 N N + N 3 N 2 N N + N 3 N 2 N N + N 3 N 2 N N + N 3 N 2 N N Panupong Sornkhom, 25/2 2

4. Combinational-Circuit Synthesis (cont.) Canonical-sum design for 4-bit prime-number detector Picture from text book DDPP Panupong Sornkhom, 25/2 22

4. Combinational-Circuit Synthesis (cont.) Circuit manipulations Sometimes we would like to use NAND and NOR gates instead of use AND, OR, and NOT gates Because NANDs and NORs are faster than ANDs and ORs in most technologies We can translate any logic expression into an equivalent sum-ofproducts expression, such an expression may be realized directly with two-level AND-OR circuit or may be converted to two-level NAND-NAND circuit Similarly, we can translate any logic expression into an equivalent product-of-sums expression, such an expression may be realized directly with two-level OR-AND circuit or may be converted to twolevel NOR-NOR circuit Panupong Sornkhom, 25/2 23

4. Combinational-Circuit Synthesis (cont.) Pictures from text book DDPP Panupong Sornkhom, 25/2 24

4. Combinational-Circuit Synthesis (cont.) Pictures from text book DDPP Panupong Sornkhom, 25/2 25

4. Combinational-Circuit Synthesis (cont.) Pictures from text book DDPP Panupong Sornkhom, 25/2 26