Logic Design
Logic Design
LIST OF EXPERIMENTS
Logic Design Lab (11EC208)
NOT GATE
OR
GATE
AND GATE
NAND GATE
NOR GATE
XOR GATE
EX-NOR GATE
Procedure:
1.Place the Ic in the socket of the trainer kit.
2. Make the connections for the gate as shown in the circuit diagram.
3. Verify the Truth Table.
4.Repeat the above steps for other gates in the different Ic chips.
THEORY : To minimise a boolean expression we can emplay any one of the following techniques: i)
Boolean Algebra ii) Karnaugh maps.
Before we proced to simplification techniques, two forms of the Boolean expression must be noted
Truth Table
A B C D Y=(A+B)D
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 1
0 1 1 0 0
0 1 1 1 1
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 1
1 1 0 0 0
1 1 0 1 1
1 1 1 0 0
1 1 1 1 1
Procedure:
1.Place the Ic in the socket of the trainer kit.
*complex boolean Expression s are simplified by using K maps.
2. make the connections as shown in the circuit diagram.
Dept Of Electronics & Communication Engineering
LOGIC DESIGN LAB MANUAL 3rd Semester
3.Apply diff combinations of i/ps according to the truth table . verify the o/p.
4 repeat the above procedure for all the circuit diagrams.
*NOTE: The Truth Table is common for Both SOP and POS form.
Procedure:
Verify the truth table for half adder and full adder circuits using basic and universal gates.
HALF SUBTRACTOR
Truth Table Circuit Diagram
A B Diff Barrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Logic Diagram
Procedure:
verify the truth table for half subtractor and full subtractor circuits using
basic and universal gates.
EXPERIMENT-3
AIM: (1) REALISATION of Parallel adder/subtractor using 7483chip
(2) BCD to XS3 code conversion and vice versa
Components required :-
THEORY:
The IC 7483 is a 4- bit parallel adder IC that contains four inter connected FAs
high speed operation.the inputs to this IC are two 4-bit numbers A3,A2,A1,A0 & B3,B2,B1,B0
and the carry Cin in to the LSB position.The outputs are the sum bits ∑3, ∑2,∑1,∑0. and the
Cout of the b position.
Pin diagram:
LOGIC diagram
Block Diagram
Procedure:
1. Make the connections as shown .
2. For addition ,make Cin=0 and apply the 4 bits as i/p for A and apply another set of 4 bits
to B. Observe the o/p at S3, S2 S1 S0 and carry generated at Cout.
Repeat the above steps for different inputs and tabulate the result.
3.For subtration Cin is made equal to 1 and A-B format is used.
A- First no
B- second no.
By Xor –ing the i/p bits of ‘B’ by 1 , complement of ‘B’ is obtained. Further Cin ,which is 1
is added to the LSB of the Xor –ed bits. This generates 2’s complement of B.
3. Verify the difference and polarity of differences at S0, S1, S2, S3.and Cout.
If Cout is 0 , diff is –ve and diff is 2’s complement form.
If Cout is 1, diff is +ve and result is in true form.
Repeate the above steps for different inputs. And tabulate the result.
Readings:-
Cin A3 A2 A1 A0 B3 B2 B1 B0 Cout S3 S2 S1 S0
0 1 0 0 1 1 0 0 1 1 0 0 1 0
0 0 1 1 1 0 0 0 1 0 1 0 0 0
1 1 0 0 1 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 1 1 0 1 1 1 0
BCD XS3
B4 B3 B2 B1 X4 X3 X2 X1
Circuit Diagram 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
BCD to XS-3 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
code conversion and vice-versa can be implemented using Ic 7483 along with 7486 Xor gates. The four
i/p bits of ‘B’ ie B3, B2, B1, B0, are fixed as 0011. cin =0, performs addition and Cin =1 performs
subtraction.
For BCD to xs –3 code conversion 3 has to be added to i/p bits of A there for Cin =0.
For Xs-3 to BCD code conversion ‘3’ has to be subtarcated from the i/p of A therefor Cin =1.
AIM: To Design and set up (i) 4-bit Binary to Gray code converter circuit and
(ii) 4-bit Gray to binary code circuit using gates.
Components required :-
1)7486(XOR) 2)7400(NAND)
G3=B3
G2 = ∑(4,5,6,7,8,9,10,11)
G2 =
GRAY TO BINARY
LOGIC DIAGRAM
Procedure:
1. Place the Ic’s in the socket of the trainer kit.
3.Apply different combinations of the input according to the truth table and verify the
THEORY:
A Magnatitude comparater is a combinational circuit that compares two numbers, A and B , and
determines their relative magnitudes. The out come of the comparision is specified by three binary
variables that indicates wheather
A>B
A=B
A<B IC 7485 PIN DETAILS
TRUTH TABLE
Circuit diagram
A3>B3 X X X X X X 1 0 0
A3<B3 X X X X X X 0 0 1
A3=B3 A2>B2 X X X X X 1 0 0
A3=B3 A2<B2 X X X X X 0 0 1
A3=B3 A2=B2 A1>B1 X X X X 1 0 0
A3=B3 A2=B2 A1<B1 X X X X 0 0 1
A3=B3 A2=B2 A1=B1 A0>B0 X X X 1 0 0
A3=B3 A2=B2 A1=B1 A0<B0 X X X 0 0 1
A3=B3 A2=B2 A1=B1 AO=B0 1 0 0 1 0 0
A3=B3 A2=B2 A1=B1 AO=B0 0 0 1 0 0 1
A3=B3 A2=B2 A1=B1 AO=B0 X 1 X 0 1 0
A3=B3 A2=B2 A1=B1 AO=B0 0 0 0 1 0 1
A3=B3 A2=B2 A1=B1 AO=B0 1 0 1 0 0 0
EXAMPLES-
Procedure:
1)Rig up the circuit for one bit &two bit comparator as shown in the figure using IC 7485
magnitude comparator and basic gates.
2)Verify the Table of values .the output obtained should match the required result.
AIM: To Realise 4:1 MUX using (i) NAND gates and (ii) IC 74153
Components required :-
S0 Y
0 A
1 B
LOGIC DIAGRAM
S1 S0 I0 I1 I2 I3 Y
0 0 I0 X X X I0
0 1 X I1 X X I1
1 0 X X I2 X I2
1 1 X X X I3 I3
LOGIC DIAGRAM
IC 74153 : the IC 74153 is a dual 4-i/p mux that can select 2 bits of data from up to eight sources
under the control of the common select inputs (S0,S1). The two 4- i/p Mux circuits have individual
active low enables (E1,E2) which can be used to strobe the outputs independently outputs (Y1,Y2) are
forced low when the correspondinf enables (E1,E2) are high.
E S1 S0 Yn When E1 and E2 =1, device is not enabled and outputs are zero
1 X X 0
0 0 0 An
0 0 1 Bn
0 1 0 Cn
0 1 1 Dn
REALISATION OF HALF ADDER USING IC
TRUTH TABLE
A B SUM Cout
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
CIRCUIT DIAGRAM
FULL ADDER
TRUTH TABLE
Here the outputs sum and carry out are represented in terms of input cin.
CIRCUIT DIAGRAM
HALF SUTRACTOR
FULL SUTRACTOR
TRUTH TABLE
A B Bin Diff Bout
0 0 0 0 0 A B Diff Bout
0 0 1 1 1 0 0 Bin Bin
0 1 0 1 1 0 1 1
0 1 1 0 1 1 0 0
1 0 0 1 0 1 1 Bin Bin
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
CIRCUIT DIAGRAM
DEMULTIPLEXER
S1 S0 I Y0 Y1 Y2 Y3
0 0 I I 0 0 0
0 1 I 0 I 0 0
1 0 I 0 0 I 0
1 1 I 0 0 0 I
FUNCTIONAL TABLE
A(S1) B(S0) Y3 Y2 Y1 Y0
1 X X 1 1 1 1
0 0 0 1 1 1 0
0 0 1 1 1 0 1
0 1 0 1 0 1 1
0 1 1 0 1 1 1
IC 74139: The ic 74139 is a high speed dual 1 of 4 decoder/ demultiplexer. this device has two
independent decoders each accepting two binary weighted inputs (a, b) and providing four mutually
exclusive active low o/ps(Y0-Y3).each decoder has an active low enable (E) when E=1 every o/p is
forced high. The enable can be uysed as the data input for a 1 of 4 DEMUX application
LOGIC DIAGRAM
TRUTH TABLE
A B Cin SUM Cout
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
Sum =∑1,2,4,7
Carry =∑3,5,6,7
LOGIC DIAGRAM
TRUTH TABLE
Diff = ∑1,2,4,7
Bout = ∑1,2,3,7
LOGIC DIAGRAM
BCD XS3
B4 B3 B2 B1 X3 X2 X1 X0
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 0 0
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
Procedure:
1) Rig up the circuit using NAND gates and then with IC74139 and 74153 as shown in figure.
EXPERIMENT-7
Components required :-
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
Procedure:
1) set up the circuit as shown in figure.
2) Apply logic ‘0’ to LT (pin 3) and observe the seven segments of the LED. All
the segments must be ON.
3) Apply logic ‘1’ to LT (pin 3) and logic ‘0’ to RBI(pin 5) and BI/RBO (pin 4)
and observe the BI/RBO output and the numver displayed on the LED for all the inputs
0000 through. This is the normal decodeing mode with zero blinking
PRIORITY ENCODER
A priority Encoder is an encoder circuit that includes the priority function. The operation
of the priority encoder is such that if two or more inputs are equal to 1 at the same time
the input having the highest priority wil takes precedence.
TRUTH TABLE
1 2 3 4 5 6 7 8 9 B0 BI B2 B3
1 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 0
X 0 1 1 1 1 1 1 1 1 1 0 1
X X 0 1 1 1 1 1 1 1 1 0 0
X X X 0 1 1 1 1 1 1 0 1 1
X X X X 0 1 1 1 1 1 0 1 0
X X X X X 0 1 1 1 1 0 0 1
X X X X X X 0 1 1 1 0 0 0
X X X X X X X 0 1 0 1 1 1
X X X X X X X X 0 0 1 1 0
PIN DIAGRAM
CIRCUIT DIAGRAM
Procedure:
1.Rig up the ckt as shown in the figure.
2. Apply logic zero to LT signal and observe 7 segments of LED i.e all the lines must be ON.
3. Apply zero to blank i/p of BI and observe all the lines to be off.
4.Aplly logic 1 to LT and RBI and observe the number displayed on LED/LCD versus i/p
combinations 0000 to 1001 , this is normal decoding mode.
5 Apply logic 1 to LT and Zero to RBI and observe RBO o/p and number displayed on LED/LCD
versus i/p combinations . this is normal decoding mode with zero blanking.
6. Verify the truth table.
Observation:-
LT =0, all the segment are ON
BI and RBI=1
LT=0/1 , BI=0 RBI=1 all the segments are OFF
LT=1 , RBI=0 , RBO to Output.
Zero is not displayed
EXPERIMENT-8
AIM:- Truth Table verification of flipflops:
(i) JK Master slave (ii) T type (iii) D –type.
Components required :-
THEORY: The flip-flops can be made to respond to trailing edge of a pulse by employing
two flip-flop circuits, one to hold the output state on the trailing edge and the other to
sample the i/p information on the leading edge. Such a combination is called a master-
slave flip-flop. The MS combination can be constructed for any type of FF. In case of JK
MS FF the information present at the J and K inputs is transmitted to the master FF on the
leading edge of the clk pulse and held there until the trailing edge of clock pulse occurs
offer which if is allowd to pass through to the slave FF.
SYMBOL OF MS-JK FF
PIN DIAGRAM
TRUTH TABLE
Table 1
Inputs Output Operation
Clk Cr pr Q Performed
1 1 1 Qn+1 Normal FF(Table-2)
Note: - Keep Pr= Cr=1 for verifying the
(F.F. enabled) truth tables JK MS F.F, T and D type FF.
0 0 1 0 F.F. Cleared(Reset)
0 1 0 1 F.F. Preset(Set)
Table 2
Dept Of Electronics & Communication Engineering
LOGIC DESIGN LAB MANUAL 3rd Semester
X X Qn No Change
0 0 Qn No change
0 1 0 Reset
Qn Set
1 0
F.F. Preset(Set)
1 1
T- Type FF using MS JK FF
D - Type FF using MS JK FF
Procedure:
1)Rig up the circuit as shown in the diagarm.
2)Apply the i/ps to these flipflops as per the Truth table and observe the o/p
Verify with the truth table.
AIM : -Realization of 3-bit counters as a sequential circuit and mod-N counter design
(7476, 7490, 74192, 74193)
a) Asynchronous type b) Synchronous type
Components required :-
THEORY: A sequential circuit that gives a presecribed sequence of states upon the
application of input pulses is called counter. The straight binary sequence counter is the
simple and most straight forward. An n-bit binary counter has n flip-flops and can count
in binary from 0 to 2n -1.
PIN DIAGRAM
UP COUNT (MOD-8)
WAVE FORMS
TRUTH TABLE
DOWN COUNT
TRUTH TABLE
Number of clock Flip Flop outputs
pulses Qc Qb Qa
0 1 1 1
1 1 1 0
2 1 0 1
3 1 0 0
4 0 1 1
5 0 1 0
6 0 0 1
7 0 0 0
8 1 1 1
MOD-4 COUNTER: –
TRUTH TABLE
WAVE FORMS
WAVEFORMS
MOD-4 COUNTER-
TRUTH TABLE
WAVE FORMS:-
SYNCHRONOUS COUNTERS
THEORY:In Synchronous counters all FF are triggered simultaneously by the count pluse.
The FF is complemented only if its T input is equal to 1 the advantage of synchronous
counter is its speed, it takes only one propagation delay time for the correct binary count
to appear the clock edge bits.
UP COUNTER
DESIGN AND REALIZATION OF 3 BIT SYNCHRONOUS COUNTER USING IC7476
Excitation table
Present Next
state State J K
output output
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
STATE TABLE
CIRCUIT DIAGRAM
WAVE FORMS
MOD-6 COUNTER
In MOD-6 counter invalid state is 110
CIRCUIT DIAGRAM
WAVE FORMS
SIMPLIFICATIONS
CIRCUIT DIAGRAM
TRUTH TABLE
SIMPLIFICATIONS
CIRCUIT DIAGRAM
MOD-N COUNTERS
To realize a MOD-N counter using IC-74193 with a given preset value, write down
the expected function table
Pin details of IC 74193(Synchronous counter)
FUNCTION TABLE
Load Up Down Qd Qc Qb Qa
H X X X 0 0 0 0
L L X X D C B A
L H Cp H COUNT UP
L H H Cp COUNT DOWN
L H H H NO CHANGE
Invalid state---0101
Dept Of Electronics & Communication Engineering
LOGIC DESIGN LAB MANUAL 3rd Semester
Note:-Lo and Bo are used basically for cascading the counters
To realize a MOD-N counter using IC-7490
PIN DIAGRAM
INTERNAL DIAGRAM
CONDITIONAL TABLE
R1 R2 S1 S2 Qa Qb Qc Qd
H H L X L L L L
H H X L L L L L
X L H H 1 0 0 1
L X L X MOD-2 COUNTER
X L X L MOD-5 COUNTER
To realize a MOD-N counter using IC74192 with given preset value, write
down the expected function table
SYNCHRONOUS COUNTER
MOD-6 UP COUNTER
Invalid state-0110
EXPERIMENT NO-10
SHIFT REGISTERS
Aim- To demonstrate Shift lift shift right, SIPO, SISO, PISO, PIPO operations using IC
7495
Components required :-
PIN DIAGRAM
OF IC 7495
Clk TIME Qa Qb Qc Qd
T0 1 1
T1 0 0 1
clks T2 1 1 0 1
T3 1 1 1 0 1
T4 x 1 1 0
T5 x x 1 1
T6 x x x 1
Time Serial Qa Qb Qc Qd
data
T0 1 1
T1 0 0 1
T2 1 1 0 1
T3 1 1 1 0 1
Clk TIME Qa Qb Qc Qd
T0 1 1 0 1
T1 x 1 1 0
Clks T2 x x 1 1
T3 x x x 1
Procedure:
SERIAL IN SERIAL OUT (SISO)-shift right
(i)connect mode control(pin no 6) to ‘0’ and apply serial data at serial input at
pin no 1 terminal storing from lsb
(ii) apply clock pulses at clock one in (pin no 9) ,terminal after each data bit
and observe outputs
(iii)verify its operation as a right shift register
EXPERIMENT-11
Procedure:
(i) Connect the circuit as in the figure
(ii) To circulate logic ‘1’ -- mode control pin no 6 = 0 ,apply data ‘1’
at the serilal in put pin no 1 and apply clk pulses at clk 1 pin no
9,and observe the outputs.
(iii) Apply a clck pulse of 1 khz at the clk 1 input observe the outputs
Qa Qb Qc Qd on a dual trace CRO with ref to the clk input.
CP QA QB QC QD
t0 1 0 0 0
t1 0 1 0 0
t2 0 0 1 0
t3 0 0 0 1
t4 1 0 0 0
CP QA QB QC QD
t0 1 0 0 0
t1 1 1 0 0
t2 1 1 1 0
t3 1 1 1 1
t4 0 1 1 1
t5 0 0 1 1
t6 0 0 1 1
t7 0 0 0 1
t8 1 0 0 0
QA QB QC QD f
1 1 1 1 0
0 1 1 1 0
0 0 1 1 0
0 0 0 1 1
1 0 0 0 0
0 1 0 0 0
0 0 1 0 1
1 0 0 1 1
1 1 0 0 0
0 1 1 0 1
1 0 1 1 0
0 1 0 1 1
1 0 1 0 1
1 1 0 1 1
1 1 1 0 1
QA QB QC QD f
1 1 1 1 0
0 1 1 1 0
0 0 1 1 0
0 0 0 1 1
1 0 0 0 0
0 1 0 0 0
0 0 1 0 1
1 0 0 1 1
1 1 0 0 0
0 1 1 0 1
1 0 1 1 0
0 1 0 1 1
1 0 1 0 1
1 1 0 1 1
1 1 1 0 1
Procedure:
(i) set up the circuit as shown in firgure
(ii) load the initial state by keeping mode control pin in HIGH state.
(iii) Set mode control = ‘0’ and apply clock pulses and record all
observations.