-
Notifications
You must be signed in to change notification settings - Fork 2
/
Control_Runner.v
92 lines (81 loc) · 1.43 KB
/
Control_Runner.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:25:57 10/29/2015
// Design Name: Control
// Module Name: C:/Users/u0812277/Documents/GitHub/ECE3710/Control_Runner_2.v
// Project Name: ECE3710
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: Control
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module Control_Runner;
// Inputs
reg reset_btn;
reg clk;
reg TP_PENIRQ;
reg TP_BUSY;
reg TP_DOUT;
// Outputs
wire TP_CS;
wire TP_DCLK;
wire TP_DIN;
// Instantiate the Unit Under Test (UUT)
Control uut (
.reset_btn(reset_btn),
.clk(clk),
.TP_PENIRQ(TP_PENIRQ),
.TP_BUSY(TP_BUSY),
.TP_DOUT(TP_DOUT),
.TP_CS(TP_CS),
.TP_DCLK(TP_DCLK),
.TP_DIN(TP_DIN)
);
initial begin
reset_btn = 0;
clk = 0;
TP_PENIRQ = 1;
TP_BUSY = 1;
TP_DOUT = 1;
// Wait 100 ns for global reset to finish
#2;
TP_PENIRQ = 0;
#200
TP_BUSY = 0;
TP_DOUT = 0;
#700
TP_BUSY = 1;
#162
TP_BUSY = 0;
TP_DOUT = 1;
#76
TP_DOUT = 0;
#76
TP_DOUT = 1;
#76
TP_DOUT = 0;
#76
TP_DOUT = 1;
#76
TP_DOUT = 0;
#76
TP_DOUT = 1;
#76
TP_DOUT = 0;
end
always begin
clk = ~clk;
#1;
end
endmodule