ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)

Slides:



Advertisements
Similar presentations
Chapter 2 Logic Circuits.
Advertisements

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
ECE 331 – Digital System Design
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
ECE 331 – Digital System Design Basic Logic Functions, Truth Tables, and Standard Logic Gates.
ECE 301 – Digital Electronics Boolean Algebra and Standard Forms of Boolean Expressions (Lecture #4) The slides included herein were taken from the materials.
CSCE 211: Digital Logic Design
Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.
Chapter 2: Boolean Algebra and Logic Functions
طراحی مدارهای منطقی نیمسال دوم دانشگاه آزاد اسلامی واحد پرند.
CHAPTER 2 Boolean Algebra
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Boolean Algebra and Digital Circuits
ECE 331 – Digital System Design
ECE 331 – Digital System Design
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Why? What’s Boolean algebra used for? –“The purpose of Boolean algebra is to facilitate the analysis and design of digital circuits.” Express a truth table.
LOGIC GATES & BOOLEAN ALGEBRA
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
6 - 1 Simplification Theorems Useful for simplification of expressions & therefore simplification of the logic network which results. XY + XY' = ( X +
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
CONSENSUS THEOREM Choopan Rattanapoka.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
Module –I Boolean Algebra Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
1 Ch. 4 Boolean Algebra and Logic Simplification Boolean Operations and Expressions Laws and Rules of Boolean Algebra Boolean Analysis of Logic Circuits.
Karnaugh Map (K-Map) By Dr. M. Khamis Mrs. Dua’a Al Sinari.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 4: Cost of Logic Circuits and Karnaugh Maps José Nelson Amaral.
Review. Boolean Algebra.
ECE 331 – Digital System Design Basic Logic Operations, Boolean Expressions and Truth Tables, and Standard Logic Gates The slides included herein were.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
1 CS 352 Introduction to Logic Design Lecture 2 Ahmed Ezzat Boolean Algebra and Its Applications Ch-3 + Ch-4.
ECE 331 – Digital System Design
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
ECE 301 – Digital Electronics
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Logic Gates and Boolean Algebra
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 1 : INTRODUCTION
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Boolean Algebra.
Boolean Algebra – Part 1 ECEn 224.
Boolean Expressions Lecture No. 10.
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
ECE 331 – Digital System Design
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Boolean Algebra.
Boolean Algebra.
BASIC & COMBINATIONAL LOGIC CIRCUIT
Combinatorial Logic Circuit
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Boolean Algebra.
CHAPTER 3 BOOLEAN ALGEBRA (continued)
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Basic Logic Operations
Laws & Rules of Boolean Algebra
ECE Digital Electronics
Presentation transcript:

ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)

ECE Digital Electronics2 Basic Logic Operations

ECE Digital Electronics3 Basic Logic Operations AND OR NOT (Complement) Order of Precedence 1. NOT 2. AND 3. OR  can be modified using parenthesis

ECE Digital Electronics4 Basic Logic Operations

ECE Digital Electronics5 Basic Logic Operations

ECE Digital Electronics6 Additional Logic Operations NAND  F = (A. B)' NOR  F = (A + B)' XOR  Output is 1 iff either input is 1, but not both. XNOR (aka. Equivalence)  Output is 1 iff both inputs are 1 or both inputs are 0.

ECE Digital Electronics7 Additional Logic Operations NAND NOR XOR XNOR denotes inversion

ECE Digital Electronics8 Exercise: Derive the Truth table for each of the following logic operations: 1. 2-input NAND 2. 2-input NOR Additional Logic Operations

ECE Digital Electronics9 Exercise: Derive the Truth table for each of the following logic operations: 1. 2-input XOR 2. 2-input XNOR Additional Logic Operations

ECE Digital Electronics10 Truth Tables

ECE Digital Electronics11 Truth Tables Used to describe the functional behavior of a Boolean expression and/or Logic circuit. Each row in the truth table represents a unique combination of the input variables.  For n input variables, there are 2 n rows. The output of the logic function is defined for each row. Each row is assigned a numerical value, with the rows listed in ascending order. The order of the input variables defined in the logic function is important.

ECE Digital Electronics12 3-input Truth Table F(A,B,C) = Boolean expression

ECE Digital Electronics13 4-input Truth Table F(A,B,C,D) = Boolean expression

ECE Digital Electronics14 Boolean Expressions

ECE Digital Electronics15 Boolean Expressions Boolean expressions are composed of Literals – variables and their complements Logical operations Examples F = A.B'.C + A'.B.C' + A.B.C + A'.B'.C' F = (A+B+C').(A'+B'+C).(A+B+C) F = A.B'.C' + A.(B.C' + B'.C) literals logic operations

ECE Digital Electronics16 Boolean Expressions Boolean expressions are realized using a network (or combination) of logic gates.  Each logic gate implements one of the logic operations in the Boolean expression  Each input to a logic gate represents one of the literals in the Boolean expression f A B logic operations literals

ECE Digital Electronics17 Boolean Expressions Boolean expressions are evaluated by Substituting a 0 or 1 for each literal Calculating the logical value of the expression A Truth Table specifies the value of the Boolean expression for every combination of the variables in the Boolean expression. For an n-variable Boolean expression, the truth table has 2 n rows (one for each combination).

ECE Digital Electronics18 Boolean Expressions Example: Evaluate the following Boolean expression, for all combination of inputs, using a Truth table. F(A,B,C) = A'.B'.C + A.B'.C' + A.C

ECE Digital Electronics19 Boolean Expressions Two Boolean expressions are equivalent if they have the same value for each combination of the variables in the Boolean expression.  F 1 = (A + B)'  F 2 = A'.B' How do you prove that two Boolean expressions are equivalent?  Truth table  Boolean Algebra

ECE Digital Electronics20 Boolean Expressions Example: Using a Truth table, prove that the following two Boolean expressions are equivalent. F 1 = (A + B)' F 2 = A'.B'

ECE Digital Electronics21 Boolean Algebra

ECE Digital Electronics22 Boolean Algebra George Boole developed an algebraic description for processes involving logical thought and reasoning.  Became known as Boolean Algebra Claude Shannon later demonstrated that Boolean Algebra could be used to describe switching circuits.  Switching circuits are circuits built from devices that switch between two states (e.g. 0 and 1).  Switching Algebra is a special case of Boolean Algebra in which all variables take on just two distinct values Boolean Algebra is a powerful tool for analyzing and designing logic circuits.

ECE Digital Electronics23 Basic Laws and Theorems

ECE Digital Electronics24 Idempotence A + A = A F = ABC + ABC' + ABC F = ABC + ABC' Note: terms can also be added using this theorem A. A = A G = (A' + B + C').(A + B' + C).(A + B' + C) G = (A' + B + C') + (A + B' + C) Note: terms can also be added using this theorem

ECE Digital Electronics25 Complement A + A' = 1 F = ABC'D + ABCD F = ABD.(C' + C) F = ABD A. A' = 0 G = (A + B + C + D).(A + B' + C + D) G = (A + C + D) + (B. B') G = A + C + D

ECE Digital Electronics26 Distributive Law A.(B + C) = AB + AC F = WX.(Y + Z) F = WXY + WXZ G = B'.(AC + AD) G = AB'C + AB'D H = A.(W'X + WX' + YZ) H = AW'X + AWX' + AYZ A + (B.C) = (A + B).(A + C) F = WX + (Y.Z) F = (WX + Y).(WX + Z) G = B' + (A.C.D) G = (B' + A).(B' + C).(B' + D) H = A + ( (W'X).(WX') ) H = (A + W'X).(A + WX')

ECE Digital Electronics27 Absorption (Covering) A + AB = A F = A'BC + A' F = A' G = XYZ + XY'Z + X'Y'Z' + XZ G = XYZ + XZ + X'Y'Z' G = XZ + X'Y'Z' H = D + DE + DEF H = D A.(A + B) = A F = A'.(A' + BC) F = A' G = XZ.(XZ + Y + Y') G = XZ.(XZ + Y) G = XZ H = D.(D + E + EF) H = D

ECE Digital Electronics28 Simplification A + A'B = A + B F = (XY + Z).(Y'W + Z'V') + (XY + Z)' F = Y'W + Z'V' + (XY + Z)' A.(A' + B) = A. B G = (X + Y).( (X + Y)' + (WZ) ) G = (X + Y). WZ

ECE Digital Electronics29 Logic Adjacency (Combining) A.B + A.B' = A F = (X + Y).(W'X'Z) + (X + Y).(W'X'Z)' F = (X + Y) (A + B).(A + B') = A G = (XY + X'Z').(XY + (X'Z')' ) G = XY

ECE Digital Electronics30 Boolean Algebra Example: Using Boolean Algebra, simplify the following Boolean expression. F(A,B,C) = A'.B.C + A.B'.C + A.B.C

ECE Digital Electronics31 Boolean Algebra Example: Using Boolean Algebra, simplify the following Boolean expression. F(A,B,C) = (A'+B'+C').(A'+B+C').(A+B'+C')

ECE Digital Electronics32 DeMorgan's Laws Can be stated as follows:  The complement of the product (AND) is the sum (OR) of the complements. (X.Y)' = X' + Y'  The complement of the sum (OR) is the product (AND) of the complements. (X + Y)' = X'. Y' Easily generalized to n variables. Can be proven using a Truth table

ECE Digital Electronics33 Proving DeMorgan's Law (X. Y)' = X' + Y'

ECE Digital Electronics34 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 += (a) x 1 x 2 + x 1 x 2 = (b) DeMorgan's Theorems

ECE Digital Electronics35 Importance of Boolean Algebra Boolean Algebra is used to simplify Boolean expressions. – Through application of the Laws and Theorems discussed Simpler expressions lead to simpler circuit realization, which, generally, reduces cost, area requirements, and power consumption. The objective of the digital circuit designer is to design and realize optimal digital circuits.

ECE Digital Electronics36 Algebraic Simplification Justification for simplifying Boolean expressions: – Reduces the cost associated with realizing the expression using logic gates. – Reduces the area (i.e. silicon) required to fabricate the switching function. – Reduces the power consumption of the circuit. In general, there is no easy way to determine when a Boolean expression has been simplified to a minimum number of terms or minimum number of literals. – No unique solution

ECE Digital Electronics37 Algebraic Simplification Boolean (or Switching) expressions can be simplified using the following methods: 1.Multiplying out the expression 2.Factoring the expression 3.Combining terms of the expression 4.Eliminating terms in the expression 5.Eliminating literals in the expression 6.Adding redundant terms to the expression As we shall see, there are other tools that can be used to simplify Boolean Expressions. Namely, Karnaugh Maps.