Professional Documents
Culture Documents
Sample Vlsi Lab File - 2
Sample Vlsi Lab File - 2
Sample Vlsi Lab File - 2
EEE 4028
VLSI DESIGN LABORATORY
This work is submitted in partial fulfilment of the requirement of the award of the degree of
Bachelor of Technology in EEE/EIE
1
Shivam Dubey LAB report file 18BEE0026
INDEX
4- March
3 CARRY LOOK-AHEAD ADDER Previous report
2021
18-March
4 BOUGH-WOOLEY MULTIPLIER Previous report
2021
24-March
5 WALLACE TREE MULTIPLIER Previous report
2021
01-April
6 DADDA TREE MULTIPLIER 4-9
2021
08-April
7 SQUARER DESIGN 10-18
2021
15-April
8 PIPELINED MAC DESIGN 19-25
2021
29-April
9 FIR FILTER DESIGN 26-31
2021
13-May
10 DCT DESIGN 32-36
2021
2
Shivam Dubey LAB report file 18BEE0026
Objectives:
Outcomes:
3
Shivam Dubey LAB report file 18BEE0026
Exp.No: 6
Date : 01-April-2021
AIM:
Design a 4-bit Dadda Tree Multiplier using Adders (Half and Full).
REQUIRED SOFTWARE:
Modelsim PE student edition 10.4a
CIRCUIT DIAGRAM:
4
Shivam Dubey LAB report file 18BEE0026
5
Shivam Dubey LAB report file 18BEE0026
b = $random;
check = a * b;
#10;
$display($time, " %d * %d = %d (%d)", a, b, p, check);
end
endmodule
SNAPSHOTS:
Design code
6
Shivam Dubey LAB report file 18BEE0026
Output Verification
7
Shivam Dubey LAB report file 18BEE0026
OUTPUT:
8
Shivam Dubey LAB report file 18BEE0026
CONSOLE OUTPUT
RESULT:
Successfully the 4-bit Dadda Tree Multiplier is designed and its output verified.
INFERENCE:
In this experiment learnt about how to construct Dadda Tree Multiplier using
Half and Full Adders.
9
Shivam Dubey LAB report file 18BEE0026
Exp.No: 7
Date : 08-April-2021
SQUARER DESIGN
AIM:
To design a 4-bit and 6-bit Squarer using Half and Full Adders.
REQUIRED SOFTWARE:
Modelsim PE student edition 10.4a
CIRCUIT DIAGRAM:
(4 bit)
10
Shivam Dubey LAB report file 18BEE0026
(6 bit)
11
Shivam Dubey LAB report file 18BEE0026
(6 bit)
module SQUARER_6BIT(input signed[5:0]a,output signed[12:0]p);
wire[20:1]w;
supply0 zero;
//FIRST STAGE
assign p[0]=a[0];
assign p[1]=zero;
assign p[2]=(a[1]&~a[0]);
ha_df ha1((a[1]&a[0]),(a[2]&a[0]),p[3],w[1]);
ha_df ha2((a[2]&~a[1]),(a[3]&a[0]),w[2],w[3]);
fa_df fa1((a[2]&a[1]),(a[4]&a[0]),(a[3]&a[1]),w[4],w[5]);
fa_df fa2((a[3]&~a[2]),(a[5]&a[0]),(a[4]&a[1]),w[6],w[7]);
fa_df fa3((a[3]&a[2]),(a[1]&a[5]),(a[2]&a[4]),w[8],w[9]);
ha_df ha3((a[4]&~a[3]),(a[2]&a[5]),w[10],w[11]);
ha_df ha4((a[4]&a[3]),(a[3]&a[5]),w[12],w[13]);
//SECOND STAGE
ha_df ha5(w[1],w[2],p[4],w[14]);
fa_df fa4(w[3],w[4],w[14],p[5],w[15]);
fa_df fa5(w[5],w[6],w[15],p[6],w[16]);
fa_df fa6(w[7],w[8],w[16],p[7],w[17]);
fa_df fa7(w[9],w[10],w[17],p[8],w[18]);
fa_df fa8(w[11],w[12],w[18],p[9],w[19]);
fa_df fa9((a[5]&~a[4]),w[13],w[19],p[10],w[20]);
ha_df ha6((a[5]&a[4]),w[20],p[11],p[12]);
endmodule
12
Shivam Dubey LAB report file 18BEE0026
13
Shivam Dubey LAB report file 18BEE0026
SNAPSHOTS:
Design code
(4 bit)
6 bit
14
Shivam Dubey LAB report file 18BEE0026
6 bit
OUTPUT:
(4 bit)
(6 bit)
CONSOLE OUTPUT
(4 bit)
15
Shivam Dubey LAB report file 18BEE0026
(6 bit)
Output Verification
16
Shivam Dubey LAB report file 18BEE0026
17
Shivam Dubey LAB report file 18BEE0026
RESULT:
Successfully the 4-bit and 6-bit Squarer is designed and its output verified.
INFERENCE:
In this experiment we learnt how to construct 4 bit and 6 bit squarer using half
and full adders.
18
Shivam Dubey LAB report file 18BEE0026
Exp.No: 8
Date : 15-April-2021
AIM:
To design a 4-bit pipelined MAC using Registers.
REQUIRED SOFTWARE:
Modelsim PE student edition 10.4a
CIRCUIT DIAGRAM:
19
Shivam Dubey LAB report file 18BEE0026
//Register 8 bit
module reg_8bit(input [7:0]d,input clk,rst, output reg[7:0]q);
always@(posedge clk or negedge rst)
if(!rst)
q<=8'b00000000;
else
q<=d;
endmodule
//Register 10 bit
module reg_10bit(input [9:0]d,input clk,rst, output reg[9:0]q);
always@(posedge clk or negedge rst)
if(!rst)
q<=10'b0000000000;
else
q<=d;
endmodule
20
Shivam Dubey LAB report file 18BEE0026
//MAC
module MAC(input[3:0]a,b,input clk,rst,output[9:0]y);
wire [3:0]w1, w2;
wire [7:0]w3, w4;
wire [9:0]w5, w6;
reg_4bit R1(a, clk, rst, w1);
reg_4bit R2(b, clk, rst, w2);
reg_8bit R3(w3, clk, rst, w4);
reg_10bit R4(w5, clk, rst, w6);
assign w3 = w1 * w2;
assign w5 = w4 + w6;
assign y = w6;
endmodule
21
Shivam Dubey LAB report file 18BEE0026
b = 4;
#50;
end
always #5 clk=~clk;
endmodule
SNAPSHOTS:
Design code
22
Shivam Dubey LAB report file 18BEE0026
OUTPUT:
CONSOLE OUTPUT
(NA)
Output Verification
23
Shivam Dubey LAB report file 18BEE0026
24
Shivam Dubey LAB report file 18BEE0026
RESULT:
The Pipelined MAC is succesfully designed using registers and output is
verified.
INFERENCE:
In this experiment we learnt how to design and construct a Pipelined MAC
using registers.
25
Shivam Dubey LAB report file 18BEE0026
Exp.No: 9
Date : 29-April-2021
AIM:
To design a FIR Filter using registers.
REQUIRED SOFTWARE:
Modelsim PE student edition 10.4a
CIRCUIT DIAGRAM:
26
Shivam Dubey LAB report file 18BEE0026
27
Shivam Dubey LAB report file 18BEE0026
28
Shivam Dubey LAB report file 18BEE0026
OUTPUT:
CONSOLE OUTPUT
(NA)
Output Verification
29
Shivam Dubey LAB report file 18BEE0026
30
Shivam Dubey LAB report file 18BEE0026
RESULT:
The FIR Filter is designed and the output verified.
INFERENCE:
We learnt to design a FIR Filter using registers.
31
Shivam Dubey LAB report file 18BEE0026
Exp.No: 10
Date : 13-May-2021
AIM:
To design a 4-bit DCT using arithmetic operators
REQUIRED SOFTWARE:
Modelsim PE student edition 10.4a
CIRCUIT DIAGRAM:
32
Shivam Dubey LAB report file 18BEE0026
33
Shivam Dubey LAB report file 18BEE0026
a2=3;
a3=4;
#10;
end
endmodule
SNAPSHOTS:
Design code
OUTPUT:
34
Shivam Dubey LAB report file 18BEE0026
CONSOLE OUTPUT
(NA)
Output Verification
35
Shivam Dubey LAB report file 18BEE0026
RESULT:
The DCT is designed and its output verified.
INFERENCE:
We learnt to design DCT using arithmetic operators.
36