-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.v
60 lines (52 loc) · 1.17 KB
/
test.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
58
59
60
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2020/11/28 20:01:34
// Design Name:
// Module Name: GRF_tb
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module GRF_tb;
// Inputs
reg clk;
reg reset;
reg writable;
reg [31:0] read1addr;
reg [31:0] read2addr;
reg [31:0] writeAddr;
reg [31:0] writeData;
// Outputs
wire [31:0] read1data;
wire [31:0] read2data;
// Instantiate the Unit Under Test (UUT)
GRF uut (
.clk(clk),
.reset(reset),
.writable(writable),
.read1addr(read1addr),
.read2addr(read2addr),
.writeAddr(writeAddr),
.writeData(writeData)
);
initial begin
clk = 0;
reset = 0;
writable = 1;
read1addr = 0;
read2addr = 0;
writeAddr = 0;
writeData = 0;
end
endmodule