-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmovingobjects.v
More file actions
83 lines (63 loc) · 1.85 KB
/
movingobjects.v
File metadata and controls
83 lines (63 loc) · 1.85 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
82
83
//=======================================================
// This code is generated by Terasic System Builder
//=======================================================
module movingobjects(
//////////// CLOCK //////////
input CLOCK2_50,
input CLOCK3_50,
input CLOCK4_50,
input CLOCK_50,
//////////// SEG7 //////////
output [6:0] HEX0,
output [6:0] HEX1,
output [6:0] HEX2,
output [6:0] HEX3,
output [6:0] HEX4,
output [6:0] HEX5,
//////////// IR //////////
input IRDA_RXD,
output IRDA_TXD,
//////////// KEY //////////
input [3:0] KEY,
//////////// LED //////////
output [9:0] LEDR,
//////////// SW //////////
input [9:0] SW,
//////////// VGA //////////
output VGA_BLANK_N,
output [7:0] VGA_B,
output VGA_CLK,
output [7:0] VGA_G,
output VGA_HS,
output [7:0] VGA_R,
output VGA_SYNC_N,
output VGA_VS
);
//=======================================================
// REG/WIRE declarations
//=======================================================
top a(
.fire_mode1(SW[9]),
.ShootingModeSw(SW[9]),
.clk_50MHz(CLOCK_50),
.red(VGA_R),
.blue(VGA_B),
.green(VGA_G),
.hsync(VGA_HS),
.vsync(VGA_VS),
.clk25(VGA_CLK),
.blank(VGA_BLANK_N),
.sync(VGA_SYNC_N),
.ciguli(~KEY[0]),
.but1_top(~KEY[1]),
.but2_top(~KEY[2]),
.ates_tusu(~KEY[3]),
.ledverisi(LEDR[3:0]),
.reset(SW[0]),
.gamelevel_top(SW[8]),
.hex0_top(HEX0),.hex1_top(HEX1),.hex2_top(HEX2),.hex3_top(HEX3)
);
//=======================================================
// Structural coding
//=======================================================
endmodule