LD Manual
LD Manual
III SEMESTER
LOGIC DESIGN
LABORATORY
MANNUAL
10ESL38
K.L.E.s
K.L.E. Institute of Technology,
Hubli-31
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
Prepared by:
Prof. Kumarswamy V
Prof. Chaitanya K J
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 1
Logic Design LAB Manual
Lab Syllabus
NOTE: Use discrete components to test and verify the logic gates. Lab View can be used for
designing the gates along with the above.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 2
Logic Design LAB Manual
CONTENTS
Lab Experiments
1. Simplification, realization of Boolean expressions using logic gates/Universal gates.
1a. Basic logic gates 1-3
1b. Universal Gates 4-5
1c. Boolean Expression
2. Realization of Half/Full adder and Half/Full Subtractors using logic gates
2a. Half adder & Full adders 11-14
2b. Half subtractor & Full subtractor
3. (i) Realization of parallel adder/Subtractors using 7483 chip.
(ii) BCD to Excess-3 code conversion and vice versa 15-1
3a. Parallel adder/Subtractor 19-20
3b. BCD to Excess-3 & vice versa
4. Realization of Binary to Gray code conversion and vice versa
5. MUX/DEMUX use of 74153, 74139 for arithmetic circuits and code converter
6. Realization of One/Two bit comparator and study of 7485 magnitude comparator.
6a.One/Two bit comparator 30-3
6b. Magnitude comparator
7. Use of a) Decoder chip to drive LED display and b) Priority encoder 40-44
7a. BCD to 7-segment Decoder 45-4
7b. Priority encoder 47-49
8. Truth table verification of Flip-Flops: (i) JK Master slave (ii) T type and (iii) D type.
9. Realization of 3 bit counters as a sequential circuit and MOD N counter design
(7476, 7490, 74192, 74193).
10. Shift left, Shift right, SIPO, SISO, PISO, PIPO operations using 74S95.
11. Wiring and testing Ring counter/Johnson counter.
12. Wiring and testing of Sequence generator.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 3
Logic Design LAB Manual
THEORY :
AND GATE:
An AND GATE is a logic circuit with two or more than two inputs and one output. The output of an
AND GATE is logic 1 only when all of its inputs are in logic 1 state. In all other cases, the output is
logic 0.
OR GATE:
An OR GATE is a logic circuit with two or more than two inputs and one output. The output of an OR
GATE is 0 only when all of its inputs are at logic0. For all other possible input combinations, the
output is logic 1.
NOT GATE:
A NOT-CIRCUIT is a one input one output logic gate whose output is always the complement of the
input. That is, logic0 at the input produces logic1 at the output and vice-versa.
EX-OR GATE:
Ex-OR gate means exclusive OR gate. This gate has a high output only when an odd number of inputs
is high ; or, in other words, the EX-OR gates produces a logic 1 whenever either one of the inputs is
1, but not when both are 1. The EX-OR operator is the sign + , as indicated in the pin details.
NAND GATE:
An AND GATE followed by a NOT circuit make it as an NAND GATE. NAND GATE is a logic
circuit having two or more than two inputs and one output. The output of an NAND GATE is logic 0
only when all of its inputs are in logic 1 state. In all other cases, the output is logic 1
NOR GATE
An OR GATE followed by an NOT circuit make it as an NOR GATE. NOR GATE is a logic circuit
having two or more than two inputs and one output. The output of an NOR GATE is logic 1 only
when all of its inputs are in logic 0 state. In all other cases, the output is logic 0.
PROCEDURE
1. Check all the components and patch-chords whether they are in good condition.
2. Insert the appropriate IC into the IC base.
3. Make connection as shown in pin details.
4. Give supply to the trainer kit.
5. Verify the truth table and observe the outputs
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 4
Logic Design LAB Manual
1. AND Gates:
Logic Symbol Truth Table
IC 7408 Vcc
1 14 13
2 12
7 A Input Output
3
4 11 Y A B Y
0
B
4
5 10 0 0 0
8 9
0 1 0
6
Y=A.B
7
8
1 0 0
Gnd 1 1 1
2. OR Gates
IC 7432 Vcc
Logic Symbol Truth Table
1
2
14 13
12
Input Output
7 A A B Y
4 Y
3
3
11 B 0 0 0
4 2 0 1 1
5 10
9
Y=A+B 1 0 1
6 1 1 1
8
7
Gnd
3. Not Gates
Logic Symbol
1 14 13
7 Input Output
2 12
Y
3 4 11 A Y
0
4 4 10 0 1
5
9
1 0
Y=
6
7
8 A
Gnd
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 5
Logic Design LAB Manual
1 14 13 Input Output
2 12 A
7 Y A B Y
3 4 11 B 0 0 1
0
4
0
0 1 1
5 10
1 0 1
6
9
AB 1 1 0
8
7
Gnd
XOR Gates:
1 14 13
2 12
Input Output
7 A
3 4 11 Y A B Y
8 B 0 0 0
4
5 6 10 0 1 1
9
1 0 1
6
8 1 1 0
7
Gnd
NOR Gates
IC 7402
Vcc
Logic Symbol Truth Table
1 14 13 Input Output
A A B Y
7 Y
2 4 12 0 0 1
B
3
4
0 11
0 1 0
2 10 1 0 0
Y=
1 1 0
5
6 9 A +B
7 8
Gnd
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 6
Logic Design LAB Manual
PROCEDURE
1. Make connection as shown in logic diagram.
2. Give supply to the trainer kit.
3. Provide the input data to the circuit Via switches.
4. Verify the truth table sequence and observe the outputs.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 7
Logic Design LAB Manual
Truth Table Varification of Logic gates using NAND and NOR Gates
NOT Gate
7404 IC A Y
A Y
A A
AND Gate
7408 IC A
A
Y Y
B
Y=A.B B
Y=A.B
OR Gate
7432 IC A A
Y Y
B
B
Y=A+B Y=A+B
A
X-OR Gate A
B
Y Y
7486 IC
B Y=A
B
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 8
Logic Design LAB Manual
Aim: To Simplify and realize the given Boolean expressions using Logic Gates/Universal Gates.
Components required: IC 7408,IC 7432, IC 7400,IC 7402, IC 7410,7404, Patch chords and trainer
kit
Theory :
Boolean Expression consists of variables, which can have one of the two possible values. Either one or
zero. There are two methods to minimize Boolean expression
1. Boolean Algebra
2. Karnaugh map
Boolean algebra: Boolean algebra provides a means by which logic circuitry may be expresses
symbolically, manipulated and reduced .Use of Boolean algebra in logic circuits lead to following
results:
* Minimizes the number of logic gates in a circuit
* Minimizes the cost of a circuit
* A circuit which uses only one type of basic logic gates such as NAND gate becomes possible.
* A circuit having parallel, redundant gates with minimum propagation delay can be designed.
Demorgan suggested two theorems that form an important part of Boolean algebra that is
1. Sum of Product
2. Product of sum
Procedure:
1. Verify all the components and the Patch Chords whether they are in good condition.
2. Fix the IC on the base board.
3. Connections are made as shown in the logic diagram.
4. Verify the truth Table for each expression.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 9
Logic Design LAB Manual
LOGIC EXPRESSIONS:
Truth Table
Using Basic Gates
1) Y1=(A+BC)(B+A C ) A B C Y1
0 0 0 0
Simplification: 0 0 1 0
0 1 0 0
C 0 1 1 1
Y1=(A+BC)(B+A ) 1 0 0 1
= AB+ A C +BC 1 0 1 0
1 1 0 1
1 1 1 1
A B C
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 10
Logic Design LAB Manual
10 Y1
= ( A +C )( A +B)( B+C )
= ( A +C ) ( A +B) B+C )
( (Using only NOR gates)
A B C
Y11
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 11
Logic Design LAB Manual
2) Z= A B C +AB C + A B C+ABC
Z= A B (C+ C )+AB(C+ C )
= A B +AB
A B
Truth Table
A B C Y
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 0
Y 1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
Z= B
A B
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 12
Logic Design LAB Manual
A B
Result : The given Boolean expression is verified using basic and universal gates.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 13
Logic Design LAB Manual
VIVA QUESTIONS :
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 14
Logic Design LAB Manual
Expt No: 2a Half Adder and Full Adder using Logic Gates
Components required: IC 7400,, IC 7486, IC 7408, 7404, Patch chords and trainer kit
Theory:
About Nand And Nor Gates: The NAND and NOR gates is termed a universal gates (or universal
block), because almost any logic function can be made by suitable inter connecting NAND gates or NOR
gates. For ex: different combinations of the NAND GATE or NOR gate can be employed to produce any
one of the basic three functions of AND, OR and INVERT (NOT) gates.
Ex-Or Gate: Ex-or gate means Exclusive OR gate. This gate has a high output only when an odd number
of inputs are high: or in other words, the Ex-or gate produces a Logic1. Whenever either one of the
inputs is one, but not when both are 1. The Ex-or operator is the Sign +, as indicated in the figure.
Half Adder and Full Adder: The simplest binary adder is called a half adder. Half adder has two input
bits and two output bits. One bit is the sun and the other is carry. S and C represent these respectively in
the logic symbol.
A half adder has no provision to add a carry from the lower order bits when binary numbers are
added. When two input bits and a carry are to be added, the number of input bits becomes three and the
input combination increases to eight. For this, a full adder is used. Like half adder, it also has a sum bit
and carry bit. New carry generated is represented by Cn and carry generated from the previous addition is
represented by Cn 1.
Procedure:
1. Verify all the components and patch chords whether they are in good condition.
2. Make connections as shown in logic diagram.
3. Give supply to the trainer kit.
4. Provide the input data to the circuit via switches.
5. Verify the truth table sequence and observe the outputs.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 15
Logic Design LAB Manual
Half Adder:
a) Half Adder using Basic gates
A
B
C=AB
S= A B
C=AB
Truth Table :
A B SUM CARRY
(S) (C)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 16
Logic Design LAB Manual
FULL ADDER:
B
C
b) Full Adder using NAND Gates only
Truth Table:
A B C Sum Carry
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 17
Logic Design LAB Manual
K-Map Simplification
1) SUM
AB
00 01 11 10
0 1 1
1
2) CARRY
AB
00 01 11 10
0
1
Result: The half adder and full adder circuits are verified using basic and universal gates.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 18
Logic Design LAB Manual
Expt No: 2b Half Subtractor and Full Subtractor using Logic Gates
Components required: IC 7400,, IC 7486, IC 7408, 7404,IC 7432, Patch chords and trainer kit
Theory:
Half subtractor :
Half subtractor is a combinational circuit that subtracts 2 bits and produces their difference. It also has an
output to specify if a one has been borrowed. Half subtractor can be implemented by using basic gates or
by using only Nand gates.
Full subtractor :
Full subtractor circuit performs subtraction between 2 bits, taking into account that a one may have been
borrowed by a lower significant stage. The circuit has 3 inputs and 2 outputs. The truth table and the logic
expressions are given below in the observation.
Procedure:
1 Verify all the components and patch chords whether they are in good condition.
2 Make connections as shown in logic diagram.
3. Give supply to the trainer kit.
4. Provide the input data to the circuit via switches.
5. Verify the truth table sequence and observe the outputs.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 19
Logic Design LAB Manual
C= A
B
Truth Table
A B Diff(D) Borrow
(B)
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Full Subtractor:
A
B
C
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 20
Logic Design LAB Manual
B0= A B+C(A
Truth Table:
A B C Diff 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
K-Map Simplification
1) Diff
AB
00 01 11 10
0 1 1
1
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 21
Logic Design LAB Manual
2) Borrow
AB
00 01 11 10
0
1
Result: The half and full subtractor are verified using basic and universal gates
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 22
Logic Design LAB Manual
VIVA QUESTIONS :
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 23
Logic Design LAB Manual
4-bit binary adder A3 A2 A 1 A0 and B3 B2 B1 B0 are inputs and Cout S3 S2 S1 S0 is the output CARRY IN
Pin is grounded.
For example :
10 (Minued) Binary equivalent of 10 1010 +
9 (Subtrahend) 2s complement 9 0111
Carry omitted
-1 2s complement 1 1111
Procedure:
1. Check all the components and IC Packages.
2. Set Up7483 for parallel adder circuit and verify the Truth Table.
3. Set up Parallel adder/Subtractor as shown in logic diagram.
4. For C-in=0, the circuit works as a parallel adder. For C-in=1 it acts as a parallel subtractor. Verify
the truth tables for both.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 24
Logic Design LAB Manual
B3 B2 B1 B0
Ctrl
=0 to add
A3 A2 A1 A0 =1 to subtract
1 3 8 10 16 4 7 11
VCC
13
5
IC 7483 Cin
GND
12
14 15 2 6 9
Cout S3 S2 S1 S0
Truth Table:
Addition:
Subtraction:
Result : The parallel adder and subtractor circuit is realized using 7483 IC
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 25
Logic Design LAB Manual
This code is also known as 8-4-2-1 code or simply BCD code. 8, 4, 2, and 1 are the weights of the four
bits of the binary codes of each decimal digit similar to straight binary number system. Therefore this is a
weighted code and arithmetic operations can be performed using this code.
Excess-3 Code: Excess-3 code is another form of BCD code, in which each decimal digit is coded into a
4-bit binary code. This code for each decimal digit is obtained by adding decimal 3 to the natural BCD
code of the digit. For example decimal 2 is coded as 0010+0011=0101 in Excess-3 code. It is not a
weighted code. This code is a self complementing code, which means 1s complement of the coded
number yields 9s complement of the number itself. for example Excess-3 code of a decimal 2 is 0101,
its 1s complement is 1010 which is Excess-3 code for decimal 7,which is 9s, complement of 2. the self
complementing property of this code helps considerably in performing subtraction operation in digital
systems.
Procedure:
1. Verify all the components and patch chords whether they are in good condition.
2. Make connections as shown in logic diagram.
3. Give supply to the trainer kit.
4. For different Excess-3 codes inputs, verify the corresponding BCD data outputs according to
the truth table.
5. And also for different BCD data inputs verify the corresponding Excess-3 code outputs
according to the truth table.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 26
Logic Design LAB Manual
Truth Table:
BCD i/p Excess i/p
B3 B2 B1 B0 E3 E2 E1 E0
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0
Vcc
Gnd
B3 B2 B1 B0
Ctrl
=0 to add
A3 A2 A1 A0 =1 to subtract
1 3 8 10 16 4 7 11
VCC
13
5
IC 7483 Cin
GND
12
14 15 2 6 9
Cout S3 S2 S1 S0
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 27
Logic Design LAB Manual
Result: The BCD to Excess-3 conversion and vice versa is realized using IC-7483.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 28
Logic Design LAB Manual
VIVA QUESTIONS:
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 29
Logic Design LAB Manual
Theory:
Gray Code: Gray code is an un-weighted code which means that there are no specific weights assigned to
the bit positions. The gray code exhibits only a single bit change from one code number to the next. Gray
code is not an arithmetic code.
Binary Data: The binary number system is simply another way to count. It is less complicated than the
decimal system, because it is composed of only 2 digits. The two binary digits are 1 and 0. The
position of the 1 or 0 in a binary number indicates its weights or value within the number. The weight
of each successively higher position (to the left) in a binary number is an increasing power of two.
Procedure:
1. Verify all the components and patch chords whether they are in good condition.
2. Make connections as shown in logic diagram.
3. Give supply to the trainer kit.
4. For different Binary data inputs, verify the corresponding Gray code outputs according to the truth
table.
5. And also for different Gray code inputs verify the corresponding Binary data outputs according to
the truth table.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 30
Logic Design LAB Manual
Truth Table:
Binary i/p Gray code o/p
B B2 B1 B0 G3 G2 G1 G0
3
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
K-Map Simplification
G3= B3 G2= B2 B3
B1B0
B1B0
00 01 11 10
00 01 11 10 B3B2
B3B2
00
00
01
01
11
11
10
10
B1B0 00 01 11 10
B3B2
B3B2
00 01 11 10
00
00
01 01
Logic diagram for Binary to G
11 11
10
______________________________________________________________________________________
10
Dept. of Electrical and Electronics 2014-2015 Page 31
Logic Design LAB Manual
Logic diagram for Binary to Gray Code Conversion using NAND gates
Bo
Go
B1
G1
B2
G2
B3
G3
Logic diagram for Binary to Gray Code Conversion using basic gates
B3 G3
G2
B2
G1
B1
G0
B0
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 32
Logic Design LAB Manual
Truth Table:
Gray i/p Binary o/p
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 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 1
0 1 0 1 0 1 1 0
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
1 0 0 0 1 1 1 1
1 0 0 1 1 1 1 0
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 0 1 0 1 1
1 1 1 1 1 0 1 0
K-Map
G1G0 G1G0
00 01 11 10 00 01 11 10
G3G2 G3G2
00 00
01 01
11 11
10 10
B3= G3 B2= G2 G3
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 33
Logic Design LAB Manual
G1G0
G1G0
00 01 11 10
G3G2 00 01 11 10
G3G2
00
00
01
01
11
11
10
10
B1= G1 G2 G3 B0= G0 G1 G2 G3
Logic diagram for GRAY to Binary Code Conversion using basic gates
G3 B3
B2
G2
B1
G1
B0
G0
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 34
Logic Design LAB Manual
Logic diagram for GRAY to Binary Code Conversion using NAND gates
Go
Bo
G1
B1
G2
B2
G3
B3
Result: The binary code to gray code and vice versa is realized using basic gates and universal gates.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 35
Logic Design LAB Manual
VIVA QUESTIONS :
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 36
Logic Design LAB Manual
Aim: To realize a 4:1 Mux using IC 74153 and verify its Truth Table
Components Required: IC 74153, 7404, 74139, 7400 Trainer kit, patch chords.
Theory:
Multiplexer:
The multiplexer is a special combination circuit that is one of the most widely used standard circuits in
digital designs. The multiplexer(Data selector) is a logic circuit that gets one out of several inputs to a
single output. The input selected is controlled by a set of select inputs.
DeMultiplexer:
The Demultiplexer performs the reversed operation of a multiplexer. it accepts a single input and
distributes it over several outputs . The select input code determines to which output the data input will be
transmitted.
IC74LS153: This IC is a dual 4-input multiplexer that can select 2-bits of data from up to 8-sources under
control of the common select inputs(S0 & S1).The two 4-input multiplexer circuits have individual active
low enables(Ea & Eb) which can be used to store the outputs independently. Outputs are forced low when
the corresponding enables are high.
IC74LS139: This IC is a high speed dual 1-input decoder/Demultiplexer. This dev ice has 2-independent
decoders each accepting 2-binary weighted inputs (X & Y) and providing 4 mutually exclusive active low
outputs (Y0 to Y3). Each decoder has an active low enable (E). When E=1 every output is forced high.
Procedure:
1. Verify all the components and patch chords whether they are in good condition.
2. Make connections as shown in logic diagram.
3. Give supply to the trainer kit.
4. Provide the input data to the circuit via switches.
5. Record and verify the output sequence for each combination of the select lines and verify that
it functions as multiplexers, Demultiplexers, Adders and sub tractors.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 37
Logic Design LAB Manual
Pin Diagram:
VC
C Vcc
Ea
e) on
bl cti
na ele
(E (S
b
E
S1
)
S0
I3
1 I2
2 I3 2 I2
1
IC 74153
I/Ps
J11
I1
I/Ps
I1
2
0
1I
o/p
I0
2
1Y
16
o/p
2Y
D
GN
314
413
512
710
611
89
1
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 38
Logic Design LAB Manual
Vcc 1 Y
=Su
m
2Y
=Ca
1
1I
rry
2
1I
a
E
C
3
1I
b
E
0
2I
4
J1
1
5
3
S1
16
14 2
S0
B
2I18
2I2
2I3
1I0
15
7
A B Sum Carry Y
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Design :
Sum : 1I0A+1I1A Carry :2I1A
A 0 1 A 0 0
A 1 0 A 0 1
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 39
Logic Design LAB Manual
Full Adder
Logic diagram :
A Vcc
I0
1
m
=Su
1Y
I1
1
I
rry
=Ca
2Y
I2
1
C
7
a
E
I3
1
4
1
b
E
J1
I0
2
5
3
Vcc
16
S0S1
B C in
2I18
2I2
2I3
15
Truth Table:
7
A B C S CY
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 40
Logic Design LAB Manual
Design:
Truth Table
A B Diff Borrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Design:
Difference Carry
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 41
Logic Design LAB Manual
Logic diagram :
`
A
Vcc
I0
1
ff
=Di
1Y
I1
1
w
rro
=Bo
2Y
I2
1
I3 7
1
b
E
4
1
a
E
5
J1
I0
2
Vcc
16
S1
B Cin
2I18
S0
2I2
2I3
15
7
1 1 1 1 1
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 42
Logic Design LAB Manual
Design:
Difference Borrow
Logic diagram:
A Vcc
I0
1
ff
=Di
1Y
I1
1
w
rro
=Bo
2Y
I2
1
a
E
I3
1
b
E
I0
2
Vcc
16
S1
B C in
S0
2I18
2I2
2I3
15
7
Result : The adder and subtractor circuits are realized using IC 74153.
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 43
Logic Design LAB Manual
2 1X 1Y1 5
I/Ps
3 1Y 1Y2 6
7
4 7
Enable 2EG 1Y3
1
14 3 12
2X 2Y0
9
15
2Y 2Y1 11
13
2Y2 10
9
2Y3
814
Gnd
Vcc
Enable line is active low i/p line, all o/p lines are active low
Truth Table :
G Y X Y0 Y1 Y2 Y3
1 X X 1 1 1 1
0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 44
Logic Design LAB Manual
FULL ADDER
Truth table :
Inputs Outputs
A B C Sum Carry
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Logic diagram
2 4
1X 1Y0
Cin 14 5
2X 1Y1
3 6
1Y 7 1Y2
B 13 7 Sum
4
5 2Y 1 1Y3
12
1 3
1G 9 2Y0
A 11
2G 2Y1
10
Carr
15 2Y2 y
9
2Y3
8 14
Gnd
Vcc
______________________________________________________________________________________
Dept. of Electrical and Electronics 2014-2015 Page 45
Logic Design LAB Manual
Full Subtractor
Logic diagram
2 4
1X 1Y0
Cin 14 5
2X 1Y1
3 6
1Y 7 1Y2
B 13 7 Diff
4
5 2Y 1 1Y3
1 3 12
1G 9 2Y0
A
2G 2Y1 11
Borro
15 2Y2 10 w
9
2Y3
8 14
Gnd
Vcc
Result : The full adder and subtractor circuits are realized using IC-74139.
VIVA QUESTIONS :
Aim: Realization of One/Two bit comparator & study of 7485 magnitude comparator
Apparatus required: IC 7400, 7404, 7408, 7402, 7432, 7486, 7485, Trainer kit Patch chords
Theory: comparators can be designed for comparing multibit numbers. It receives 2 n bit numbers A&B
as inputs and the outputs are A>B, A=B and A<B. depending upon the relative magnitude of the 2-
numbers one of the outputs will be high.
About IC7485: IC 74LS85 is a 4-bit magnitude comparator it can be expanded to almost any length. It
compares two 4-bit Binary, BCD or other codes and presents the 3 possible magnitude results at the
output.
Procedure :
1. Verify all the components and patch chords whether they are in good condition.
2. Make connections as shown in logic diagram.
3. Give supply to the trainer kit.
4. Provide the input data to the circuit via switches.
5. Compare the input bit combinations and observe the outputs at A>B, A=B & A<B.
One bit Comparator:
Truth Table of One bit Comparator:
I/p O/p
A B A>B A=B A<
B
0 0 0 1 0
0 1 0 0 1
1 0 1 0 0
1 1 0 1 0
K- map
0 1 0 1
0 0 0 0
0 0
1 0 1 0
1 0
A>B=AB A<B=AB A=B=AB +AB
Logic diagram :
A B
A>B
A=B
A<B
I/p O/p
A A B B A< A= A>
1 0 1 0 B B B
0 0 0 0 0 1 0
0 0 0 1 1 0 0
0 0 1 0 1 0 0
0 0 1 1 1 0 0
0 1 0 0 0 0 1
0 1 0 1 0 1 0
0 1 1 0 1 0 0
0 1 1 1 1 0 0
1 0 0 0 0 0 1
1 0 0 1 0 0 1
1 0 1 0 0 1 0
1 0 1 1 1 0 0
1 1 0 0 0 0 1
1 1 0 1 0 0 1
1 1 1 0 0 0 1
1 1 1 1 0 1 0
K-map Simplification:
1) A<B 2) A=B
B1B0 B1B0
00 01 11 10 00 01 11 10
A1A0 A1A0
00 00 1
01 01 1
11 11 1
10 10 1
3) A>B B1B0
00 01 11 10
A1A0
00
01
11
10
A=B(A0 B0)( A 1 B 1)
Logic diagram
A1 A0
B1 B0
A>B
A=B
A<B
15
13 12 10 1 14 11 9
4 A3 A2 A1 A0 B3 B2
A>B B0
B1
16 Vcc
A<B
2 IC 7485 8
3 GND
A=B A>B A=B A<B
3
Logic 1 5 6 7
Truth Table :
A B Result
A3 A2 A1 A0 B3 B2 B1 B0
0 0 0 1 0 0 0 0 A>B
0 0 0 1 0 0 0 1 A=B
0 0 0 0 0 0 0 1 A<B
Result : The magnitude comparator is built and verified by using basic gates and universal gates followed
VIVA QUESTIONS :
1. What is a comparator?
2. What are the applications of comparator?
3. Derive the Boolean expressions of one bit comparator and two bit comparators.
4. How do you realize a higher magnitude comparator using lower bit comparator
5. Design a 2 bit comparator using a single Logic gates?
6. Design an 8 bit comparator using a two numbers of IC 7485?
7. Give the pin configuration of IC 74139 and IC 74153.
8. What is the function of comparator?
9. How can we compare any 2 bit binary numbers?
10. Is it possible to compare 2 bit binary number using IC 7483? If yes, how?
11. How do you compare 4 bit binary number?
12. What is a magnitude comparator?
13. We can divide a number into two parts. What are they?
14. If a number is a positive number, then sign bit is ----------------- and a number if negative, then sign
bit is ---------------------.
15. What is magnitude of a number?
16. What is meant by cascading inputs?
17. Define Logic 1 and logic 0?
18. Let A be a 2 bit number and B be another 2 bit number, if A > B, then Cout = ------ and S
19. Is it possible to perform comparison of two, 8-bit number using magnitude comparator?
20. Where are the comparators used?
Aim : To set up and test a 7 segment static dispaly system to dislay numbers 0 to 9
Theory:
Seven segments display is the most popular display device used in digital systems. If the o/ps are active-
low, then the 7-segments LED must be of the common anode type, whereas if the o/p are active high, the
7 segment LED must be of the common cathode type.
The decoder/driver circuit has 4 i/p lines for BCD data and 7 output lies to drive a 7-segment
display. output terminals a through g of the decoder are to be connected to a through g terminals of the
display respecti\vely.The seven-segment indicators are usually of the common-anode type, where all the
anodes are strapped together and connected to a voltage +v.It is necessary to connect a current limiting
resistor (3 0r 8) to the LE D.The seven segment decoder/driver is designed to accepts four i/ps in he
8421 BCD code and to provide the appropriate o/p to drive a seven segment numerical display.
One such decoder /driver is the 7446/7447 IC decoder which drives a common anode indicator
mentioned earlier. Logic lets inside the decoder convert the BCD I/p to the required o/p.
For Example:
If the BCD i/p 0101, the internal logic of the decoder will force LEDs a, c, d, f and g to conduct as the
relevant transistors go in to saturation.Consequently, and digit 5 will be displayed on the seven-segment
indicator.
Procedure:
1. Check all the components and IC packages using millimeter and digital IC tester.
2. Make Connection as shown in the logic diagram
3. Give supply to the trainer kit
4. Provide the input data to the circuit via switches
5. Verify the truth table sequence and observe the o/ps
Logic diagram:
+ 5V
1K
16
(LSB) A 7 13 7 3 or 8
B 12 6
1
7 11 4
4
C 2 10 2
4
7
D 6 9 1
(MSB) 15 9
LT 14
10
BI/RBO 8 o 5 (open)
RBI .
Truth table:
Decimal
BCD Inputs Output logic levels from IC 7447 to 7 -segment number
display
D C B A a b c d e f g
0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 1 1 0 0 1 1 1 1 1
0 0 1 0 0 0 1 0 0 1 0 2
0 0 1 1 0 0 0 0 1 1 0 3
0 1 0 0 1 0 0 1 1 0 0 4
0 1 0 1 0 1 0 0 1 0 0 5
0 1 1 0 1 1 0 0 0 0 0 6
0 1 1 1 0 0 0 1 1 1 1 7
1 0 0 0 0 0 0 0 0 0 0 8
1 0 0 1 0 0 0 1 1 0 0 9
Result: The BCD to 7 segment display circuit is verified using decoder IC-7447.
Aim: 1.To set up a circuit of decimal to- BCD encoder using IC 74147
2 to set up a circuit of Octal to binary encoder using IC 74148
Theory :
Decimal to- BCD encoder:
One of the most commonly used i/p device for a digital system is a set of ten switches one for each
numeral between 0 & 9.These switches generate 1 or 0 logic levels in response to turning them, of or on,
when a particular number is to be fed to the digital circuit in BCD code, the switch corresponding to that
number is pressed. There is an IC available for performing this function (74147),which is a priority
encoder the block diagram of IC 74147 is given in fig A and table gives its truth table, it has active low
i/ps and o/ps the meaning of the word priority can be seen from the truth table for example if i/ps 3 &
7are ;low the o/p will be corresponding to 7 which has a higher priority than 3 that is the highest
numbered i/p has priority over lower numbered i/ps
Procedure:
1. Check all the components and patch chords whether they are in good condition
2. Set up the circuits as shown in the logic diagram
3. Give supply to the trainer kit and feed the active-low i/p bit combinations
4. Observe the active low o/p corresponding to active low i/p combinations and verify the truth
table.
(MSB)
5
I8
10 8
I9
Inputs Output
I1 I2 I3 I4 I5 I6 I7 I8 I9 A3 A2 A2 A1
1 1 1 1 1 1 1 1 0 0 1 1 0
X X X X X X X 0 1 0 1 1 1
X X X X X X 0 1 1 1 0 0 0
X X X X X 0 1 1 1 1 0 0 1
X X X X 0 1 1 1 1 1 0 1 0
X X X 0 1 1 1 1 1 1 0 1 1
X X 0 1 1 1 1 1 1 1 1 0 0
X 0 1 1 1 1 1 1 1 1 1 0 1
0 1 1 1 1 1 1 1 1 1 1 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1
I9 I7 8
Truth table :
Inputs Outputs
EI I0 I1 I2 I3 I4 I5 I6 I7 A2 A1 A0 Gs E0
1 X X X X X X X X 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 1 1
0 X X X X X X X 0 0 0 0 0 1
0 X X X X X X 0 1 0 0 1 0 1
0 X X X X X 0 1 1 0 1 0 0 1
0 X X X X 0 1 1 1 0 1 1 0 1
0 X X X 0 1 1 1 1 1 0 0 0 1
0 X X 0 1 1 1 1 1 1 0 1 0 1
0 X 0 1 1 1 1 1 1 1 1 0 0 1
0 0 1 1 1 1 1 1 1 1 1 1 0 1
Result : The decimal to BCD and Octal to binary Priority encoder verified using 74148.
VIVA QUESTIONS :
Decoder:
1. What are the applications of decoder?
2. What is the difference between decoder & encoder?
3. For n- 2n decoder how many i/p lines & how many o/p lines?
4. What are the different codes & their applications?
5. What are code converters?
6. Using 3:8 decoder and associated logic, implement a full adder?
7. Implement a full Subtractor using IC 74138?
8. What is the difference between decoder and de-mux?
9. What is the function of a decoder?
10. Give the pin configuration of decoder chip?
7-segment display:
1. What are the different types of LEDs?
2. Draw the internal logic diagram of an LED.
3. What are the applications of LEDs?
4. What is the difference between common cathode configuration and common anode configuration?
5. Give the difference between LED and LCD.
6. How does an LED work?
7. What is meant by active low and active High?
8. What does Pull-up resistor or current limiting resistor, mean?
9. Why R is chosen as 330?
Priority Encoder:
1. What is a priority encoder?
2. What is the role of an encoder in communication?
3. What is the advantage of using an encoder?
4. What are the uses of validating outputs?
5. What is the function of RBO, RB1 and LT?
6. What is an Encoder?
7. What is priority encoder?
Aim: a) Rig up a Master Slave J-K Flip-Flop and verify its Truth Table
Theory:
Master flip flop: It is constructed from two separate flip flops, master section and slave section in
series .A clock i/p of the slave section is compliment of the clock i/p of the master i/p section
D Flip flop: It takes the state on its i/p and holds it until clocked again .Only a single i/p line is needed
for a transfer.
T flip flop: It provides the toggle action. Due to this type of flip flop changes its state with each i/p clock
pulse and hence such flip flops are used in a counting arrangements
Procedure:
1 Check all the components and patch chords whether they are in good condition
2 Make Connection as shown in the logic diagram
3. Give supply to the trainer kit
4. For MS JK Flip flop connect PRE and CLR to 1 and apply manually operated clock pulses to the
clock terminal and observe the o/p for all possible i/p combinations
5. Verify the truth tables of D and T flip flops
Master Slave
Pr Q
J
Clk
K
Q
Clr
Truth Table:
0 1 X X 0 1 0 Set
1 0 X X 0 0 1 Reset
1 1 0 0 Qn Qn No Change
1 1 0 1 0 1 Reset
1 1 1 0 1 0 Set
1 1 1 1 Qn Qn Toggle
D- FlipFlop:
Master Slave
Pr Q
D
Q
Clr
Clk
Truth Table:
T Flip Flop:
Master Slave
Pr
Q
T
Q
Clr
Clk
Truth Table:
preset Clear Tn Clock Q Q
0 1 X 0 1 0
1 0 X 1 0 1
1 1 0 2 Previous state
1 1 1 3 0/1 1/0 Toggles
Result: The master slave J-K, D and T flip flop are verified .
VIVA QUESTIONS :
Aim: To design and test a 3 bit synchronous counter using 7476 FOR the given sequence:
1. Mod 5 Synchronous counter
2. Mod 8 Synchronous counter
Theory:
The ripple counter requires a finite amount of time for each flip flops to change state. The propagation
delay causes case flip flop in the counter to change state at a lower time than the first, resulting in a
serious limitation in the operating frequency. This problem can be solved by using a synchronous of
parallel counter, where every flip flop is triggered in synchronism with the clock, and all o/ps scheduled
to change do so simultaneously.
The structure, waveforms & truth tables of the synchronous counters are given below. the counter
progresses upwards in a natural binary sequence from count 000 to100 , advancing one. Count with every
negative clock transition and gets back to 000 after this cycle. We call this as mod 5 counter.
Procedure:
1. Connections are made as shown in the logic diagram
2. Find the number of FFs required using the equation
i. M 2n ----- this equation determines.
3. Write the count sequence in the tabular form
4. Prepare the excitation table of the FFs and determine the FF i/ps which must be present for the
desired next state from the present state
5. In terms of flip flop outputs prepare K map for each FF i/p and simplify the K-maps expression
in to a minimized form.
6. make connections as shown in the logic diagram
7. verify the truth table sequence and observe the o/ps.
Pin diagram :
Gnd
K1 Q1 Q1 K2 Q2
Q2 J2
16 15 14 13 12 11 10 9
IC 7476
1 2 3 4 5 6 7 8
Cp = Clock pulse
Pr = Preset
Cr = Clear
Q = uncomplemented o/p
Q = Complemented o/p
J & k = i/ps
Pr Cr Clk J K Q+ Q+
1 1 1 0 0 Q Q
No change
1 1 2 0 1 0 1 Reset
1 1 3 1 0 1 set
1 1 4 1 1 1/0 0/1 Toggle
Excitation Table:
Q+ Q+ j k
0 0 0 Q
0 1 1 1
1 0 X 1
1 1 X 0
Transition Table:
Present State Next State Inputs
QC QB QA QC QB QA JA KA JB KB JC KC
0 0 0 0 0 1 1 X 0 X 0 X
0 0 1 0 1 0 X 1 1 X 0 X
0 1 0 0 1 1 1 X X 0 0 X
0 1 1 1 0 0 X 1 X 1 1 X
1 0 0 0 0 0 0 X 0 X X 1
QB QA QB QA
00 01 11 10 00 01 11 10
QC QC
0 0 X 1 1 X
JA=QC
1 1 X X X X
KA=1
QB QA QB QA
00 01 11 10 00 01 11 10
QC QC
0 0
JB=QA KB=QA
1 1
QB QA
QBQA
00 01 11 10
00 01 11 10 QC
QC
0 X X X X
0 0 0 1 0
1 1 X X X
1 X X X X
KC=1
JC=QA. QB
QC
QA QB
Vcc
Logic 1
Vcc
Clr Clr Clr
Clk
Mod 8 Synchronous counter (0-7) Logic 1
Transition table
K -map
QB QA
QB QA
00 01 11 10
00 01 11 10
Qc
0 Qc X 1 1 X
JA=1
1 X 1 1 X Page 69
Dept. of Electrical and Electronics 2014-2015
KA=1
Logic Design LAB Manual
0
1
QB QA QB QA
00 01 11 10 00 01 11 10
QC
Qc 1 1 X X
0 0
KB=QA
1 1 1 X X 1
JB=QA
QB QA QB QA
00 01 11 10 00 01 11 10
Qc 1 X X 1 Qc
0 0
KC=QA.QB
1 1 X X X 1
JC=QB.QA
Logic diagram:
Mod 8 Synchronous counter
QA QC
QB
Vcc
Vcc
Vcc
Clr Clr Clr
Clk
Result : The Mod-5, Mod-8 counters are designed, implemented and verified.
VIVA QUESTIONS :
Aim: To conduct an experiment to perform the following operations on a given 4 bit data using 7495.
i) Right Shift ii) SIPO iii) SISO iv) PIPO v) PISO vi) Left Shift
vii) Ring Counter
Components Required :
IC-7495, patch chords, power chord.
Theory: The IC-7495 is a 4-bit shift register, which has four flip-flops arranged sequentially. These are
capable of moving the contents position wise w.r.t.the clock input. Normally the shift registers are
classified into two categories
* Unidirectional
* Bi-directional
In our syllabus we use the different unidirectional shift registers like SISO, SIPO, PISO, PIPO
depending on the way the i/ps given and the o/ps taken. The i/ps & o/ps can be serial or parallel form.
Procedure:
For Right Shift & ii) Serial in Parallel out
1) Connections are made as shown in the logic diagram.
2) Apply the data at serial i/p
3) Apply one clock pulse at clock 1(Right Shift) observe this data at QA.
4) Apply the next data at serial i/p.
5) Apply one more clock pulse at clock 1, observe that the data on QA will shift to QB and the new
data applied will appear at QA.
6) Repeat steps 2 and 3 till all the 4 bits are entered one by one into the shift.
O/PS
14 13 2 11 10 9 8
IC 7495
1 2 3 4 5 6 7
DS A B C D MC Gnd
S S S
I/Ps
VCC QA QB QC QD CLK1
c c
14 13 2 11 10 9 8
IC 7495
1 2 3 4 5 6 7
DS MC Gnd
S
Truth table :
Clock Mc DS QA QB QC QD
1 0 1(D0 1 X X X
)
2 0 1(D1 1 1 X X
)
3 0 0(D2 0 1 1 X
)
4 0 1(D3 1 0 1 1=D0
)
5 0 - X 1 0 1=D1
6 0 - X X 1 0=D2
7 0 - X X X 1=D3
8 0 - X X X X
Truth Table:
Clock Mc DS QA QB QC QD
1 0 0(D0) 0 X X X
2 0 1(D1) 1 0 X X
3 0 0(D2) 0 1 0 X
4 0 1(D3) 1 0 1 0 Parallel out
D3 D2 D1 D0
III PISO (parallel In serial out)
Out puts
VCC QA QB QC QD CLK1
c c
14 13 2 11 10 9 8
IC 7495
1 2 3 4 5 6 7
Dept. of Electrical DS
and Electronics
A B C D2014-2015
MC Gnd Page 76
S S S
Logic Design LAB Manual
CLK M A B C D Q Q Q Q
1 C A B C D
1 1 1 1 0 1 1 1 0 1
2 0 - - - - X 1 1 0
3 0 - - - - X X 1 1
4 0 - - - - X X X 1
A,B.C,& D I/Ps
QA,QB,QC,QD O/Ps
QC
QB
QD
c
VCC QA CLK 2
c
14 13 12 11 10 9 8
IC 7495
1 2 3 4 5 6 7
MC Gnd
Truth Table:
Clock 2 D QA QB QC QD
1 1 X X X 1
2 0 X X 1 0
3 1 X 1 0 1
4 0 1 0 1 0
5 __ 0 1 0 X
6 __ 1 0 X X
7 __ 0 X X X
8 __ X X X X
D I/P
QA,QB,QC & QD O/Ps
VIVA QUESTIONS :
1. What are PISO, SIPO, and SISO with respect to shift register
2. Differentiate between serial data & parallel data
3. What is the significance of Mode control bit?
Aim: To realize the operation of ring and Johnson counter using 7495.
Components Required: I.C.7495, patch chords, digital trainer.
Theory:
Ring counter
Ring counter is a basic register with direct feedback such that the contents of the registers simply
circulated around the register when the clock is running. Here the last output that is QD in a shift register
is connected back to the serial input. A four bit shift register ring counter is shown in figure.
Johnson counter
A basic ring counter can be modified slightly to produce another type of shift register counter, which
will have somewhat different properties. That type of basic shift register with inverse feed back is
called shift counter or a Johnson counter or a twisted ring counters. In Johnson counter the
compliment of the last outp8t that is QD is connected back to the not gate input and the Not gate output
is connected back to the serial input. The four bit Johnson counter gives a total of eight states. As the
clock pulse is applied at pin no 9 will fill up with one (1) from left to right and then it will fill up with
0.
Procedure :
1) Connections are made as shown in the logic diagram.
2) Apply the data 1000 at A,B,C,D respectively.
3) Keeping the mode M=1, apply one clock pulse.
4) Now the mode M is made 0 and clock pulse are applied one by one and the truth table is verified
VCC QA QB QC QD CLK1
c c
14 13 2 11 10 9 8
IC 7495
1 2 3 4 5 6 7
DS A B C D MC Gnd
S S S
* MC = mode control = 0
Truth table
ClK 1 QA QB QC QD
0 1 0 0 0
1 0 1 0 0
2 0 0 1 0
3 0 0 0 1
4 1 0 0 0
5 0 1 0 0
6 0 0 1 0
7 0 0 0 1
8 1 0 0 0
VCC QA QB QC QD CLK1
c c
14 13 2 11 10 9 8
IC 7404
IC 7495
1 2 3 4 5 6 7
DS A B C D MC Gnd
S S S
Truth Table:
Mode Clock QA QB QC QD
0 0 0 0 0 0
0 1 1 0 0 0
0 2 1 1 0 0
0 3 1 1 1 0
0 4 1 1 1 1
0 5 0 1 1 1
0 6 0 0 1 1
0 7 0 0 0 1
0 8 0 0 0 0
0 9 1 0 0 0
Result: The ring and Johnson counter are verified using IC-7495.
VIVA QUESTIONS :
Components Required: Digital trainer kit, IC 7495 & 7486, patch chords.
Theory:
A sequential circuit, which generates a prescribed sequence of bits, in synchronism with a clock, is
referred as sequence generator. For the design of sequence generator we must determine the required
number of the clocks and the logic circuit for the next state decoder. The output of next state decoder is
function of Qa, QB, QC, QD Qn. The next state decoder is the logic circuit, which decodes the output of
the shift register and generates the output to get desired sequence from QA output of the shift register.
Procedure:
Logic diagram:
Y
VCC QA QB QC QD CLK1
c c
14 13 2 11 10 9 8
IC 7495
1 2 3 4 5 6 7
A B C D MC Gnd
Serial input
S S
Truth table :
K-Map:
S QA QB QC QD
1 1 1 0 1
1 1 1 1 0 X X X X
0 1 1 1 1 X 1 1 X
1 0 1 1 1 X 1 0 1
0 1 0 1 1 X X 0 1
1 0 1 0 1
1 1 0 1 0
S = QA +QC +QD
Logic diagram :
Y
VCC QA QB QC QD CLK1
c c
14 13 2 11 10 9 8
IC 7495
1 2 3 4 5 6 7
DS A B C D MC Gnd
S S
VIVA QUESTIONS :