Princess Sumaya University

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Princess Sumaya University
Princess Sumaya University
ECE 238L Computer Logic Design Spring 2010
Logical Systems Synthesis.
Chapter 2 Logic Circuits.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
ECE 331 – Digital System Design
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Boolean Algebra and Logic Gates
CSCE 211: Digital Logic Design
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
CHAPTER 2 Boolean Algebra
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Combinational Logic 1.
Boolean Logic and Circuits ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
LOGIC GATES & BOOLEAN ALGEBRA
Boolean Algebra AND gate A B | AB 0 0 | | | | 1 OR gate A B | A + B 0 0 | | | | 1 NOT gate _ A | A or A’ 0 | 1 1 |
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
ece Parity Used to check for errors Can be either ODD or EVEN Left most bit used as the indicator For EVEN, insert a 0 or a 1 so as to make the.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
Basic Laws, theorems, and postulates of Boolean Algebra
CHAPTER 2 Boolean algebra and Logic gates
Digital Logic Circuits, Digital Component and Data Representation Course: BCA-2 nd Sem Subject: Computer Organization And Architecture Unit-1 1.
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
CS2100 Computer Organisation
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
ECE 2110: Introduction to Digital Systems
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra.
Boolean Algebra.
Boolean Algebra.
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
BASIC & COMBINATIONAL LOGIC CIRCUIT
CSE 370 – Winter Combinational Logic - 1
Combinatorial Logic Circuit
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
COMS 361 Computer Organization
Analysis of Logic Circuits Example 1
Circuit Simplification and
Computer Architecture
Presentation transcript:

Princess Sumaya University 4241 - Digital Logic Design Chapter 2: Boolean Algebra and Logic Gates Dr. Bassam Kahhaleh

Princess Sumaya University 4241 - Digital Logic Design Basic Definitions Binary Operators AND z = x • y = x y z=1 if x=1 AND y=1 OR z = x + y z=1 if x=1 OR y=1 NOT z = x = x’ z=1 if x=0 Boolean Algebra Binary Variables: only ‘0’ and ‘1’ values Algebraic Manipulation Dr. Bassam Kahhaleh

Boolean Algebra Postulates Commutative Law x • y = y • x x + y = y + x Identity Element x • 1 = x x + 0 = x Complement x • x’ = 0 x + x’ = 1

Boolean Algebra Theorems Duality The dual of a Boolean algebraic expression is obtained by interchanging the AND and the OR operators and replacing the 1’s by 0’s and the 0’s by 1’s. x • ( y + z ) = ( x • y ) + ( x • z ) x + ( y • z ) = ( x + y ) • ( x + z ) Theorem 1 x • x = x x + x = x Theorem 2 x • 0 = 0 x + 1 = 1 Applied to a valid equation produces a valid equation

Boolean Algebra Theorems Theorem 3: Involution ( x’ )’ = x ( x ) = x Theorem 4: Associative & Distributive ( x • y ) • z = x • ( y • z ) ( x + y ) + z = x + ( y + z ) x • ( y + z ) = ( x • y ) + ( x • z ) x + ( y • z ) = ( x + y ) • ( x + z ) Theorem 5: DeMorgan ( x • y )’ = x’ + y’ ( x + y )’ = x’ • y’ ( x • y ) = x + y ( x + y ) = x • y Theorem 6: Absorption x • ( x + y ) = x x + ( x • y ) = x

DeMorgan’s Theorem

Boolean Functions Boolean Expression Truth Table Logic Circuit Example: F = x + y’ z Truth Table All possible combinations of input variables Logic Circuit x y z F 1

Algebraic Manipulation Literal: A single variable within a term that may be complemented or not. Use Boolean Algebra to simplify Boolean functions to produce simpler circuits Example: Simplify to a minimum number of literals F = x + x’ y ( 3 Literals) = x + ( x’ y ) = ( x + x’ ) ( x + y ) = ( 1 ) ( x + y ) = x + y ( 2 Literals) Distributive law (+ over •)

Complement of a Function DeMorgan’s Theorm Duality & Literal Complement

Canonical Forms Minterm Product (AND function) Contains all variables Evaluates to ‘1’ for a specific combination Example A = 0 A B C B = 0 (0) • (0) • (0) C = 0 A B C Minterm 0 0 0 m0 1 0 0 1 m1 2 0 1 0 m2 3 0 1 1 m3 4 1 0 0 m4 5 1 0 1 m5 6 1 1 0 m6 7 1 1 1 m7 1 • 1 • 1 = 1

Canonical Forms Maxterm Sum (OR function) Contains all variables Evaluates to ‘0’ for a specific combination Example A = 1 A B C B = 1 (1) + (1) + (1) C = 1 A B C Maxterm 0 0 0 M0 1 0 0 1 M1 2 0 1 0 M2 3 0 1 1 M3 4 1 0 0 M4 5 1 0 1 M5 6 1 1 0 M6 7 1 1 1 M7 0 + 0 + 0 = 0

Truth Table to Boolean Function Canonical Forms Truth Table to Boolean Function A B C F 0 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

Canonical Forms Sum of Minterms Product of Maxterms A B C F 0 0 0 1 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 F 1

Standard Forms Sum of Products (SOP)

Standard Forms Product of Sums (POS)

Two - Level Implementations Sum of Products (SOP) Product of Sums (POS)

Logic Operators AND NAND (Not AND) x y AND 1 x y NAND 1

Logic Operators OR NOR (Not OR) x y OR 1 x y NOR 1

XNOR (Exclusive-NOR) (Equivalence) Logic Operators XOR (Exclusive-OR) XNOR (Exclusive-NOR) (Equivalence) x y XOR 1 x y XNOR 1

Logic Operators NOT (Inverter) Buffer x NOT 1 x Buffer 1

Multiple Input Gates   

DeMorgan’s Theorem on Gates AND Gate F = x • y F = (x • y) F = x + y OR Gate F = x + y F = (x + y) F = x • y  Change the “Shape” and “bubble” all lines

(C'+A)*(C'+B) (C'*C')+(C'*B)+(A*C')+(A*B) (C'*(1+B))+(AC')+(AB) A'C' + ABC + AC' C'(A'+A) + ABC C' + ABC (C'+A)*(C'+B)*(C+C') since (C+C')=1 (C'+A)*(C'+B) (C'*C')+(C'*B)+(A*C')+(A*B) (C'*(1+B))+(AC')+(AB) C'+AC'+AB C'(A+1)+AB AB+C'

Homework Mano Chapter 2 2-4 2-5 2-6 2-8 2-9 2-10 2-12 2-15 2-18 2-19

Homework Mano 2-4 Reduce the following Boolean expressions to the indicated number of literals: (a) A’C’ + ABC + AC’ to three literals (b) (x’y’ + z)’ + z + xy + wz to three literals (c) A’B (D’ + C’D) + B (A + A’CD) to one literal (d) (A’ + C) (A’ + C’) (A + B + C’D) to four literals 2-5 Find the complement of F = x + yz; then show that FF’ = 0 and F + F’ = 1

Homework 2-6 Find the complement of the following expressions: (a) xy’ + x’y (b) (AB’ + C)D’ + E (c) (x + y’ + z) (x’ + z’) (x + y) 2-8 List the truth table of the function: F = xy + xy’ + y’z 2-9 Logical operations can be performed on strings of bits by considering each pair of corresponding bits separately (this is called bitwise operation). Given two 8-bit strings A = 10101101 and B = 10001110, evaluate the 8-bit result after the following logical operations: (a) AND, (b) OR, (c) XOR, (d) NOT A, (e) NOT B.

Homework 2-10 Draw the logic diagrams for the following Boolean expressions: (a) Y = A’B’ + B (A + C) (b) Y = BC + AC’ (c) Y = A + CD (d) Y = (A + B) (C’ + D) 2-12 Simplify the Boolean function T1 and T2 to a minimum number of literals. A B C T1 T2 1

Homework 2-15 Given the Boolean function F = xy’z + x’y’z + w’xy + wx’y + wxy (a) Obtain the truth table of the function. (b) Draw the logic diagram using the original Boolean expression. (c) Simplify the function to a minimum number of literals using Boolean algebra. (d) Obtain the truth table of the function from the simplified expression and show that it is the same as the one in part (a) (e) Draw the logic diagram from the simplified expression and compare the total number of gates with the diagram of part (b).

Homework 2-18 Convert the following to the other canonical form: (a) F (x, y, z) = ∑ (1, 3, 7) (b) F (A, B, C, D) = ∏ (0, 1, 2, 3, 4, 6, 12) 2-19 Convert the following expressions into sum of products and product of sums: (a) (AB + C) (B + C’D) (b) x’ + x (x + y’) (y + z’)