DSD Lab Manual 2021
DSD Lab Manual 2021
DSD Lab Manual 2021
Design
Lab Manual
1 Arithmetic circuits
4 Study of Flip-flops
Aim:
To design, implement and test half adder and half subtractor, Full adder and Full subtractor.
To study 4-bit parallel adder – IC 7483
To design, implement BCD code arithmetic circuits using IC 7483
A. Half Adder
Truth table:
A B C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
S=A⊕B C=AB
B. Half Subtractor
Truth Table
Input Output
X Y D B
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
D=X⊕Y B= X Y
C. Full adder
Truth Table
Input Output
A B Cin Cout S
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
D. Full Subtractor
Truth Table
Input Output
X Y Bin D Bout
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
F. BCD adder
When two 4- bit BCD numbers are added, if the sum exceeds 9 or if there is a carry ,then
6 is added to the sum and a carry is generated to the next decimal digit. Carry from the
addition of 6 (if any) is neglected.
Exercises:
1. Implement a full adder using two half adders and one OR gate.
2. Implement a full subtractor using two half subtractors and any additional gate.
Expt. No. 2
MULTIPLEXERS AND DEMULTIPLEXERS
Aim:
To design and implement various multiplexer circuits and to generate logic
functions using multiplexers.
To design and implement Demultiplexer.
Function Table:
S1 S0 Y
0 0 D0
0 1 D1
1 0 D2
1 1 D3
Y= S1 S0 D 0 + S1 S0 D 1 +S 1 S 0 D2 +S 1 S 0 D3
B. Implement f = Σm (0, 3, 5, 7, 8, 10, 14) using i) 8:1 MUX ii) 4:1 MUX and additional gates
Function Table:
Using Using
A B C D F
8:1 MUX 4:1 MUX
0 0 0 0 1 I0 = D
0 0 0 1 0 I0 =C⊕D
0 0 1 0 0 I1 = D
0 0 1 1 1
0 1 0 0 0 I2 = D
0 1 0 1 1 I1 =D
0 1 1 0 0 I3 = D
0 1 1 1 1
1 0 0 0 1 I 4= D
1 0 0 1 0 I2 =D
1 0 1 0 1 I5 = D
1 0 1 1 0
1 1 0 0 0 I6 =0
1 1 0 1 0 I3 =C D
1 1 1 0 1 I7 = D
1 1 1 1 0
Exercises:
1. Implement 8:1 MUX using 2:1 multiplexers.
2. Implement F =Σm(0,5,7,11,15,16,18,25,29 ) using two 8:1 and one 2:1 MUX.
Expt. No. 3
ENCODERS AND DECODERS
Aim:
To design and implement Decoders and Encoders.
Function Table:
INPUT OUTPUT
A B D0 D1 D2 D3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
B. Design and implement 2 to 4 decoder with enable input using only NAND gates
Input Output
E A B D0 D1 D2 D3
0 X X 1 1 1 1
1 0 0 0 1 1 1
1 0 1 1 0 1 1
1 1 0 1 1 0 1
1 1 1 1 1 1 0
C. Design and implement Octal to Binary Priority encoder using basic gates
Truth Table:
Inputs Outputs
D0 D1 D2 D3 D4 D5 D6 D7 A B C
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
A= D4+D5+D6++D7
B= D2+D3+D6+D7
C= D1+D3+D5+D7
Exercises:
Truth Table:
INPUT OUTPUT
Truth Table:
INPUT OUTPUT
Truth Table
INPUT OUTPUT
J K Qn 1 Qn 1
Rising Edge 0 0 Qn Qn
Rising Edge 0 1 0 1
Rising Edge 1 0 1 0
Rising Edge 1 1 Qn Qn
D. T Flip-Flop using NAND gates:
Truth Table:
INPUT OUTPUT
Truth table:
Truth Table:
1 Falling Edge 0 0 Qn Qn
1 Falling Edge 1 0 1 0
1 Falling Edge 0 1 0 1
1 Falling Edge 1 1 Qn Qn
1 1 X X Qn Qn
G. Conversion of Flip-Flops
Convert D to SR Flip-flop
S R Qn Qn 1 D
0 0 0 0 0
0 0 1 1 1
0 1 0 0 0
0 1 1 0 0
1 0 0 1 1
1 0 1 1 1
1 1 0 X X
1 1 1 X X
D=S+ R Q
Exercise:
1. Convert D flip-flop to T Flip- flop
2. Convert JK flip-flop to SR Flip-flop.
Expt. No. 5
COUNTERS & SHIFT REGISTERS
Aim:
To design and test 4 bit ripple up-counter using 7473.
To design and test 4-bit Synchronous up counter using IC7473.
To test Johnson and Ring counters.
To test SISO and SIPO shift register
Qn Qn+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
In the Excitation table shown above Qn and Qn+1 are present and next state outputs. For a 4- bit
counter, it is required to count from 0 to 15, which requires 4 JK Flip-Flops.
Let the outputs of these Flip-Flops be QD,QC,QB,QA respectively and JA,KA be the inputs of Flip-
Flop A. JB,KB of Flip-Flop B & so on.
QD QC QB QA QD+1 QC+1 QB+1 QA+1 JD KD JC KC JB KB JA KA
0 0 0 0 0 0 0 1 0 X 0 X 0 X 1 X
0 0 0 1 0 0 1 0 0 X 0 X 1 X X 1
0 0 1 0 0 0 1 1 0 X 0 X X 0 1 X
0 0 1 1 0 1 0 0 0 X 1 X X 1 X 1
0 1 0 0 0 1 0 1 0 X X 0 0 X 1 X
0 1 0 1 0 1 1 0 0 X X 0 1 X X 1
0 1 1 0 0 1 1 1 0 X X 0 X 0 1 X
0 1 1 1 1 0 0 0 1 X X 1 X 1 X 1
1 0 0 0 1 0 0 1 X 0 0 X 0 X 1 X
1 0 0 1 1 0 1 0 X 0 0 X 1 X X 1
1 0 1 0 1 0 1 1 X 0 0 X X 0 1 X
1 0 1 1 1 1 0 0 X 0 1 X X 1 X 1
1 1 0 0 1 1 0 1 X 0 X 0 0 X 1 X
1 1 0 1 1 1 1 0 X 0 X 0 1 X X 1
1 1 1 0 1 1 1 1 X 0 X 0 X 0 1 X
1 1 1 1 0 0 0 0 X 1 X 1 X 1 X 1
Draw K-maps for various Js & Ks and simplify. Implement the logic circuit and verify.
CLK QD QC QB QA
1 1 0 0 0
2 0 1 0 0
3 0 0 1 0
4 0 0 0 1
5 1 0 0 0
D. Jhonson Counter
CLK QD QC QB QA
1 0 0 0 0
2 1 0 0 0
3 1 1 0 0
4 1 1 1 0
5 1 1 1 1
6 0 1 1 1
7 0 0 1 1
8 0 0 0 1
E. SISO and SIPO Shift Register
Exercises:
1. Design and implement a ripple decade counter and verify its operation.