CH 2 Boolean Logic
CH 2 Boolean Logic
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.
Logical Operations
– These are of three types -
• 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
By comparing (X+Y)’ and X’.Y’ it is proved that both the values are same.
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-
–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-
–This gate work for more than two input signals in similar manner.
VI.Associative Law –
(b) X . (Y . Z) = (X . Y) . Z
VII.Distributive Law –
(a) X . (Y + Z) = X.Y + X.Z
VII.Distributive Law –
1. X + Y.Z = (X + Y) . (X + Z)
VIII.Absorption Law –
(a) X + X . Y = X (b) X . (X + Y) = X
X.DEMORGAN’s Law –
(a) (X+Y)’ = X’ . Y’ (b) (X.Y)’ = X’ + Y’
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
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.
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.
XNOR Gate
•XNOR Gate produces 1 (high) when the inputs are identical (both 1’s or both 0’s).
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)
De Morgan’s Law
The complement of the union of two sets is equal to the intersection of their complements and the
complement of the intersection of two sets is equal to the union of their complements. These are called
De Morgan’s laws.
Now combine (i) and (ii) we get; P = Q i.e. (A U B)' = A' ∩ B'
Now combine (i) and (ii) we get; M = N i.e. (A ∩ B)' = A' U B'