Post Lab
Post Lab
COIMBATORE - 641004
Submitted by:
Dr.SUMATHI. S
PROFESSOR
DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING,
PSG COLLEGE OF TECHNOLOGY
AIM:
To study basic digital IC’s and the implementation of adder and subtractor
circuits.
APPARATUS REQUIRED:
LOGIC GATES:
Basically, all logic gates have one output and two inputs. Some logic gates
like NOT gate or Inverter has only one input and one output. The inputs of the
logic gates are designed to receive only binary data (only low 0 or high 1) by
receiving the voltage input.The low logic level represents Zero volts and high
logic level represents 3 or 5 volts positive supply voltage.
By combining logic gates, we can design many specific circuits like flip
flops, latches, multiplexers, shift registers etc. . The manufacturers will follow the
TTL or Transistor – Transistor Logic as standard voltage level, while designing
the ICs.
AND
INPU
OUTPUT
T
A B A AND B
0 0 0
0 1 0
1 0 0
1 1 1
OR
INPU
OUTPUT
T
A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1
NAND
or
INPU
OUTPUT
T
A NAND
A B
B
0 0 1
0 1 1
1 0 1
1 1 0
NOR
INPU
OUTPUT
T
A B A NOR B
0 0 1
0 1 0
1 0 0
1 1 0
XOR
INPU
OUTPUT
T
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0
.XNOR
INPUT OUTPUT
A B A XNOR B
0 0 1
0 1 0
1 0 0
1 1 1
HALF ADDER:
The input variables designed and added bits the output one the sum and the
carry. If A and B are inputs and sum of carry are output. These are sum at
products oppressions are,
S=A’B+AB’
C=A.B
A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
By principle of products at high values,
Sum=A’B+AB’
Carry=A.B
Sum=A’BC’+AB’C’+ABC
=A’(B’C+BC’)+A(B’C’+BC)
=A’(B+C)+A()
=⊕⊕
Sum=AB’C+A’BC+AB’C’+ABC
=(A⊕B)⊕C
=AB+(A⊕B)
A B C Sum Carry
0 0 0 0 0
0 0 1 1 0
0 1 1 1 0
0 1 0 0 1
1 0 1 1 0
1 0 0 0 1
1 1 0 0 1
1 1 1 1 1
Sum=A’B’C+A’BC’+AB’C’+ABC
=A’(B’C+BC’)+A(B’C’+BC)
=A’(B⊕C)+A(⊕)
=⊕⊕
Carry=A’BC+AB’C+ABC’+ABC
=(A’B+BA’)+AB(C’+C)
=C(A⊕B)+AB
=low(4 bit adder)
A 0 0 1 1
B 1 0 0 0
E 1 0 1 1
It has 2 input and output. The one input A and B from minuend and subtracted .
A is different output and B is borrow output.
Difference=P.Q+P.Q-P⊕Q
Borrow=.Q
P Q DIFFERENCE BORROW
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
FULL SUBTRACTOR CIRCUIT:
It has 3 inputs and 2 outputs. A,B and C are inputs to be subtract in which B
represents next stage.
D-Difference , B-Borrow
D=ABC+ABC+ABC+ABC
B=ABC+ABC+ABC+ABC.
A B C DIFFERENCE BORROW
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Difference=C+B+A+ABC
= (CC+B)+A(+BC)
=A⊕B⊕C.
Borrow=ABC+ABC+ABC+Abc
=C(AB+AB)+AB(C+C)
=C(⊕)+B
H-High(4-bit subtractor)
Sl.no. A3 A2 A1 A0 B3 B2 B1 B0 S3 S2 S1 S0 C M
1 1 0 0 1 0 0 1 1 1 1 0 0 0 0
2 1 1 1 1 1 0 1 0 1 0 0 1 1 0
without EXOR:
Sl.no A3 A2 A1 A0 B3 B2 B1 B0 S3 S2 S1 S0 C M
.
1 1 1 1 1 1 0 1 0 1 0 0 1 1 0
2 0 1 0 1 0 0 0 0 0 1 0 1 0 0
INPUT:
1 1 0 0
1 0 0 0
0 1 0 0
DIFFFERENCE:
IC 74LS04
INPUT OUTPUT
0 1
1 0
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
IC 74LS08
IC 74LS86
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
IC 74LS32
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
PROCEDURE:
The circuit diagram and truth table of OR, AND, NOT, EXOR gates in IC’S are
taken from the datasheet. Here IC74LS04(NOT GATE), IC74LS08(AND GATE),
IC74LS32(OR GATE), IC74LA86(EXOR GATE) are used. In that, the pair 7 and
14 are connected to ground and +vccrespectively. The circuit diagram and truth
table of half and full adder, half and full subtractor is verified.
OVERFLOW:
When a 2 member with its digital each are added and sum is a number (n+1)
digital there is an overflow occurs. This is true for binary and decimal number
signed (or) unsigned overflow is a problem in digital computers because the no.
of bits that number is infinite as a result contains (n+1) bits cannot be
accommodated by n-bits words.
Sl.no A3 A2 A1 A0 B3 B2 B1 B0 S3 S2 S1 S0 S4
.
1 0 1 0 1 0 0 0 0 1 0 1 0 0
2 1 0 1 0 1 1 1 1 1 0 1 0 1
WITHOUT EXOR:
Sl.no. A3 A2 A1 A0 B3 B2 B1 B0 S3 S2 S1 S0 S4
1 0 0 1 0 0 0 0 1 0 0 0 1 1
2 1 0 1 0 1 1 1 1 0 1 1 0 1
PRE-LAB QUESTIONS:
APPLICATIONS:
CLASSIFICATION:
BIPOLAR UNIPOLAR
SATURATED NON-SATURATED
RTL’s CMO’s
● Power dissipation is typically ● Power dissipitation is usually to
KW per gate.
to KW per gate.
Y=AB+A(B+C)
=AB+A(B’+C’)
=A(B+B’).(B+C’)A(B+B+C)
=A(B+C)
Y=AB+AC
By demorgan’s law,
[(A+B)’=A’B’]
B’+B=B.
● A carry signal represents an ● A one bit full adder adds 3-1 bit
overflow into next digits of number full adder usually a
multidigit addition. components in cascade of
adder.
1. Why half adder is called as half adder and full adder is called as full
adder ?
Ans.
The half adder can add only two input bits (A and B) and has nothing to do
with the carry if there is any in the input. So if the input to a half adder have a
carry, then it will neglect it and adds only the A and B bits. That means the
binary addition process is not complete and that’s why it is called a half adder.
full adders are the ones used for adding, we call them "full" adders.And since
a full adder can be made by joining up two half adders with an OR gate, the
half adder becomes "half" an adder.
2. What is the major difference between half adder and full adder ?
Ans.
Ans.
Ans.
Ans.
BCD adder
A 4-bit binary adder that is capable of adding two 4-bit words having a BCD
(binary-coded decimal) format. The result of the addition is a BCD-format 4-bit
output word, representing the decimal sum of the addend and augend, and a
carry that is generated if this sum exceeds a decimal value of 9. Decimal
addition is thus possible using these devices.
BCD subtractor
A 4-bit binary subtractor that is capable of subtracting two 4-bit words having
a BCD (binary-coded decimal) format. The result of the subtraction is a BCD-
format 4-bit output word, representing the decimal sum of the minuend and
subtrahend, and a borrow that is generated if this difference exceeds a
decimal value of 9. Decimal subtraction is thus possible using these devices.
RESULT:
Basic digital IC'S and the implentation of adder and subtractor circuits are studied
and verified.