Chapter 2 Boolean Algebra and Logic Gates

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

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

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

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2. Boolean Algebra and Logic Gates

EC-121 Digital Logic Design

Boolean Algebra and Logic Gates

Chapter 2: Boolean Algebra and Logic Gates

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

MC9211 Computer Organization

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 Combinational Logic Circuits

Logic Design. Chapter 2: Introduction to Logic Circuits

CHAPTER III BOOLEAN ALGEBRA

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

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

Chap 2. Combinational Logic Circuits

Week-I. Combinational Logic & Circuits

Digital Design. Digital Design

Digital Circuit And Logic Design I. Lecture 3

Chapter 2: Switching Algebra and Logic Circuits

CHAPTER III BOOLEAN ALGEBRA

Combinational Logic Design Principles

WEEK 2.1 BOOLEAN ALGEBRA

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

ENG2410 Digital Design Combinational Logic Circuits

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

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

Chapter 2 Combinational Logic Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits

Combinatorial Logic Design Principles

CHAPTER 2 BOOLEAN ALGEBRA

Chapter-2 BOOLEAN ALGEBRA

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

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

ELCT201: DIGITAL LOGIC DESIGN

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Chapter 2 : Boolean Algebra and Logic Gates

Digital Logic Design. Malik Najmus Siraj

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

Number System conversions

Chapter 2 Boolean Algebra and Logic Gates

Standard & Canonical Forms

Unit 2 Boolean Algebra

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

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

Gate-Level Minimization

211: Computer Architecture Summer 2016

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

Logic Gate Level. Part 2

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

Signals and Systems Digital Logic System

This form sometimes used in logic circuit, example:

Chapter 9 Asynchronous Sequential Logic

Chapter 2 Combinational Logic Circuits

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

Combinational Logic. Review of Combinational Logic 1

CS 226: Digital Logic Design

Unit 2 Boolean Algebra

Review for Test 1 : Ch1 5

Boolean Algebra and Logic Gates

Binary Logic and Gates

Computer Organization I

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

Gray Code. ASCII Character Code. To convert the number from binary to Gray code the relations must be known. 1 1 = = = = 0

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

Combinational Logic Fundamentals

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

1. Name the person who developed Boolean algebra

Circuits & Boolean algebra.

Chapter 2. Digital Logic Basics

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

Digital Logic Design. Combinational Logic

Lecture 2 Review on Digital Logic (Part 1)

Boolean Algebra CHAPTER 15

Unit 2 Session - 6 Combinational Logic Circuits

Binary logic consists of binary variables and logical operations. The variables are

Standard Expression Forms

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

Boolean Algebra, Gates and Circuits

EECS Variable Logic Functions

University of Technology

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

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

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

CS61c: Representations of Combinational Logic Circuits

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

BOOLEAN ALGEBRA TRUTH TABLE

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

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

Karnaugh Maps Objectives

Midterm1 Review. Jan 24 Armita

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

CPE100: Digital Logic Design I

Contents. Chapter 2 Digital Circuits Page 1 of 30

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

Transcription:

CSA051 - Digital Systems 數位系統導論 Chapter 2 Boolean Algebra and Logic Gates 吳俊興國立高雄大學資訊工程學系

Chapter 2. Boolean Algebra and Logic Gates 2-1 Basic Definitions 2-2 Axiomatic Definition of Boolean Algebra 2-3 Basic Theorems and Properties 2-4 Boolean Functions 2-5 Canonical and Standard Forms 2-6 Other Logic Operations 2-7 Digital Logic Gates 2-8 Integrated Circuits 2

2-1/2-2 Basic and Axiomatic Definitions Boolean Algebra (formulated by E.V. Huntington, 1904) A set of elements B={0,1} and two binary operators + and Huntington postulates 1. Closure w.r.t. the operator + ( ) x, y B x+y B;x, y B x y B 2. Associative w.r.t. + ( ) (x+y)+z = x + (y + z); 3. Commutative w.r.t. + ( ) x+y = y+x; x y = y x (x y) z = x (y z) 4. An identity element w.r.t. + ( ) 0+x = x+0 = x; 1 x = x 1= x 5. x B, x' B (complement of x) x+x'=1; x x'=0 6. is distributive over + : x (y+z)=(x y)+(x z) + is distributive over : x+ (y z)=(x+ y) (x+ z) Duality principle: remains valid if the operators and identity elements are interchanged 3

Two-valued Boolean Algebra = AND + = OR = NOT Distributive law: x (y+z)=(x y)+(x z) 4

2-3 Basic Theorems and Properties Operator Precedence 1. parentheses 2. NOT 3. AND 4. OR 5

Basic Theorems 6

7

Truth Table A table of all possible combinations of the variables showing the relation between the variable values and the result of the operation Theorem 6(a) Absorption Theorem 5. DeMorgan 8

2-4 Boolean Functions Logic Circuit Boolean Function Boolean Functions F 1 = x + (y z) F 2 = x y z + x yz + xy 9

Boolean Function F2 F2 = x y z + x yz + xy 10

Algebraic Manipulation - Simplification 11

DeMorgan s Theorem 2-variable DeMorgan s Theorem (x + y) = x y and (xy) = x + y 3-variable DeMorgan s Theorem Generalized DeMorgan s Theorem 12

Complement of a Function Complement of a variable x is x (0 1 and 1 0) The complement of a function F is F and is obtained from an interchange of 0 s for 1 s and 1 s for 0 s in the value of F The dual of a function is obtained from the interchange of AND and OR operators and 1 s and 0 s Finding the complement of a function F Applying DeMorgan s theorem as many times as necessary complementing each literal of the dual of F 13

14

2-5 Canonical and Standard Forms Minterms and Maxterms Expressing combinations of 0 s and 1 s with binary variables (normal form x or complement form x ) Logic circuit Boolean function Truth table Any Boolean function can be expressed as a sum of minterms Any Boolean function can be expressed as a product of maxterms Canonical and Standard Forms 15

Minterms and Maxterms Minterm (or standard product): = n variables combined with AND n variables can be combined to form 2 n minterms two variables: x y, x y, xy, and xy A variable of a minterm is primed if the corresponding bit of the binary number is a 0, and unprimed if a 1 Maxterm (or standard sum): = n variables combined with OR A variable of a maxterm is unprimed if the corresponding bit is a 0 and primed if a 1 001 => x y z m j = M j 100 => xy z 111 => xyz 16

Expressing Truth Table in Boolean Function Any Boolean function can be expressed as a sum of minterms or a product of maxterms (either 0 or 1 for each term) said to be in a canonical form n variables 2 n minterms 2 2n possible functions (x+y +z ) 17

Expressing Boolean Function in Sum of Minterms (Method 1 - Supplementing) 18

Expressing Boolean Function in Sum of Minterms (Method 2 Truth Table) F(A, B, C) = Σ(1, 4, 5, 6, 7) = Π(0, 2, 3) F (A, B, C) = Σ(0, 2, 3) = Π(1, 4, 5, 6, 7) 19

Expressing Boolean Function in Product of Maxterms 20

Conversion between Canonical Forms Canonical conversion procedure Consider: F(A, B, C) = Σ(1, 4, 5, 6, 7) F : Complement of F = F (A, B, C) = Σ(0, 2, 3) = m 0 + m 2 + m 3 Compute complement of F by DeMorgan s Theorem F = (F ) = (m 0 + m 2 + m 3 ) = (m 0 m 2 m 3 ) = m 0 m 2 m 3 = M 0 M 2 M 3 = Π(0, 2, 3) Summary m j = M j Conversion between product of maxterms and sum of minterms Σ(1, 4, 5, 6, 7) = Π(0, 2, 3) Shown by truth table (Table 2-5) 21

Example Two Canonical Forms of Boolean Algebra from Truth Table Boolean expression: F(x, y, z) = xy + x z Deriving the truth table Expressing in canonical forms F(x, y, z) = Σ(1, 3, 6, 7) = Π(0, 2, 4, 5) 22

Standard Forms Canonical forms: each minterm or maxterm must contain all the variables Standard forms: the terms that form the function may contain one, two, or any number of literals (variables) Two types of standard forms (2-level) sum of products F 1 = y + xy + x yz product of sums F 2 = x(y + z)(x + y + z ) Canonical forms Standard forms Sum of minterms, Product of maxterms Sum of products, Product of sums 23

Standard Form and Logic Circuit F 1 = y + xy + x yz F 2 = x(y + z)(x + y + z ) 24

Nonstandard Form and Logic Circuit Nonstandard form: F 3 = AB + C(D+E) Standard form: F 3 = AB + CD + CE A two-level implementation is preferred: produces the least amount of delay through the gates when the signal propagates from the inputs to the output 25

2-6 Other Logic Operations There are 2 2^n functions for n binary variables For n=2 there are 16 possible functions AND and OR operators are two of them: x y and x+y Subdivided into three categories: 26

Truth Tables and Boolean Expressions for the 16 Functions of Two Variables 27

2-7 Digital Logic Gates Figure 2-5 Digital Logic Gates 1. Two are equal to a constant 2. Four are repeated twice 3. Two, Inhibition and implication, are impractical The gates can be extended to have more than two inputs except for the inverter and buffer 28

Multiple-Inputs NAND and NOR functions are communicative but not associative Define multiple NOR (or NAND) gate as a complemented OR (or AND) gate (Section 3-6) XOR and equivalence gates are both communicative and associative uncommon, usually constructed with other gates XOR is an odd function (Section 3-8) 29

30

2-8 Integrated Circuits Digital ICs are often categorized according to their circuit complexity as measured by the number of logic gates in a single package Small-scale integration (SSI) the inputs and outputs of the gates are connected directly to the pins in the package usually fewer than 10 gates, limited by the number of pins available Medium-scale integration (MSI) 10 to 1,000 gates in a package usually perform specific elementary digital operations Large-scale integration (LSI) Thousands of gates Include digital systems such as processors, memory chips, and programmable logic devices Very large-scale integration (VLSI) Hundred of thousands of gates 31

Summary Chapter 2 Boolean Algebra and Logic Gates 2-1 Basic Definitions 2-2 Axiomatic Definition of Boolean Algebra 2-3 Basic Theorems and Properties 2-4 Boolean Functions 2-5 Canonical and Standard Forms 2-6 Other Logic Operations 2-7 Digital Logic Gates 2-8 Integrated Circuits 32