Boolean Algebra & Logic Circuits

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
Logic Gates.
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.
Boolean Algebra and Logic Gates
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
Chapter Two Boolean Algebra and Logic Gate
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
Gate Circuits and Boolean Equations BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Boolean Algebra Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
CHAPTER 2 Boolean Algebra
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Digital Systems: Boolean Algebra and Logic Gates
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Combinational Logic 1.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
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.
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.
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.
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 
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
5 - Digital Logic with Boolean Algebra
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Department of Preparatory Year, Umm Al Qura University CSCI 240 Digital Logic.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
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.
Digital Logic. Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 2 Boolean algebra and Logic gates
Hoda Roodaki Boolean Algebra Hoda Roodaki
Department of Preparatory Year, Umm Al Qura University
Chapter 3 Notes – Part II Review Questions
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra.
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
Unit 2 Boolean Algebra.
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 1 : INTRODUCTION
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Boolean Algebra.
Princess Sumaya University
Boolean Algebra – Part 1 ECEn 224.
Lecture 2-1 Boolean Algebra
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA
Lecture 3: Boolean Algebra
Boolean Algebra.
Boolean Algebra.
Basic Logic Gates 1.
Chapter 2 Boolean Algebra and Logic Gate
COE 202: Digital Logic Design Combinational Logic Part 1
Logic Gates.
Boolean Algebra.
Boolean Algebra Introduction CSCI 240
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
COMS 361 Computer Organization
Logic Gates.
BOOLEAN ALGEBRA.
Presentation transcript:

Boolean Algebra & Logic Circuits Management Information Systems (MIS) K.S. School of Business Management Samit Tibrewala

The premise of Boolean Algebra Binary Definition

Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations + , * , ’ OR + AND * NOT ’

AND A Logic Gate: A*B Truth Table: B A B A*B 1 A B Series Circuit: A*B

OR A Logic Gate: A+B Truth Table: B A B A+B 1 A Parallel Circuit: B 1 A Parallel Circuit: B A+B

NOT Logic Gate: A A’ Truth Table: a A 1 Single-throw Double-pole (also called an inverter) A A’ Truth Table: a A 1 Single-throw Double-pole Switch: A A’

N-Input Gates Because + and * are binary operations, they can be cascaded together to OR or AND multiple inputs. A A B A+B+C ABC B C A A B A+B+C ABC B C C

Binary Digits – With Input Gates It is sometimes useful to think of the logic gates processing n-bits at a time. 1101100101 1101110111 0100110111 10001111 00001100 00111100 110001 001110

Logic Circuits and Boolean Expressions All logic circuits are equivalent to Boolean expressions and any boolean expression can be rendered as a logic circuit. A y=aB+Bc abc B C A B C y aBc y Ab y=abc+aBc+Ab

Let’s practice… x+y (x+y)y y What is the output of the following circuit? x+y (x+y)y y

Some more practice… x x y x y y Find the output of the following circuit: x x y x y y

The other way round ! x+y x x+y Prepare a circuit diagram for the following: __ x+y x x+y

The other way round ! (x+y)x x+y (x+y)x x+y Prepare a circuit diagram for the following: ______ (x+y)x x+y (x+y)x x+y

Truth Tables A mathematical table used in logic. Combines all possible values of logical variables as input, applies the function and generates and output. Number of combinations = 2n (n = # of variables)

Truth Tables – Hungry / Thirsty Problem

Some more gates NAND: “If either A or B is NOT true, then Q is true”

Some more gates NOR: “If either A or B is true, then Q is false”

Some more gates XOR: “If only one of A or B is true, then Q is true” A ⊕ B

Some more gates XNOR: “If both A and B are either true or false, then Q is true” X ʘ Y

Universality of NAND gates

Universality of NOR gates

Primary Laws of Boolean Algebra Commutative Laws Associative Laws Distributive Laws

Commutative Laws

Associative Laws

Distributive Laws

Distributive Laws – Truth Table C B+C A(B+C) AB AC AB+AC 1

DeMorgan’s Laws Very useful in digital circuit design. It allows ANDs to be exchanged by ORs by using inverters. This theorem can be extended to ANY number of variables.

DeMorgan’s Theorem – Truth Table X Y X.Y (X.Y)' X' Y' X' + Y' 1

DeMorgan’s Laws – n Variables We can extend DeMorgan’s laws to 3 variables by applying the laws for two variables. (X + Y + Z ) = (X + (Y + Z )) - by associative law = X ×(Y + Z ) - by DeMorgan’s law = X ×(Y ×Z ) - by DeMorgan’s law = X ×Y ×Z  - by associative law (X×Y×Z) = (X×(Y×Z )) - by associative law = X  + (Y×Z ) - by DeMorgan’s law = X  + (Y  + Z ) - by DeMorgan’s law = X  + Y  + Z  - by associative law Generalization to n variables. (X1 + X2 + × × × + Xn) = X 1×X 2 × × × X n (X1×X2 × × × Xn) = X 1 + X 2 + × × × + X n

The Duality Principle The dual of a Boolean expression is obtained by interchanging all ANDs and ORs, and all 0s and 1s. Example: The dual of A+(B×C )+0 is A×(B+C )×1 The duality principle states that if E1 and E2 are Boolean expressions then E1= E2  dual (E1)=dual (E2) where dual(E) is the dual of E. For example, A+(B×C )+0 = (B ×C )+D  A×(B+C )×1 = (B +C )×D

The Consensus Theorem Theorem. XY + X Z +YZ = XY + X Z Proof. XY + X Z +YZ = XY + X Z + YZ(X + X ) = XY + X Z + XYZ + X YZ = XY + XYZ + X Z + X YZ = XY(1 + Z ) + X Z(1 + Y ) = XY + X Z Example. (A + B )(A + C ) = AA + AC + AB + BC = AC + AB + BC = AC + AB Dual. (X + Y )(X  + Z )(Y + Z ) = (X + Y )(X  + Z )

Complement of a Function Method 1. Apply DeMorgan’s Theorem repeatedly. (X(Y Z  + YZ )) = X  + (Y Z  + YZ ) = X  + (Y Z )(YZ ) = X  + (Y + Z )(Y  + Z ) Method 2. Complement literals and take dual (X (Y Z  + YZ ))= dual (X (YZ + Y Z ))

Thank You Questions?