CHAPTER 2 Boolean Algebra

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

L14: Boolean Logic and Basic Gates
Types of Logic Circuits
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.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
طراحی مدارهای منطقی نیمسال دوم دانشگاه آزاد اسلامی واحد پرند.
Digital Systems Presented by Prof Tim Johnson
CHAPTER 2 Boolean Algebra
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Boolean Algebra and Digital Circuits
Combinational Logic 1.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
KFUPM COE 202: Digital Logic Design Combinational Logic Part 1 Courtesy of Dr. Ahmad Almulhem.
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.
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 
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
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.
CHAPTER 2 Boolean algebra and Logic gates
Fundamentals of Logic Design, 7 th editionRoth/Kinney © 2014 Cengage Learning Engineering. All Rights Reserved. 1 Boolean Algebra (continued) UNIT 3.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Boolean Algebra & Logic Gates
ECE 301 – Digital Electronics
De Morgan’s Theorem,.
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
Gate Circuits and Boolean Equations
CHAPTER 3 BOOLEAN ALGEBRA (continued)
CHAPTER 2 Boolean Algebra
CHAPTER 1 : INTRODUCTION
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Boolean Algebra – Part 1 ECEn 224.
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
TN 221: DIGITAL ELECTRONICS 1
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
INTRODUCTION TO LOGIC DESIGN Chapter 2 Boolean Algebra and Logic Gates
Boolean Algebra.
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
COE 202: Digital Logic Design Combinational Logic Part 1
CSE 370 – Winter Combinational Logic - 1
Boolean Algebra Introduction CSCI 240
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Chapter 2 Introduction to Logic Circuits
CHAPTER 3 BOOLEAN ALGEBRA (continued)
COMS 361 Computer Organization
Digital Logic Chapter-2
Introductory Concepts
BOOLEAN ALGEBRA.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
ECE 120 Midterm 2 HKN Review Session.
Boolean Algebra S.SADHISH PRABHU.
Presentation transcript:

CHAPTER 2 Boolean Algebra This chapter in the book includes: Objectives Study Guide 2.1 Introduction 2.2 Basic Operation 2.3 Boolean Expression and Truth Table 2.4 Basic Theorem 2.5 Commutative, Associative and Distributive Laws 2.6 Simplification Theorem 2.7 Multiplying Out and Factoring 2.8 DeMorgan’s Laws Problems

Objectives Topics introduced in this chapter: Understand the basic operations and laws of Boolean algebra Relate these operations and laws to AND, OR, NOT gates and switches Prove these laws using a truth table Manipulation of algebraic expression using - Multiplying out - Factoring - Simplifying - Finding the complement of an expression

2.1 Introduction Digital Circuits: being consist of transistors, diodes, resistors, hardware functional elements to process binary (0,1) data. ->Each basic circuit is called as a gate processing a logical operation(AND, OR,NOT,..). Each gate has one or more input ports and one output port (sometime with its complement). Boolean algebra: mathematical basis to specify the operations of gates. It is used to describe the inter-connections of digital gates and circuit diagrams. ->Switching algebra, two-valued Boolean algebra, or Binarly logic is a special case of Boolean algebra. It has two state values, 0 and 1.

George Boole (1858-1908)

2.1 Introduction we are assuming ‘two-valued Boolean algebra’. Boolean variable or binary variable : A, B, X, Y, … can only have one of two state values (0, 1) - representing True(1) or False (0) positive logic: 1 for High, 0 for Low negative logic: 1 for Low, 0for High *In TTL, data sheet may say, High: above 2.7 V, Low: below 0.8 V, undefined in the middle.

2.2 Basic Operations Boolean Operation, NOT: ‘ Circle indicates inversion. Gate Symbol: NOT gate, or Inverter

2.2 Basic Operations A B C = A · B 0 0 0 1 1 0 1 1 1 AND: . or nothing *Note that it is not an arithmetic but a Boolean operation. A B C = A · B 0 0 0 1 1 0 1 1 1 Truth Table *Also known as logical product. Logic Gate Symbol

2.2 Basic Operations A B C = A + B 0 0 0 1 1 0 1 1 1 OR: + Truth Table 0 0 0 1 1 0 1 1 1 Truth Table *Also known as logical summation. Gate Symbol

2.2 Basic Operations Apply to Switch AND OR

2.3 Boolean Expressions and Truth Tables Boolean Expression : basic operations to binary variables, constants (0, 1), logic operation symbols, ( ..), and/or equal sign (=). It is also used to show input to output relationship of binary variables. Priority: parentheses -> NOT -> AND -> OR Circuit of logic gates : being corresponded to each Boolean expression D=

2.3 Boolean Expressions and Truth Tables Logic Expression : Circuit of logic gates : Y= Logic Evaluation : substituting a value to each variable as A=B=C=1, D=E=0 Literal : a variable or its complement in a logic expression 10 literals, 4 terms

2-Input Circuit and Truth Table 2.3 Boolean Expressions and Truth Tables 2-Input Circuit and Truth Table Truth Table: specifies the output of the circuit for all possible combinations of input values. A B A’ F = A’ + B 0 0 0 1 1 0 1 1 1

2.3 Boolean Expressions and Truth Tables Proof using Truth Table: two expressions are equal if they have the same output values for every possible input combinations. n times n variables need rows TABLE 2.1 A B C B’ AB’ AB’ + C A + C B’ + C (A + C) (B’ + C) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 1

2.4 Basic Theorems Operations with 0, 1 Idempotent Laws Involution Laws Complementary Laws Proof Example

2.4 Basic Theorems Duality: The dual of an algebraic expression is obtained by replacing OR to AND, AND to OR, 1 to 0, and 0 to 1. If there is a valid theorem, then its dual is also a valid theorem. (* Variables are not changed and operational priority must be kept.) EX: A + B* C + 0 => A* (B+C)*1

2.5 Commutative, Associative, and Distributive Laws Some useful laws applied in the Boolean algebra. Commutative Laws: ordering of variables is not important in the definition of AND and OR operations. Associative Laws: among the three variables forming the AND or OR operation, the result is independent of which pair of variables is associated first. So, parentheses can be omitted. This requires hardware attentions, too.

Associative Laws for AND and OR Replacement to 3-input gates

2.5 Commutative, Associative, and Distributive Laws Multiple AND: Multiple OR: Distributive Laws: Valid only Boolean algebra not for ordinary algebra OR also can be distributed over AND. Proof

2.6 Simplification Theorems Useful Theorems for Simplification Proof NOTE: the others are valid as the duals, simplifying the expression results in the reduction of hardware circuits. The first two theorems are the basics for further simplification methods.

Equivalent Gate Circuits 2.6 Simplification Theorems Equivalent Gate Circuits === *Read some examples in the text.

2.7 Multiplying Out and Factoring To obtain a sum-of-products form  Multiplying out using distributive laws Sum-of-products form: sum of product terms consisting of single variables Still considered to be in sum of product form: not a single variable Not in Sum of product form: *Multiplying out and eliminating redundant terms to get s-o-p forms:

2.7 Multiplying Out and Factoring To obtain a product of sum form  all sums are the sum of single variable Product of sum form: Still considered to be in product of sum form: *These two make the hardware logic circuits as the two-level resulting in the same response times. Sum of Products: OR of AND’s Product of Sums: AND of OR’s

Circuits for SOP and POS form Sum of product form: Product of sum form:

2.8 DeMorgan’s Laws DeMorgan’s Laws: to obtain the inverse Proof X Y X’ Y’ X + Y ( X + Y )’ X’ Y’ XY ( XY )’ X’ + Y’ 0 0 0 1 1 0 1 1 1 1 1 0 0 1 0 0 1 Extension: DeMorgan’s Laws for n variables Example

expression and then complementing each individual variable. 2.8 DeMorgan’s Laws Inverse of A’B+AB’ A B A’ B A B’ F = A’B+AB’ A’ B’ A B F’ = A’B’ + AB 0 0 0 1 1 0 1 1 1 Dual: ‘dual’ is formed by replacing AND with OR, OR with AND, 0 with 1, 1 with 0 note: variables are not inverted. The complement of an expression may be found by making a dual of the entire expression and then complementing each individual variable.

MOS and CMOS MOSFET (metal-oxide-semiconductor field-effect transistor) C(Complementary) MOS General MOSFET symbol VDD = Power supply voltage, n channel: positive logic. logic 0 = 0 volt and logic 1 = VDD volt p channel: negative logic, logic 0 = 0 volt and logic 1 = -Vnn volt. VDS=negative logic 1 to gate will switch the MOSFET to the ON

MOS Inverter P611, Fig. A.2 For n channel, positive logic case.

TTL(Transistor Transistor Logic) Ref. Digital Electronics, by Uffenbeck Bipolar Transistor: Base, Emitter, Collector TR state: cut-off, active, saturation Vcc Base Collector Emitter

Transistor-Transistor-Logic: Base, Emitter, Collector off off

*

When a high voltage (>2 When a high voltage (>2.7) is applied to input, input current is allowed up to 20 uA. When a low voltage (<0.4) is applied to input, input current is allowed up to 0.4 mA.

Homework 6th Ed. 1, 2, 6, 7,12, 22, 25, 26, 29