Logic Design
Logic Design
2012-13
Department of Electronics & Communication
LOGIC DESIGN LAB MANUAL
III SEM BE
Name :
Sem : . Sec:
Contents
Exp No
Title
Page No.
1.
1-2
2.
3-7
3.
Parallel Adder/Subtractor.
9-11
4.
13-15
5.
17-19
6.
21-24
7.
25-28
8.
Comparators
29-31
9.
33-35
10.
Flip-Flops
37-39
11.
Asynchronous counters
41-44
12.
Synchronous counters
45-46
13.
47-53
14.
Shift Registers
55-58
15.
59-60
Implementation:
Using Basic Gates:
Page 1
EXPERIMENT NO. 1:
DATE: / /
AIM: To Simplify and Realize Boolean Expressions Using Logic Gates/Universal Gates.
APPARATUS REQUIRED:- IC Trainer Kit, patch chords, IC7408, IC7432 , IC7400,
IC7402, IC 7404,IC 7486.
Procedure:
1. Place the IC in the socket of the trainer kit.
2. Make the connections as shown in the circuit diagram.
3. Apply the different combinations of input according to truth table and verify the
output.
Simplification of expression:Y=(A,B,C,D)= (5,7,9,11,13,15)
Write the expression using K-map
Y=ABCD+ABCD+ABCD+ABCD+ABCD+ABCD
Y =ABD (C+C)+ABD(C+C)+ABD(C+C)
Y =ABD+ABD+ABD
Y =BD(A+A)+ABD
Y=BD+ABD
Y=D(B+AB)
Y=D(A+B)
Y =AD+BD
Exercise: Simplify and realize the following POS expn. and implement using nand
gates only: Y(A,B,C,D)=(5,7,9,11,13,15)
Page 2
Truth Table
A
0
0
1
1
Circuit Diagram
USING BASIC AND XOR GATES
Page 3
EXPERIMENT NO. 2:
DATE: / /
ii.
Apparatus Required: IC Trainer Kit, patch chords , IC 7486, IC 7432, IC 7408, IC 7400, etc.
Procedure: 1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to the truth
table.
4. Note down the output readings for half/full adder and half/full subtractor
sum/difference and the carry/borrow bit for different combinations of
inputs.
Exercise: Implement half/full adder and half/full adder circuits using NOR gates
only. Which is better, NAND or NOR? Why?
Page 4
Full Adder
Logic Diagram
Ci
0
0
0
0
1
1
1
1
A
0
0
1
1
0
0
1
1
B
0
1
0
1
0
1
0
1
Truth Table
Sum (S) Carry (Co)
0
0
1
0
1
0
0
1
1
0
0
1
0
1
1
1
Circuit Diagram
USING BASIC AND XOR GATES
Page 5
Truth Table
A B
0
0
1
1
0
1
0
1
Diff
(D)
0
1
1
0
Borrow
(B0)
0
1
0
0
Circuit Diagram
USING BASIC AND XOR GATES
DIFF
BORROW
Page 6
Page 7
Logic Diagram:
Truth Table
Circuit Diagram
(USING BASIC AND XOR GATES)
Page 8
Page 9
7483
Adder: -
Page 10
EXPERIMENT NO. 3:
DATE: / /
PARALLEL ADDER/SUBTRACTOR
Exercise:
Implement parallel adder/subtractor using IC 7483 and xor gates.
Page 11
Page 12
Page 13
Outputs
B3 B2 B1 B0
E3
(v)
E2
(v)
E1
(v)
E0
(v)
1
0
0
1
Circuit diagram using NAND gates
only:
Page 14
DATE: / /
Exercise:
Implement BCD to excess-3 and excess-3 to BCD code converter using parallel
adder IC 7483.
Page 15
Outputs
1 1 0 0 1
Circuit diagram using NAND gates only:
Page 16
Page 17
Binary to Gray:
Page 18
EXPERIMENT NO. 5:
DATE: / /
Exercise:
Implement binary to gray and gray to binary code converter using nand gates
only.
Page 19
G2
G1
G0
B3
B2
B1
B0
Page 20
Page 21
Pin Details: -
CHANNEL B
SELECT
INPUTS
INPUTS
O/P
SELECT O/P
LINES
LINES
Ioa
I1a
I2a
I3a
S1
S2
Za(v)
Iob
I1b
I2b
I3b
S1
S2
Za(v)
Page 22
EXPERIMENT NO. 6:
DATE: / /
MULTIPLEXER USING IC 74153
Page 23
Page 24
A B Sn (V) Cn (V)
0 0
0 1
1 0
1 1
Full subtractror
An Bn Cn-1 Dn (V) Bn (V)
Half subtractor
A B Dn (V) Bn (V)
0 0
0 1
1 0
1 1
Page 25
CHANNEL B
Outputs
Inputs
Outputs
Half subtractor:-
Page 26
DATE: / /
DE-MULTIPLEXER USING IC 74139
Page 27
Truth Table
Half Subtractor
A B Dn (V) Bn (V)
0 0
0 1
1 0
1 1
Full Subtractor
Bn
Cn1
Dn
(V)
Bn
(V)
An
Page 28
Page 29
Truth-table
Y0
A
Y1
Y2
B
(A<B) (A>B) (A=B)
A1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
A0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
B1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
B0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Y2(A=B)
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
Y1(A>B)
0
0
0
0
1
0
0
0
1
1
0
0
1
1
1
0
Y0(A<B)
0
1
1
1
0
0
1
1
0
0
0
1
0
0
0
1
Page 30
Experiment No:8
COMPARATORS
Aim: - To verify the truth table of one bit and two bit comparators using logic
gates and four bit and eight bit comparators using IC 7485.
Implement one bit, two bit comparator circuit using nand gates only.
Page 31
FUNCTION TABLE :
Comparing
Cascading
I/Ps
I/Ps
Outputs
A=B
A<B
X
1
X
0
0
1
X
X
0
1
0
0
0
X
X
0
X
1
0
1
X
1
1
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
1
MSB
Page 32
PIN DETAILS:-
Page 33
FUNCTION TABLE:
EI
H
L
L
L
L
L
L
L
L
L
0
X
H
X
X
X
X
X
X
X
L
1
X
H
X
X
X
X
X
X
L
H
INPUTS
2
3
4
X
X
X
H
H
H
X
X
X
X
X
X
X
X
X
X
X
L
X
L
H
L
H
H
H
H
H
H
H
H
5
X
H
X
X
L
H
H
H
H
H
6
X
H
X
L
H
H
H
H
H
H
7
X
H
L
H
H
H
H
H
H
H
A2
H
H
L
L
L
L
H
H
H
H
OUTPUTS
A1 A0 GS
H
H
H
H
H
H
L
L
L
L
H
L
H
L
L
H
H
L
L
L
L
L
H
L
H
L
L
H
H
L
E0
H
L
H
H
H
H
H
H
H
H
Page 34
Experiment No: 9
DATE: __/__/____
ENCODER & DECODER
AIM:-To convert a given octal input to the binary output and to study the LED
display using 7447 7-segment decoder/ driver.
PROCEDURE: - (Decoder)
1. Connections are made as per the circuit diagram.
2. Connect the pins of IC 7447 to the respective pins of the LED display board.
3. Give different combinations of the inputs and observe the decimal numbers
displayed on the board.
Exercise: Implement the following expression using decoder and logic gates.
Page 35
Page 36
DECIMAL
DIGIT
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
15
LED
DISPLAY
VALUE
0
1
2
3
4
5
6
7
8
9
1
0
1
1
0
1
0
1
1
1
1
1
1
1
1
0
0
1
1
1
1
1
0
1
1
1
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
0
0
1
1
1
0
1
1
0
0
1
1
1
1
1
0
1
1
No seg.
glows
Page 37
K Clock Qn+1
Qn + 1
X X
Set
X X
0 0
Qn
Qn
0 1
Reset
No
Change
Reset
1 0
Set
1 1
Qn
Qn
Toggle
D Flip-Flop:-
7410
Qn + 1
Page 38
Experiment No: 10
FLIP-FLOPS
Exercise:
Page 39
Truth Table:-
Qn + 1
Qn
Qn
Qn
Qn
SR Flip-flop:
Truth-table:
Page 40
Page 41
Truth-table:
3-bit Asynchronous up counter
Clock
QC
QB
QA
0
0
0
0
1
0
0
1
2
0
1
0
3
0
1
1
4
1
0
0
5
1
0
1
6
1
1
0
7
1
1
1
8
0
0
0
9
0
0
1
Circuit Diagram: - 3-Bit Asynchronous Down Counter
Page 42
Date: __/__/____
ASYNCHRONOUS COUNTERS
Page 43
Truth-table:
3-bit Asynchronous down counter
Clock
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
9
1
1
0
Mod 5 Asynchronous up Counter:-
Truth-table:
Mod 5 Asynchronous counter
Clock
QC
QB
QA
0
0
0
0
1
0
0
1
2
0
1
0
3
0
1
1
4
1
0
0
5
0
0
0
Page 44
Truth-table:
Clock QB QA
0
0
0
1
0
1
2
1
0
3
0
0
Mod 4 Asynchronous down Counter:QA
QB
7432
Vcc
Pre
clk
clk
Pre
Q
7476
J
clk
Q
7476
K
Clr
Clr
Vcc
Truth-table:
Clock QB QA
0
1
1
1
1
0
2
0
1
3
0
0
Page 45
State Diagram
Page 46
Date: __/__/____
SYNCHRONOUS COUNTERS
Page 47
Page 48
Date: __/__/____
DECADE AND BINARY COUNTERS
Page 49
Page 50
Page 51
Page 52
Page 53
Page 54
Page 55
Clock
Serial
i/p
do=0
d1=1
d2=1
d3=1
0=do
1=d1
1=d2
1=d3
SISO:-
QA QB QC
QD
Page 56
Date: __/__/____
SHIFT REGISTERS
Aim:-
Procedure: Serial In Parallel Out:5. Connections are made as per circuit diagram.
6. Apply the data at serial i/p
7. Apply one clock pulse at clock 1 (Right Shift) observe this data at QA.
8. Apply the next data at serial i/p.
9. Apply one clock pulse at clock 2, observe that the data on QA will shift to QB
and the new data applied will appear at QA.
10. Repeat steps 2 and 3 till all the 4 bits data are entered one by one into the
shift register.
Page 57
PISO:-
Parallel o/p
A B C D QA QB QC QD
1
1 0 1 1
X X X X
X X X X
X X X X
PIPO:-
Parallel o/p
A B C D QA QB QC QD
1
1 0 1 1
Page 58
Page 59
Mode Clock QA QB QC QD
1
repeats
Johnson Counter:-
Mode Clock QA QB QC QD
10
repeats
Page 60
Date: __/__/____
JOHNSON COUNTERS / RING COUNTER
Aim:-
Page 61
7404(NOT)
7432(OR)
7402(NOR)
7408(AND)
7486(XOR)
Page 62
7410(3-i/p NAND)
7420(4-i/p NAND)
Page 63