Lab Manual 1-4 Expt.
Lab Manual 1-4 Expt.
Experiment List
3 To develop a half adder and full adder circuit using logic gates and verify
it using truth table.
4 To verify the truth tables of JK, D & T flipflop.
5 To implement Booth’s multiplication algorithm using C programming.
AIM: To study and verify the truth table of various logic gates using ICs and realize Boolean
ICPINOUTS TRUTH-TABLE
NAND
A B Y=A.B
0 0 1
0 1 1
1 0 1
1 1 0
NOR
A B Y=A+B
0 0 1
0 1 0
1 0 0
1 1 0
NOT
A Y=A
0 1
1 0
AND
A B Y=A.B
0 0 0
0 1 0
1 0 0
1 1 1
OR
A B Y=A+B
0 0 0
0 1 1
1 0 1
1 1 1
EX-OR
A B Y=AB+AB
0 0 0
0 1 1
1 0 1
1 1 0
THEORY
Logic gates are the digital circuits with one output and one or more inputs. They are the basic
building blocks of any logic circuit. Different logic gates are: AND, OR, NOT, NAND, NOR, EX-
The output of AND gate is true when the inputs A and B are True.
The output of OR gate is true when one of the inputs A and B or both the inputs are true.
The output of NAND gate is true when one of the inputs or both the inputs are low level.
The output of NOR gate is true when both the inputs are low.
The output of EX-OR gate is true when both the inputs are low.
In the given function, we have a complement term, (A + B) and (A + B’). So, to represent the
compliment input, we are using the NOT gates at the input side. And to represent the sum term,
we use OR gates. See the below given logic diagram for representation of the Boolean function.
PROCEDURE
2) Give various combinations of inputs and note down the output for all gate ICs one by one.
CONCLUSION
AIM: To realize binary to gray code and gray code to binary converter.
COMPONENTS: IC 7486.
THEORY:
The availability of large variety of codes for the same discrete elements of information results in
the use of different codes by different systems. A conversion circuit must be inserted between
the two systems if each uses different codes for same information. Thus, code converter is a
circuit that makes the two systems compatible even though each uses different binary code.
The bit combination is assigned to binary code to gray code. Each code uses four bits to
represent a decimal digit. There are four inputs and four outputs. Gray code is a non-weighted
code.
The input variables are designated as B3, B2, B1, B0 and the output variables are designated
as C3, C2, C1, Co. from the truth table, combinational circuit is designed. The Boolean functions
A code converter is a circuit that makes the two systems compatible even though each uses a
different binary code. To convert from binary code to Excess-3 code, the input lines must supply
the bit combination of elements as specified by code and the output lines generate the
corresponding bit combination of code. Each one of the four maps represent one of the four
A two-level logic diagram may be obtained directly from the Boolean expressions derived by the
maps. These are various other possibilities for a logic diagram that implements this circuit. Now
the OR gate whose output is C+D has been used to implement partially each of three outputs.
TRUTH TABLE
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
G3 = B3
B3 = G3
TRUTH TABLE:
G3 G2 G1 G0 B3 B2 B1 B0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 0 1 0 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
0 1 0 1 0 1 1 0
0 1 0 0 0 1 1 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 1 1 0 1 0
1 1 1 0 1 0 1 1
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0
1 0 0 0 1 1 1 1
CIRCUIT DIAGRAM:
RESULT:
Thus, conversion from grey to binary and binary to grey code conversion is studied.
Experiment No. 03
DESIGN A (I) HALF ADDER AND (II) FULL ADDER
COMPONENTS: IC 7408,7486,7404,7432.
THEORY:
HALF ADDER:
A half adder has two inputs for the two bits to be added and two outputs one from the sum ‘S’
and other from the carry ‘c’ into the higher adder position. The circuit is called as a carry signal
from the addition of the less significant bits sum from the X-OR Gate the carry out from the AND
gate.
FULL ADDER:
A full adder is a combinational circuit that forms the arithmetic sum of input; it consists of three
inputs and two outputs. A full adder is useful to add three bits at a time but a half adder cannot
do so. In full adder sum output will be taken from X-OR Gate, carry output will be taken from OR
Gate.
TRUTH TABLE OF HALF ADDER:
A B CARRY SUM
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
SUM=A’B+AB’ CARRY=AB
=AB
CIRCUIT DIAGRAM:
TRUTH TABLE OF FULL ADDER:
A B C CARRY SUM
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
=A B C
CARRY = AB + BC + AC
CIRCUIT DIAGRAM:
PROCEDURE:
1) Connections are given as per circuit diagram.
RESULT:
Thus, the half adder and full adder was designed and their truth table is verified
Experiment No. 04
FLIP-FLOPS
AIM: Design the JK and SR Flip Flop using NAND as Universal gate. Verify the truth table of JK
Flip Flop using IC 7476. Implement T Flip Flop and D Flip Flop using JK Flip Flop
PindiagramofIC-7476
Clk J K Q Q Comment
0 0 NC NC No Change
0 1 0 1 Reset
1 0 1 0 Set
1 1 Toggle Toggle
0 NC NC
1 Toggle
V) DFF using JK
Clk D Q Q Comment
0 0 0 Reset
1 1 1 Set
THEORY:
Flip-flops are the basic building blocks of sequential ckt. The clocked FFs change their o/p state
depending upon i/p's at certain interval of time synchronized with the clock pulse applied to it.
Different types of FFs are S-R, J-K, D&T. Their operations are described by the respective truth
tables. MSI chip 7476 incorporates two negative edge triggered Master–Slave JK flip flops. The
PROCEDURE:
CONCLUSION:
ASSIGNMENTS:
1) Construct clocked S-R FF using only NAND gates & verify the truth table.
2) Verify the truth table of J-K FF using IC 7476.Observe the effect of Preset & Clear i/ps.