-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvga_display_tb.v
70 lines (60 loc) · 1.21 KB
/
vga_display_tb.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
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 00:28:46 07/18/2015
// Design Name: vga_display
// Module Name: F:/PongGame/vga_display_tb.v
// Project Name: PongGame
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: vga_display
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module vga_display_tb;
// Inputs
reg clk;
reg reset;
// Outputs
wire [9:0] VGA_HSYNC;
wire [9:0] VGA_VSYNC;
wire [9:0] x_cor;
wire [9:0] y_cor;
wire [3:0] RED;
wire [3:0] GREEN;
wire [3:0] BLUE;
// Instantiate the Unit Under Test (UUT)
vga_display uut (
.clk(clk),
.reset(reset),
.VGA_HSYNC(VGA_HSYNC),
.VGA_VSYNC(VGA_VSYNC),
.x_cor(x_cor),
.y_cor(y_cor),
.RED(RED),
.GREEN(GREEN),
.BLUE(BLUE)
);
initial begin
// Initialize Inputs
clk = 0;
reset = 0;
// Wait 100 ns for global reset to finish
#100;
// Add stimulus here
reset = 1'b1;
end
always begin
clk=~clk;
#20;
end
endmodule