-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsigned_vedic_mult_32bit_tb.v
57 lines (40 loc) · 1.44 KB
/
signed_vedic_mult_32bit_tb.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 03.08.2024 00:26:42
// Design Name:
// Module Name: signed_vedic_mult_32bit_tb
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module signed_vedic_mult_32bit_tb();
reg [31:0]a,b;
wire [63:0]out;
signed_vedic_mult_32bit svm(.a(a),.b(b),.out(out));
initial begin
a = 32'b00000000_00000000_00000000_00000010; // or a = 32'h00000002; or a = (2)decimal
b = 32'b00000000_00000000_00000000_00000011; // or b = 32'h00000003; or b = (3)decimal
#50
a = 32'b11111111_11111111_11111111_11111110; // or a = 32'hFFFFFFFE; or a = (-2)decimal
b = 32'b00000000_00000000_00000000_00000011; // or b = 32'h00000003; or b = (3)decimal
#50
a = 32'b00000000_00000000_00000000_00000010; // or a = 32'h00000002; or a = (2)decimal
b = 32'b11111111_11111111_11111111_11111101; // or b = 32'hFFFFFFFD; or b = (-3)decimal
#50
a = 32'b11111111_11111111_11111111_11111110; // or a = 32'hFFFFFFFE; or a = (-2)decimal
b = 32'b11111111_11111111_11111111_11111101; // or b = 32'hFFFFFFFD; or b = (-3)decimal
#50
$finish;
end
endmodule