-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMultAdd_tb.v
More file actions
53 lines (42 loc) · 953 Bytes
/
MultAdd_tb.v
File metadata and controls
53 lines (42 loc) · 953 Bytes
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////
// IonControl 1.0: Copyright 2016 Sandia Corporation
// This Software is released under the GPL license detailed
// in the file "license.txt" in the top-level pyGSTi directory
//////////////////////////////////////////////////////////////////
module MultAdd_tb;
// Inputs
reg subtract;
reg [15:0] a;
reg [15:0] b;
reg [31:0] c;
// Outputs
wire [31:0] p;
wire [47:0] pcout;
// Instantiate the Unit Under Test (UUT)
MultAdd_16_24_40_40 uut (
.subtract(subtract),
.a(a),
.b(b),
.c(c),
.p(p),
.pcout(pcout)
);
initial begin
// Initialize Inputs
subtract = 0;
a = 0;
b = 0;
c = 0;
// Wait 100 ns for global reset to finish
#100;
// Add stimulus here
a = 16'h4fff;
b = 16'h4fff;
c = 32'h4fffffff;
#100;
a = -16'h10;
b = 16'h4000;
c = 32'h0;
end
endmodule