Professional Documents
Culture Documents
Adsd Lab Manual Lhs
Adsd Lab Manual Lhs
Adsd Lab Manual Lhs
LIST OF EXPERIMENTS
1. Design and Simulation of Logic gates and verify it using test bench.
2. Design and Simulation of full adder circuit and verify it using test bench.
3. Design and Simulation of binary to gray code converter and verify it using test
bench.
7. Design and Simulation of 8:3 Priority Encoder and verify it using test bench.
10. Design and Simulation of Arithmetic and Logical and verify it using test bench.
11. Design and Simulation of up-down counter and verify it using test bench
12. Design and Simulation of Barrel Shifter and verify it using test bench
13. Design and Simulation of Multiplier and verify it using test bench.
14. Design and Simulation of Mealy and Moore machine which will detect the
sequences 1101 and verify it using test bench.
TUTORIAL
EXPERIMENT NO 1
Aim: Design and Simulation of all Logic gates and verify it using
test bench.
AIM: - Design and Simulation of all Logic gates and verify it using test bench.
OBJECTIVE:
To verify the functionality of all Logic gates.
To develop a logic for designing of all Logic gates.
AND gate
OR GATE
EXCLUSIVE-OR GATE
XOR gate
NOT GATE
Input Output
1 0
0 1
NAND GATE
NAND gate
NOR GATE
NOR gate
XNOR GATE
XNOR gate
EXPERIMENT NO 2
AIM: - Design and Simulation of full adder circuit and verify it using Test bench.
OBJECTIVE
To verify the functionality of full adder circuit.
To develop a logic for designing of full adder circuit.
LOGICAL DIAGRAM:-
A ENTITY Sum
B FULL ADDER
Cin Cout
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
EXPERIMENT NO 3
AIM: - Design and Simulation of binary to gray code converter and verify it using Test
Bench.
OBJECTIVE
To verify the functionality of binary to gray code converter.
To develop a logic for designing of binary to gray code converter.
LOGICAL DIAGRAM:-
TRUTH TABLE:-
BINARY GRAY
Sr. No.
B3 B2 B1 B0 G3 G2 G1 G0
01 0 0 0 0 0 0 0 0
02 0 0 0 1 0 0 0 1
03 0 0 1 0 0 0 1 1
04 0 0 1 1 0 0 1 0
05 0 1 0 0 0 1 1 0
06 0 1 0 1 0 1 1 1
07 0 1 1 0 0 1 0 1
08 0 1 1 1 1 1 0 0
09 1 0 0 0 1 1 0 0
10 1 0 0 1 1 1 0 1
12 1 0 1 0 1 1 1 1
13 1 0 1 1 1 1 1 0
14 1 1 0 0 1 0 1 0
15 1 1 0 1 1 0 1 1
16 1 1 1 0 1 0 0 1
17 1 1 1 1 1 0 0 0
EXPERIMENT NO 4
OBJECTIVE
To verify the functionality of 4:1 multiplexer.
To develop a logic for designing of 4:1 multiplexer.
TRUTH TABLE:-
INPUT OUTPUT
S0 S1 Z
0 0 I(0)
0 1 I(1)
1 0 I(2)
1 1 I(3)
LOGICAL DIAGRAM:-
EXPERIMENT NO 5
test bench.
AIM: Design and Simulation of 1:4 De-multiplexers and verify it using test bench.
OBJECTIVE
To verify the functionality of 1: 4 De-Multiplexer.
To develop a logic for designing of 1: 4 De-Multiplexer.
LOGICAL DIAGRAM:-
TRUTH TABLE:-
S1 Z
S2 Z1 Z2 Z3
0 0 I 0 0 0
0 1 0 I 0 0
1 0 0 0 I 0
1 1 0 0 0 I
EXPERIMENT NO 6
OBJECTIVE
To verify the functionality of 2 line to 4 line decoder.
To develop a logic for designing of 2 line to 4 line decoder.
TRUTH TABLE:-
LOGICAL DIAGRAM:-
EXPERIMENT NO 7
AIM: Design and Simulation of 8:3 Priority Encoder and verify it using test bench.
OBJECTIVE
To verify the functionality of 8:3 Priority Encoder.
To develop a logic for designing of 8:3 Priority Encoder.
EXPECTED LEARNING OUTCOME:
Student will be able to model the different applications of priority encoder in
digital System.
TRUTH TABLE:-
EXPERIMENT NO 8
bench.
AIM: Design and Simulation of VHDL Code for D flip/flop and verify it using test
bench.
OBJECTIVE:
To verify the functionality of D flip/flop.
To develop a logic for designing of D flip/flop.
TRUTH TABLE:
Qn Qn+1 D
0 0 0
0 1 1
1 0 0
1 1 1
LOGICAL DIAGRAM:
EXPERIMENT NO 9
OBJECTIVE:
To verify the functionality of BCD to 7-Segment converter.
To develop a logic for designing of BCD to 7-Segment converter.
Figure 8.1 Convention for Displaying Decimal Digits Figure 8.2 Seven-Segment
Numerical Display
TRUTH TABLE:
EXPERIMENT NO 10
AIM: Design and Simulation of Arithmetic and Logical Unit and verify it using test
bench.
OBJECTIVE:
To verify the functionality of Arithmetic and Logical Unit.
To develop a logic for designing of Arithmetic and Logical Unit.
TRUTH TABLE:
Select Lines
Operations
S2 S1 S0
0 0 0 CLEAR OUTPUT
0 0 1 A OR B
0 1 0 NOT B
0 1 1 A NOR B
1 0 0 A AND B
1 0 1 A NAND B
1 1 0 A XNOR B
1 1 1 A XOR B
LOGICAL DIAGRAM:
a
ALU z
b 4
EXPERIMENT NO 11
AIM: - Design and Simulation of up-down counter and verify it using test bench.
OBJECTIVE:
To verify the functionality of up-down counter.
To develop logic for designing of up-down counter.
LOGICAL DIAGRAM:-
updown
clk Up_Down q
clr
TRUTH TABLE:-
EXPERIMENT NO 12
test bench.
AIM: Design and Simulation of barrel shifter using VHDL and verify it using test bench.
OBJECTIVE
To verify the functionality of barrel shifter.
To develop logic for designing of barrel shifter.
LOGIC DIAGRAM
TRUTH TABLE
EXPERIMENT NO 13
AIM: Design and Simulation of different types of multiplier and verify it using test
bench.
OBJECTIVE
To verify the functionality of multiplier.
To develop logic for designing of multiplier.
LOGIC DIAGRAM
EXPERIMENT NO 14.
AIM: - Design and Simulation of Mealy and Moore machine which will detect the
OBJECTIVE:
To verify the functionality of Melay and Moore machine which will detect the
sequences 1101
To develop logic for designing of Melay and Moore machine which will detect
the sequences 1101.
LOGICAL DIAGRAM:-
TRUTH TABLE:-
Input
Present State Next state, Output Next state, Output
Input x=0 Input x=1
S1 S1, 0 S2 , 0
S2 S1, 0 S3, 0
S3 S4, 0 S3, 0
S4 S1, 0 S2, 1