-
Notifications
You must be signed in to change notification settings - Fork 0
/
microarquiteturaGp3.bsf
234 lines (234 loc) · 9.1 KB
/
microarquiteturaGp3.bsf
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to occur.
*/
/*
Copyright (C) 1991-2013 Altera Corporation
Your use of Altera Corporation's design tools, logic functions
and other software and tools, and its AMPP partner logic
functions, and any output files from any of the foregoing
(including device programming or simulation files), and any
associated documentation or information are expressly subject
to the terms and conditions of the Altera Program License
Subscription Agreement, Altera MegaCore Function License
Agreement, or other applicable license agreement, including,
without limitation, that your use is for the sole purpose of
programming logic devices manufactured by Altera and sold by
Altera or its authorized distributors. Please refer to the
applicable agreement for further details.
*/
(header "symbol" (version "1.1"))
(symbol
(rect 0 0 304 584)
(text "microarquiteturaGp3" (rect 93 -1 173 11)(font "Arial" (font_size 10)))
(text "inst" (rect 8 568 20 580)(font "Arial" ))
(port
(pt 0 72)
(input)
(text "buttons_export" (rect 0 0 59 12)(font "Arial" (font_size 8)))
(text "buttons_export" (rect 4 61 88 72)(font "Arial" (font_size 8)))
(line (pt 0 72)(pt 112 72)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "clk_clk" (rect 0 0 27 12)(font "Arial" (font_size 8)))
(text "clk_clk" (rect 4 101 46 112)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 112 112)(line_width 1))
)
(port
(pt 0 240)
(input)
(text "player_1_export[2..0]" (rect 0 0 84 12)(font "Arial" (font_size 8)))
(text "player_1_export[2..0]" (rect 4 229 130 240)(font "Arial" (font_size 8)))
(line (pt 0 240)(pt 112 240)(line_width 3))
)
(port
(pt 0 280)
(input)
(text "player_2_export[2..0]" (rect 0 0 86 12)(font "Arial" (font_size 8)))
(text "player_2_export[2..0]" (rect 4 269 130 280)(font "Arial" (font_size 8)))
(line (pt 0 280)(pt 112 280)(line_width 3))
)
(port
(pt 0 320)
(input)
(text "reset_reset_n" (rect 0 0 56 12)(font "Arial" (font_size 8)))
(text "reset_reset_n" (rect 4 309 82 320)(font "Arial" (font_size 8)))
(line (pt 0 320)(pt 112 320)(line_width 1))
)
(port
(pt 0 440)
(input)
(text "vga_button_game" (rect 0 0 73 12)(font "Arial" (font_size 8)))
(text "vga_button_game" (rect 4 429 94 440)(font "Arial" (font_size 8)))
(line (pt 0 440)(pt 112 440)(line_width 1))
)
(port
(pt 0 488)
(input)
(text "vga_up_left" (rect 0 0 48 12)(font "Arial" (font_size 8)))
(text "vga_up_left" (rect 4 477 70 488)(font "Arial" (font_size 8)))
(line (pt 0 488)(pt 112 488)(line_width 1))
)
(port
(pt 0 504)
(input)
(text "vga_up_right" (rect 0 0 53 12)(font "Arial" (font_size 8)))
(text "vga_up_right" (rect 4 493 76 504)(font "Arial" (font_size 8)))
(line (pt 0 504)(pt 112 504)(line_width 1))
)
(port
(pt 0 520)
(input)
(text "vga_down_left" (rect 0 0 59 12)(font "Arial" (font_size 8)))
(text "vga_down_left" (rect 4 509 82 520)(font "Arial" (font_size 8)))
(line (pt 0 520)(pt 112 520)(line_width 1))
)
(port
(pt 0 536)
(input)
(text "vga_down_right" (rect 0 0 63 12)(font "Arial" (font_size 8)))
(text "vga_down_right" (rect 4 525 88 536)(font "Arial" (font_size 8)))
(line (pt 0 536)(pt 112 536)(line_width 1))
)
(port
(pt 0 152)
(output)
(text "lcd_read_write" (rect 0 0 57 12)(font "Arial" (font_size 8)))
(text "lcd_read_write" (rect 4 141 88 152)(font "Arial" (font_size 8)))
(line (pt 0 152)(pt 112 152)(line_width 1))
)
(port
(pt 0 168)
(output)
(text "lcd_register_select" (rect 0 0 74 12)(font "Arial" (font_size 8)))
(text "lcd_register_select" (rect 4 157 118 168)(font "Arial" (font_size 8)))
(line (pt 0 168)(pt 112 168)(line_width 1))
)
(port
(pt 0 184)
(output)
(text "lcd_enable_op" (rect 0 0 56 12)(font "Arial" (font_size 8)))
(text "lcd_enable_op" (rect 4 173 82 184)(font "Arial" (font_size 8)))
(line (pt 0 184)(pt 112 184)(line_width 1))
)
(port
(pt 0 200)
(output)
(text "lcd_data_out[7..0]" (rect 0 0 70 12)(font "Arial" (font_size 8)))
(text "lcd_data_out[7..0]" (rect 4 189 112 200)(font "Arial" (font_size 8)))
(line (pt 0 200)(pt 112 200)(line_width 3))
)
(port
(pt 0 360)
(output)
(text "vga_hsync" (rect 0 0 46 12)(font "Arial" (font_size 8)))
(text "vga_hsync" (rect 4 349 58 360)(font "Arial" (font_size 8)))
(line (pt 0 360)(pt 112 360)(line_width 1))
)
(port
(pt 0 376)
(output)
(text "vga_vsync" (rect 0 0 47 12)(font "Arial" (font_size 8)))
(text "vga_vsync" (rect 4 365 58 376)(font "Arial" (font_size 8)))
(line (pt 0 376)(pt 112 376)(line_width 1))
)
(port
(pt 0 392)
(output)
(text "vga_r[3..0]" (rect 0 0 44 12)(font "Arial" (font_size 8)))
(text "vga_r[3..0]" (rect 4 381 70 392)(font "Arial" (font_size 8)))
(line (pt 0 392)(pt 112 392)(line_width 3))
)
(port
(pt 0 408)
(output)
(text "vga_g[3..0]" (rect 0 0 46 12)(font "Arial" (font_size 8)))
(text "vga_g[3..0]" (rect 4 397 70 408)(font "Arial" (font_size 8)))
(line (pt 0 408)(pt 112 408)(line_width 3))
)
(port
(pt 0 424)
(output)
(text "vga_b[3..0]" (rect 0 0 46 12)(font "Arial" (font_size 8)))
(text "vga_b[3..0]" (rect 4 413 70 424)(font "Arial" (font_size 8)))
(line (pt 0 424)(pt 112 424)(line_width 3))
)
(port
(pt 0 456)
(output)
(text "vga_score_p1[2..0]" (rect 0 0 77 12)(font "Arial" (font_size 8)))
(text "vga_score_p1[2..0]" (rect 4 445 112 456)(font "Arial" (font_size 8)))
(line (pt 0 456)(pt 112 456)(line_width 3))
)
(port
(pt 0 472)
(output)
(text "vga_score_p2[2..0]" (rect 0 0 79 12)(font "Arial" (font_size 8)))
(text "vga_score_p2[2..0]" (rect 4 461 112 472)(font "Arial" (font_size 8)))
(line (pt 0 472)(pt 112 472)(line_width 3))
)
(port
(pt 0 552)
(output)
(text "vga_rst_lcd" (rect 0 0 48 12)(font "Arial" (font_size 8)))
(text "vga_rst_lcd" (rect 4 541 70 552)(font "Arial" (font_size 8)))
(line (pt 0 552)(pt 112 552)(line_width 1))
)
(drawing
(text "buttons" (rect 70 43 182 99)(font "Arial" (color 128 0 0)(font_size 9)))
(text "export" (rect 117 67 270 144)(font "Arial" (color 0 0 0)))
(text "clk" (rect 97 83 212 179)(font "Arial" (color 128 0 0)(font_size 9)))
(text "clk" (rect 117 107 252 224)(font "Arial" (color 0 0 0)))
(text "lcd" (rect 97 123 212 259)(font "Arial" (color 128 0 0)(font_size 9)))
(text "read_write" (rect 117 147 294 304)(font "Arial" (color 0 0 0)))
(text "register_select" (rect 117 163 324 336)(font "Arial" (color 0 0 0)))
(text "enable_op" (rect 117 179 288 368)(font "Arial" (color 0 0 0)))
(text "data_out" (rect 117 195 282 400)(font "Arial" (color 0 0 0)))
(text "player_1" (rect 65 211 178 435)(font "Arial" (color 128 0 0)(font_size 9)))
(text "export" (rect 117 235 270 480)(font "Arial" (color 0 0 0)))
(text "player_2" (rect 63 251 174 515)(font "Arial" (color 128 0 0)(font_size 9)))
(text "export" (rect 117 275 270 560)(font "Arial" (color 0 0 0)))
(text "reset" (rect 83 291 196 595)(font "Arial" (color 128 0 0)(font_size 9)))
(text "reset_n" (rect 117 315 276 640)(font "Arial" (color 0 0 0)))
(text "vga" (rect 93 331 204 675)(font "Arial" (color 128 0 0)(font_size 9)))
(text "hsync" (rect 117 355 264 720)(font "Arial" (color 0 0 0)))
(text "vsync" (rect 117 371 264 752)(font "Arial" (color 0 0 0)))
(text "r" (rect 117 387 240 784)(font "Arial" (color 0 0 0)))
(text "g" (rect 117 403 240 816)(font "Arial" (color 0 0 0)))
(text "b" (rect 117 419 240 848)(font "Arial" (color 0 0 0)))
(text "button_game" (rect 117 435 300 880)(font "Arial" (color 0 0 0)))
(text "score_p1" (rect 117 451 282 912)(font "Arial" (color 0 0 0)))
(text "score_p2" (rect 117 467 282 944)(font "Arial" (color 0 0 0)))
(text "up_left" (rect 117 483 276 976)(font "Arial" (color 0 0 0)))
(text "up_right" (rect 117 499 282 1008)(font "Arial" (color 0 0 0)))
(text "down_left" (rect 117 515 288 1040)(font "Arial" (color 0 0 0)))
(text "down_right" (rect 117 531 294 1072)(font "Arial" (color 0 0 0)))
(text "rst_lcd" (rect 117 547 276 1104)(font "Arial" (color 0 0 0)))
(text " microarquiteturaGp3 " (rect 214 568 554 1146)(font "Arial" ))
(line (pt 113 52)(pt 113 76)(line_width 1))
(line (pt 114 52)(pt 114 76)(line_width 1))
(line (pt 113 92)(pt 113 116)(line_width 1))
(line (pt 114 92)(pt 114 116)(line_width 1))
(line (pt 113 132)(pt 113 204)(line_width 1))
(line (pt 114 132)(pt 114 204)(line_width 1))
(line (pt 113 220)(pt 113 244)(line_width 1))
(line (pt 114 220)(pt 114 244)(line_width 1))
(line (pt 113 260)(pt 113 284)(line_width 1))
(line (pt 114 260)(pt 114 284)(line_width 1))
(line (pt 113 300)(pt 113 324)(line_width 1))
(line (pt 114 300)(pt 114 324)(line_width 1))
(line (pt 113 340)(pt 113 556)(line_width 1))
(line (pt 114 340)(pt 114 556)(line_width 1))
(line (pt 112 32)(pt 192 32)(line_width 1))
(line (pt 192 32)(pt 192 568)(line_width 1))
(line (pt 112 568)(pt 192 568)(line_width 1))
(line (pt 112 32)(pt 112 568)(line_width 1))
(line (pt 0 0)(pt 304 0)(line_width 1))
(line (pt 304 0)(pt 304 584)(line_width 1))
(line (pt 0 584)(pt 304 584)(line_width 1))
(line (pt 0 0)(pt 0 584)(line_width 1))
)
)