-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRISC_V_Processor_Top_Tb.sv
More file actions
56 lines (46 loc) · 1.11 KB
/
RISC_V_Processor_Top_Tb.sv
File metadata and controls
56 lines (46 loc) · 1.11 KB
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 01/08/2025 11:54:54 PM
// Design Name:
// Module Name: RISC_V_Processor_Top_Tb
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
`timescale 1ns / 1ps
module RISC_V_Processor_Top_Tb;
reg clk;
reg resetn;
reg select_output;
RISC_V_Processor_Top RISC_V_Processor_Top (
.clk(clk),
.resetn(resetn),
.select_output(select_output)
);
always #5 clk = ~clk;
initial begin
clk = 0;
resetn = 0;
select_output = 1'b0;
$dumpfile("RISC_V_Processor_Top.vcd");
$dumpvars(0, RISC_V_Processor_Top_Tb);
#10;
resetn = 1;
#500;
$finish;
end
initial begin
$monitor("Time: %0t | Reset: %b | Clock: %b", $time, resetn, clk);
end
endmodule