BOOLEAN LOGIC. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region. Based on CBSE curriculum Class 11. Neha Tyagi, KV 5 Jaipur II Shift

Similar documents
Chapter-2 BOOLEAN ALGEBRA

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

Unit 2 Boolean Algebra

MC9211 Computer Organization

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

Boolean Algebra and Logic Gates

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

Logic Design. Chapter 2: Introduction to Logic Circuits

Chapter 2. Boolean Algebra and Logic Gates

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

Chapter 2 Combinational Logic Circuits

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

BOOLEAN ALGEBRA TRUTH TABLE

CHAPTER III BOOLEAN ALGEBRA

Boolean Algebra & Logic Gates. By : Ali Mustafa

CHAPTER III BOOLEAN ALGEBRA

Switches: basic element of physical implementations

Chapter 2: Boolean Algebra and Logic Gates

BOOLEAN ALGEBRA CLASS XII. Presented By : Dinesh Patel PGT CS KV IIT Powai

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

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

EEE130 Digital Electronics I Lecture #4

CHAPTER 2 BOOLEAN ALGEBRA

Combinational Logic Design Principles

Chapter 2: Switching Algebra and Logic Circuits

CprE 281: Digital Logic

Digital Circuit And Logic Design I. Lecture 3

Binary Logic and Gates

Unit 2 Boolean Algebra

Chapter 2 : Boolean Algebra and Logic Gates

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

Week-I. Combinational Logic & Circuits

CS61c: Representations of Combinational Logic Circuits

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Chapter 2 Boolean Algebra and Logic Gates

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

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

CS 226: Digital Logic Design

Combinational Logic. Review of Combinational Logic 1

Signals and Systems Digital Logic System

Boolean Algebra CHAPTER 15

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

Chap 2. Combinational Logic Circuits

Theorem/Law/Axioms Over (.) Over (+)

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

Logic Gate Level. Part 2

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Chapter 3. Boolean Algebra. (continued)

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

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

Circuits & Boolean algebra.

2. Associative Law: A binary operator * on a set S is said to be associated whenever (A*B)*C = A*(B*C) for all A,B,C S.

WEEK 2.1 BOOLEAN ALGEBRA

Lecture 2 Review on Digital Logic (Part 1)

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

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T

EC-121 Digital Logic Design

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

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

CHAPTER1: Digital Logic Circuits Combination Circuits

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

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

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

Chapter 2 Boolean Algebra and Logic Gates

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Number System conversions

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Digital Logic (2) Boolean Algebra

Boolean Algebra, Gates and Circuits

Boolean Algebra and logic gates

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

Chapter 2 Boolean Algebra and Logic Gates

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

ECE 238L Boolean Algebra - Part I

Chapter 2 Combinational Logic Circuits

UNIT 3 BOOLEAN ALGEBRA (CONT D)

Contents. Chapter 2 Digital Circuits Page 1 of 30

ENG2410 Digital Design Combinational Logic Circuits

University of Technology

EECS Variable Logic Functions

Lecture 3: Boolean Algebra

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

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

ELEC Digital Logic Circuits Fall 2014 Boolean Algebra (Chapter 2)

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

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

Gate-Level Minimization

Cs302 Quiz for MID TERM Exam Solved

COS 140: Foundations of Computer Science

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

CHAPTER 3 BOOLEAN ALGEBRA

Transcription:

BOOLEAN LOGIC Based on CBSE curriculum Class 11 By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region Neha Tyagi, KV 5 Jaipur II Shift

Introduction Boolean Logic, also known as boolean algebra was developed by mathematician George Boole. Later, Boolean logic helped in solving many big problems. These logics also helped in developing circuits. Complete logic is based on Yes or No which is also represented as True(T) or False(F). Computer system transmits its signals on high voltage or low voltage which can be denoted by true or false and with which we can develop it s circuit. In this chapter we will learn thses logics.

Binary Values (Quantities) In our daily life, we need to take logical decisions where answers comes in either Yes (T) or No (F). For ex- Should I have tea? Should I see this movie? Sun rises in East? etc The decisions which results in Yes or No only are known as binary decisions. Values T and F are known as truth values. Boolean variables can only be either T or F. Indira Gandhi was the only lady Prime Minister of India (it results in true -T). Therefore it is a logic statement. What do you want to say?( it can not be result in T or F). Therefore it is not a logic statement.

These are of three types - Logical Operations AND OR NOT These are used to develop compound statement For ex - He prefers coffee not tea. He plays guitar and sitar. I watch TV on Sunday or I go for a movie. These are also used to join logical variables. For ex- X NOT Y OR Z Y AND Z OR X

Logical Operations Before proceeding for Operations we will get to know some features of logic statements. For ex - Statement 1 : I want to have tea. Statement 2 :Tea is ready. now, develop a table with all its aspects. (X) I want to have tea. T T F F (Y) Tea is ready. T F T F (R)(result) I have drink tea. T F F F Now, if we create its truth table, its should be like- Truth Table is a table which contains all possible truth values of logical values along with all possible results. When all the results of a Truth Table are true (1) this condition is known as TAUTOLOGY and if all results are false (0) then this condition is known as FALLACY. X Y R 1 1 1 1 0 0 0 1 0 0 0 0

Logical Operators (NOT) NOT operator is represented by applying ( ) or ( ) on an expression. For ex- X or X. This is a unary operator also known as complementation operator. 0 = 1 and 1 = 0 Truth table and Venn Diagram for NOT operator is as under- X X 0 1 1 0

Logical Operators (AND) AND operator is used by applying (. ) between two variables. like X.Y It shows a very important operation of boolean algebra which is known as logical multiplication. X.Y is to be read as X AND Y. Rules of AND operation are- 0. 0 = 0 0. 1 = 0 1. 0 = 0 1. 1 = 1 AND operator s truth table and Venn Diagram are as under- X Y X.Y 0 0 0 0 1 0 1 0 0 1 1 1 Result will be 1 only when both the inputs will be 1 otherwise result will always be 0. Shadowed potion shows X.Y

Logical Operators (OR) OR operator is used by applying ( + ) between two variables. like X+Y It shows a very important operation of boolean algebra which is known as logical addition. X+Y is to be read as X OR Y. Rules of OR operation are- 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 AND operator s truth table and Venn Diagram are as under- X Y X+Y 0 0 0 0 1 1 1 0 1 Result will be 1 when either of the input will 1 otherwise result will be 0. 1 1 1 Shadowed potion shows X+Y

Evaluation of Boolean Expression using Truth Table To develop Boolean Expression, logical variables are used with logical operators. Truth table is used for its evaluation. For ex- X + (Y.X) + Z is a boolean expression and its truth table should be as follows- X Y Z Y.Z (Y.Z) Z X+(Y.Z) X+(Y.Z) +Z 0 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 0 1 1

Evaluation of Boolean Expression using Truth Table Prove (X+Y) = X.Y using Boolean logic and truth table- X Y X+Y (X+Y) X Y X.Y 0 0 0 1 1 1 1 0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 1 1 0 0 0 0 By comparing (X+Y) and X.Y it is proved that both the values are same.

Basic Logic Gates When Shannon used boolean logic in switching circuit of telephone then Engineers realized that boolean algebra can also be used in computer electronics. In computers, logic gates are used to complete boolean operations. A Gate is a basic Electronic Circuit used to develop an output signal by passing one or more input signal(s). A Gate is a kind of two-state digital circuit because its input or output are either low voltage (i.e. 0) or high voltage (i.e.1). Gates are also known as logic gates because they can coordinate with boolean logic. Logic gates are of three types-- 1. Inverter (NOT Gate) 2. OR Gate 3. AND Gate

Inverter (NOT Gate) NOT gate takes one input and produces one output. Its output is exactly opposite to its input. It is called NOT gate because its output is not similar to its input. Its output is also called as complement(opposite) of input. Truth table and diagram of Not gate are as under- X X Low High High Low X X OR X X 0 1 1 0

OR Gate OR gate takes two or more inputs and produces one output. Its output is logical sum of passed inputs. It produces high voltage output on any one high voltage input. It produces low voltage output only when all the inputs are of low voltage. OR Gate Truth table and diagram are as under- X Y X + Y Low Low Low Low High High High Low High High High High X Y X + Y 0 0 0 0 1 1 1 0 1 1 1 1 This gate work for more than two input signals in similar manner.

AND Gate AND gate takes two or more inputs and produces one output. Its output is logical multiplication of passed inputs. It produces low voltage output on any of the input signal as low voltage input. It produces high voltage output only when all the inputs are of high voltage. AND Gate Truth table and diagram are as under- X Y X.Y Low Low Low Low High Low High Low Low High High High X Y X. Y 0 0 0 0 1 0 1 0 0 1 1 1 This gate work for more than two input signals in similar manner.

Boolean logic-basic Postulates Boolean algebra is a kind of mathematical system because of which it is based on some fundamental laws which are known as basic postulates. Which are as follows- - I. If X 0 then X = 1 and if X 1 then X = 0 II. III. IV. OR Relations (logical addition) 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 AND Relations (logical multiplication) 0. 0 = 0 0. 1 = 0 1. 0 = 0 1. 1 = 1 Complementary Rules: 0 = 1 1 = 0

Principle of DUALITY It is very important concept of boolean logic. A boolean relation can be drived by other boolean relation if we follow following rules- 1. Every OR signal (+) is replaced by AND signal (.). 2. Every AND signal (.) is replaced by OR signal (+). 3. Every 1 is replaced by 0 and every 0 is replaced by 1. The received expresseion will be dual expression of original expression. For ex- Dual of 0 + 0 = 0 will be 1. 1 = 1 Dual of 0 + 1 = 1 will be 1. 0 = 0 Dual of 1 + 0 = 1 will be 0. 1 = 0 Dual of 1 + 1 = 1 will be 1. 1 = 1

Main Concepts of Boolean Algebra I. Properties of 0 and 1 0 + X = X 1 + X = 1 I. 0 + X = X II. 1 + X = 1 III. 0. X = 0 IV. 1. X = X 0 X R 1 X R 0 0 0 1 0 1 0 1 1 1 1 1 0. X = 0 1. X = X 0 X R 1 X R 0 0 0 1 0 0 0 1 0 1 1 1 II. Indempotence Law - (a) X + X = X (b) X. X = X X X R X X R 0 0 0 0 0 0 1 1 1 1 1 1

Main Concepts of Boolean Algebra III. Involution (X ) = X X X (X ) 0 1 0 1 0 1 IV. Complementarity Law (a) X + X = 1 (b) X. X = 0 X X R X X R 0 1 1 0 1 0 1 0 1 1 0 0 V. Commutative Law (a) X + Y = Y + X X Y X + Y Y + X 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 (b) X. Y = X. Y X Y X. Y Y. X 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1

Main Concepts of Boolean Algebra VI. Associative Law (a) X+(Y+Z) = (X+Y)+Z X Y Z Y + Z X + Y X+ (Y + Z) (X + Y) + Z 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1

Main Concepts of Boolean Algebra VI. Associative Law (b) X. (Y. Z) = (X. Y). Z X Y Z Y. Z X. Y X. (Y. Z) (X. Y). Z 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 1 1 1 1 1

Main Concepts of Boolean Algebra VII. Distributive Law (a) X. (Y + Z) = X.Y + X.Z X Y Z Y+Z X.Y X.Z X.(Y+Z) X.Y+X.Z 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1

VII. Distributive Law Main Concepts of Boolean Algebra (b) X + Y.Z = (X + Y). (X + Z) X Y Z Y.Z X+Y X+Z X+Y.Z (X+Y).(X+Z) 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1

Main Concepts of Boolean Algebra VIII. Absorption Law (a) X + X. Y = X (b) X. (X + Y) = X VIII.. X Y X.Y X+X.Y 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 X Y X + Y X.(X+Y) 0 0 0 0 0 1 1 0 1 0 1 1 1 1 1 1 IX. Other rules (Third Distributive Law) X + X.Y = X + Y X Y X X.Y X + X.Y X+Y 0 0 1 0 0 0 0 1 1 1 1 1 1 0 0 0 1 1 1 1 0 0 1 1

X. DEMORGAN s Law Main Concepts of Boolean Algebra (a) (X+Y) = X. Y (b) (X.Y) = X + Y VIII.. X Y (X+Y) X.Y 0 0 1 1 0 1 0 0 1 0 0 0 1 1 0 0 X Y (X.Y) X + Y 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 0 You can prove a law with the help of truth table and can also be proven mathematically. Sum of Product : ABC, XY, X YZ etc Product of Sum : A+B+C, X+Y +Z etc

Minimization of Boolean Expression algebraically Minimize the expression- AB CD + AB CD +ABCD + ABCD Solution: AB CD + AB CD +ABCD + ABCD = AB C(D +D)+ABC(D +D) =AB C + ABC = AC (B +B) = AC.1 = AC

Other Logic Gates There are some derived gates also besides AND, OR, NOT Gates. Like- NOR, NAND, XOR, XNOR Gates. NOR Gate: There is two or more input signals and one output signal in NOR gate.if all input signals are 0 (low) then output signal will be 1 (high). X Y F 0 0 1 0 1 0 1 0 0 1 1 0 X Y Z F 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0

NAND Gate There is two or more input signals and one output signal in NAND gate.if all input signals are 1 (high) then output signal will be 0 (low). It is also known as universal gate because fundamental gates can be retrieved with its help. X Y Z F 0 0 0 1 0 0 1 1 X Y F 0 0 1 0 1 1 1 0 1 1 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0

XOR Gate XOR Gate produces 1 (high) when inputs are not at equal logic level. It is also known as universal gate because fundamental gates can be retrieved with its help. No of 1 s X Y Z F Even 0 0 0 0 No of 1 s X Y F Even 0 0 0 Odd 0 1 1 Odd 1 0 1 Even 1 1 0 Odd 0 0 1 1 Odd 0 1 0 1 Even 0 1 1 0 Odd 1 0 0 1 Even 1 0 1 0 Even 1 1 0 0 Odd 1 1 1 1

XNOR Gate XNOR Gate produces 1 (high) when the inputs are identical (both 1 s or both 0 s). No of 1 s X Y F Even 0 0 1 Odd 0 1 0 Odd 1 0 0 Even 1 1 1 No of 1 s X Y Z F Even 0 0 0 1 Odd 0 0 1 0 Odd 0 1 0 0 Even 0 1 1 1 Odd 1 0 0 0 Even 1 0 1 1 Even 1 1 0 1 Odd 1 1 1 0

Assignment 1. Prepare AND, NOT and OR gate and their circuit diagram by NAND gate. 2. Prepare AND, NOT and OR gate and their circuit diagram by NOR gate. 3. Prepare logic circuit for the following- I. F(A,B,C) = AB + AC + A B C II. F(X,Y,Z) = (X+Y). (X +Z ). (Y+Z)

Thank you Please follow us on our blog- www.pythontrends.wordpress.com Neha Tyagi, KV 5 Jaipur II Shift