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

Similar documents
Chapter 2 Boolean Algebra and Logic Gates

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

Chapter 2 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):

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

Chapter 2: Switching Algebra and Logic Circuits

Combinational Logic Design Principles

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

Week-I. Combinational Logic & Circuits

Digital Design. Digital Design

Logic Design. Chapter 2: Introduction to 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

Chap 2. Combinational Logic Circuits

Digital Circuit And Logic Design I. Lecture 3

CHAPTER III BOOLEAN ALGEBRA

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

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

CHAPTER III BOOLEAN ALGEBRA

WEEK 2.1 BOOLEAN ALGEBRA

ENG2410 Digital Design Combinational Logic Circuits

Chapter 2 : Boolean Algebra and Logic Gates

Combinatorial Logic Design Principles

Chapter 2 Combinational Logic Circuits

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:

CHAPTER1: Digital Logic Circuits Combination Circuits

CHAPTER 2 BOOLEAN ALGEBRA

Standard & Canonical Forms

ELCT201: DIGITAL LOGIC DESIGN

Chapter-2 BOOLEAN ALGEBRA

Logic Gate Level. Part 2

Digital Logic Design. Malik Najmus Siraj

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

Chapter 9 Asynchronous Sequential Logic

Number System conversions

Combinational Logic. Review of Combinational Logic 1

Chapter 2 Boolean Algebra and Logic Gates

Gate-Level Minimization

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

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Computer Organization I

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

Combinational Logic Fundamentals

Chapter 2. Digital Logic Basics

211: Computer Architecture Summer 2016

Boolean Algebra and Logic Gates

Unit 2 Boolean Algebra

Chapter 2 Combinational Logic Circuits

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

Boolean Algebra CHAPTER 15

CS 226: Digital Logic Design

Review for Test 1 : Ch1 5

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

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

Binary Logic and Gates

University of Technology

Unit 2 Boolean Algebra

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

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Signals and Systems Digital Logic System

Digital Logic Design. Combinational Logic

Circuits & Boolean algebra.

Lecture 2 Review on Digital Logic (Part 1)

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

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

EECS Variable Logic Functions

1. Name the person who developed Boolean algebra

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

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

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

Unit 2 Session - 6 Combinational Logic Circuits

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

Midterm1 Review. Jan 24 Armita

Contents. Chapter 2 Digital Circuits Page 1 of 30

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

CPE100: Digital Logic Design I

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

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

Introduction to Digital Logic Missouri S&T University CPE 2210 Boolean Representations

BOOLEAN ALGEBRA TRUTH TABLE

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

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

CHAPTER 12 Boolean Algebra

This form sometimes used in logic circuit, example:

Systems I: Computer Organization and Architecture

Transcription:

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系 September 2004 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 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 = AND + = OR = NOT Distributive law: x (y+z)=(x y)+(x z)

Operator Precedence 1. parentheses 2. NOT 3. AND 4. OR 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

Logic Circuit Boolean Function Boolean Functions F 1 = x + (y z) F 2 = x y z + x yz + xy 2-variable DeMorgan s Theorem (x + y) = x y and (xy) = x + y 3-variable DeMorgan s Theorem Generalized DeMorgan s Theorem F2 = x y z + x yz + xy

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 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 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

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 Expressing Boolean Function in Sum of Minterms (Method 2 Truth Table) (x+y +z ) Expressing Boolean Function in Sum of Minterms (Method 1 - Supplementing) F(A, B, C) = Σ(1, 4, 5, 6, 7) = Π(0, 2, 3) F (A, B, C) = Σ(0, 2, 3) = Π(1, 4, 5, 6, 7) Expressing Boolean Function in Product of Maxterms

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) 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 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) F 1 = y + xy + x yz F 2 = x(y + z)(x + y + z )

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 There are 2 2n 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: 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

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) 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 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