-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoothTB.v
50 lines (40 loc) · 712 Bytes
/
BoothTB.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
module BoothTB;
// Inputs
reg clk;
reg [32:0] X;
reg [32:0] Y;
// Outputs
wire [63:0] Z;
// Instantiate the Unit Under Test (UUT)
BoothMultipilcation uut (
.clk(clk),
.X(X),
.Y(Y),
.Z(Z)
);
//clock generation
initial begin
clk = 0;
end
always #10 clk = ~clk;
initial begin
// Initialize Inputs
X = 0;
Y = 0;
clk=0;
// Wait 100 ns for global reset to finish
#100;
X=-7;
Y=-10;
// Add stimulus here
#100;
X=8;
Y=-7;
#100;
X=-2;
Y=7;
#100;
X=30;
Y=7;
end
endmodule