Boolean Algebra and Hardware
Boolean Algebra and Hardware
BOOLEAN VARIABLE:
A Boolean variable is same as any other variable used in algebra, the only difference is that it
will either have a value 0 or 1.
LOGICAL OPERATORS:
Boolean Algebra deals with only three types of logical operators namely: AND, OR and NOT
LOGICAL NOT:
This operator provides a complement to a given boolean value. It converts 0 to 1 and 1 to 0.
A A’
0 1
1 0
LOGICAL OR:
This operator results in logical Addition of two binary values. it is represented with (+) sign.
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
LOGICAL AND:
This operator results in product of two binary values. It is represented with (.) sign.
A B A.B
0 0 0
0 1 0
1 0 0
1 1 1
© Copyright Reserved by Debanjan Gupta
A .0=0 A. 1=A
b) COMPLEMENTARY LAW
A + A’ = 1
A . A’ = 0
c) IDEMTOPENT LAW
A+A=A
A .A=A
d) INVOLUTION LAW
(A’)’ =A
e) COMMUTATIVE LAW
A+B=B+A
A. B=B . A
f) DISTRIBUTIVE LAW
A(B+C) = AB + AC
A+(BC) = (A+B) (A+C)
g) ASSOCIATIVE LAW
A+(B+C)=(A+B)+C A(BC)=(AB)C
© Copyright Reserved by Debanjan Gupta
h) ABSORPTION LAW
A+AB=A
A(A+B)=A
i) DE-MORGAN’S THEOREM
(A+B)’=A’B’
(A.B)’=A’+B’
PRINCIPLE OF DUALITY:
De-Morgan’s theorem supports changing of signs n Boolean expression. Hence, from a given
Boolean Expression one can obtain another Boolean Expression by replacing each (+) with
a (.) and each (.) with a (+), and each 1 with 0, and each 0 with 1. The variables must
remain same during the process. The expression thus obtained is known as a Dual
Expression, and the principle applied is known as Principle of Duality.
Ex:
A+0 = A
Dual : A.1=A
A(A+B)=A
Dual: A+(A.B)=A
COMPUTER HARDWARE
LOGIC GATE:
A logic gate is an integrated circuit which is used to perform logical operations of Boolean
Functions. It accepts two or more input signals and provides only one output signal based on
certain logical operations.
OR Gate
A logic gate which requires two or more input signals and results in one output signal, which
is the sum of all input signals is termed as an OR gate.
AND Gate
An AND gate produces a single output from a number of input signals which the product of
all the input signals.
NAND Gate
This Gate is a combination of AND and NOT gate. It accepts two or more signals and gives
the complemented product of the two signals as output. It is also known as Inverted AND
gate.
A ⊕ B = A’B + AB’
© Copyright Reserved by Debanjan Gupta
ADDERS
An Adder is a logical circuit that is used to add two binary digits or binary numbers.
Different types of adders can be designed to add input bits having various bit patterns. The
Adders are basically of two types:
© Copyright Reserved by Debanjan Gupta
HALF ADDER:
Half Adder is a Logic circuit used to add two binary digits. The logic circuit designed for half
adder contains two outputs, one for sum and one for carry.
It is evident from the table, that Sum of the inputs A and B can be obtained by a XOR gate
and carry using a AND gate.
FULL ADDER:
A full adder is a logical circuit used to add three binary digits. It results in sum and carry.
Expression of Sum = A ⊕ B ⊕ C
Expression for Carry = AB + (A⊕B) C
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx