This repository was archived by the owner on Dec 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram_Counter_Test.v
More file actions
82 lines (72 loc) · 1.45 KB
/
Copy pathProgram_Counter_Test.v
File metadata and controls
82 lines (72 loc) · 1.45 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 20:51:24 08/22/2017
// Design Name: Program_Counter
// Module Name: C:/Xilinx/tp_final/Program_Counter_Test.v
// Project Name: tp_final
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: Program_Counter
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module Program_Counter_Test;
// Inputs
reg clk;
reg notEnable;
reg reset;
reg enableDebug;
reg resetDebug;
reg [7:0] addr_in;
// Outputs
wire [7:0] addr_out;
// Instantiate the Unit Under Test (UUT)
Program_Counter uut (
.clk(clk),
.notEnable(notEnable),
.reset(reset),
.enableDebug(enableDebug),
.resetDebug(resetDebug),
.addr_in(addr_in),
.addr_out(addr_out)
);
initial begin
// Initialize Inputs
clk = 0;
notEnable = 1;
reset = 0;
enableDebug = 1;
resetDebug = 0;
addr_in = 0;
// Wait 100 ns for global reset to finish
#100;
// Add stimulus here
addr_in = 2;
#100;
notEnable = 0;
#100;
reset = 1;
#100;
reset = 0;
addr_in = 6;
#100;
notEnable = 1;
end
always
begin //clock de 100 Mhz como el de la placa
clk = 1'b0;
#(10/2);
clk = 1'b1;
#(10/2);
end
endmodule