-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathframework_test.v
More file actions
81 lines (75 loc) · 1.33 KB
/
Copy pathframework_test.v
File metadata and controls
81 lines (75 loc) · 1.33 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
// Verilog test fixture created from schematic D:\Code\Xilinx\FINAL_PROJECT\framework_sch.sch - Fri Jan 12 13:14:05 2018
`timescale 1ns / 1ps
module framework_sch_framework_sch_sch_tb();
// Inputs
reg clk_100mhz;
reg [15:0] SW;
reg [3:0] K_COL;
reg RSTN;
// Output
wire Buzzer;
wire LEDCLR;
wire LEDEN;
wire LEDDT;
wire LEDCLK;
wire RDY;
wire CR;
wire [4:0] K_ROW;
wire [7:0] LED;
wire SEGCLK;
wire SEGDT;
wire SEGEN;
wire SEGCLR;
wire [6:0] SEGMENT;
wire [3:0] AN;
wire [3:0] Green;
wire [3:0] Blue;
wire [3:0] Red;
wire VSync;
wire HSync;
wire readn;
// Bidirs
// Instantiate the UUT
framework_sch UUT (
.clk_100mhz(clk_100mhz),
.Buzzer(Buzzer),
.LEDCLR(LEDCLR),
.LEDEN(LEDEN),
.LEDDT(LEDDT),
.LEDCLK(LEDCLK),
.RDY(RDY),
.CR(CR),
.SW(SW),
.K_ROW(K_ROW),
.K_COL(K_COL),
.RSTN(RSTN),
.LED(LED),
.SEGCLK(SEGCLK),
.SEGDT(SEGDT),
.SEGEN(SEGEN),
.SEGCLR(SEGCLR),
.SEGMENT(SEGMENT),
.AN(AN),
.Green(Green),
.Blue(Blue),
.Red(Red),
.VSync(VSync),
.HSync(HSync),
.readn(readn)
);
// Initialize Inputs
initial begin
clk_100mhz = 0;
SW = 0;
K_COL = 0;
RSTN = 0;
#50;
fork
forever #5 clk_100mhz <= ~clk_100mhz;
begin
K_COL = 4'b0000;
#100;
end
join
end
endmodule