-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtop_tb.v
More file actions
55 lines (43 loc) · 934 Bytes
/
top_tb.v
File metadata and controls
55 lines (43 loc) · 934 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
53
54
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 03/07/2023 02:52:36 AM
// Design Name:
// Module Name: top_tb
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module tb_top_module();
reg clk, n_reset;
top_module dut (
.clk(clk),
.n_reset(n_reset)
);
// clock signal
parameter PERIOD = 20;
initial begin
clk = 0;
forever #(PERIOD/2) clk=~clk;
end
// reset pulse
initial begin
n_reset = 1'b0;
#(PERIOD/2);
n_reset = 1'b1;
end
initial begin
repeat(200)@(negedge clk);
$finish;
end
endmodule