-
Notifications
You must be signed in to change notification settings - Fork 0
/
vga_with_hw_test_imagge.bdf
527 lines (527 loc) · 12.8 KB
/
vga_with_hw_test_imagge.bdf
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
/*
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) 2016 Intel Corporation. All rights reserved.
Your use of Intel 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 Intel Program License
Subscription Agreement, the Intel Quartus Prime License Agreement,
the Intel 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 Intel and sold by Intel or its
authorized distributors. Please refer to the applicable
agreement for further details.
*/
(header "graphic" (version "1.4"))
(pin
(input)
(rect -432 136 -264 152)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "clk" (rect 5 0 19 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -352 176 -296 192))
)
(pin
(output)
(rect 48 304 224 320)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pixel_clk" (rect 90 0 132 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 368 328 424 344))
)
(pin
(output)
(rect 264 136 440 152)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "h_sync" (rect 90 0 126 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 456 56 512 72))
)
(pin
(output)
(rect 264 152 440 168)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "v_sync" (rect 90 0 127 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 456 72 512 88))
)
(pin
(output)
(rect 264 216 440 232)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "n_blank" (rect 90 0 127 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 744 288 800 304))
)
(pin
(output)
(rect 264 232 440 248)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "n_sync" (rect 90 0 126 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 720 312 776 328))
)
(pin
(output)
(rect 664 168 840 184)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "red[7..0]" (rect 90 0 131 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 856 352 912 368))
)
(pin
(output)
(rect 664 184 840 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "green[7..0]" (rect 90 0 143 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 856 368 912 384))
)
(pin
(output)
(rect 664 200 840 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "blue[7..0]" (rect 90 0 136 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
(annotation_block (location)(rect 856 384 912 400))
)
(symbol
(rect -360 176 -328 208)
(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
(text "inst3" (rect 3 21 26 33)(font "Arial" )(invisible))
(port
(pt 16 0)
(output)
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
(line (pt 16 8)(pt 16 0))
)
(drawing
(line (pt 8 8)(pt 16 16))
(line (pt 16 16)(pt 24 8))
(line (pt 8 8)(pt 24 8))
)
)
(symbol
(rect 32 80 64 96)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst4" (rect 3 5 26 17)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8))
)
(drawing
(line (pt 8 8)(pt 24 8))
)
)
(symbol
(rect -248 80 16 232)
(text "altpll0" (rect 115 0 155 16)(font "Arial" (font_size 10)))
(text "inst2" (rect 8 136 31 148)(font "Arial" ))
(port
(pt 0 64)
(input)
(text "inclk0" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "inclk0" (rect 4 50 35 64)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 48 64))
)
(port
(pt 0 80)
(input)
(text "areset" (rect 0 0 36 14)(font "Arial" (font_size 8)))
(text "areset" (rect 4 66 40 80)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 48 80))
)
(port
(pt 264 64)
(output)
(text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "c0" (rect 248 50 262 64)(font "Arial" (font_size 8)))
)
(drawing
(text "Cyclone IV E" (rect 188 136 254 148)(font "Arial" ))
(text "inclk0 frequency: 60.000 MHz" (rect 58 59 205 71)(font "Arial" ))
(text "Operation Mode: Normal" (rect 58 72 177 84)(font "Arial" ))
(text "Clk " (rect 59 93 79 105)(font "Arial" ))
(text "Ratio" (rect 90 93 115 105)(font "Arial" ))
(text "Ph (dg)" (rect 127 93 162 105)(font "Arial" ))
(text "DC (%)" (rect 161 93 197 105)(font "Arial" ))
(text "c0" (rect 62 107 73 119)(font "Arial" ))
(text "1007/2400" (rect 80 107 130 119)(font "Arial" ))
(text "0.00" (rect 133 107 154 119)(font "Arial" ))
(text "50.00" (rect 165 107 192 119)(font "Arial" ))
(line (pt 0 0)(pt 265 0))
(line (pt 265 0)(pt 265 153))
(line (pt 0 153)(pt 265 153))
(line (pt 0 0)(pt 0 153))
(line (pt 56 91)(pt 193 91))
(line (pt 56 104)(pt 193 104))
(line (pt 56 118)(pt 193 118))
(line (pt 56 91)(pt 56 118))
(line (pt 77 91)(pt 77 118)(line_width 3))
(line (pt 124 91)(pt 124 118)(line_width 3))
(line (pt 158 91)(pt 158 118)(line_width 3))
(line (pt 192 91)(pt 192 118))
(line (pt 48 48)(pt 231 48))
(line (pt 231 48)(pt 231 135))
(line (pt 48 135)(pt 231 135))
(line (pt 48 48)(pt 48 135))
(line (pt 263 64)(pt 231 64))
)
)
(symbol
(rect 456 144 648 256)
(text "hw_image_generator" (rect 5 0 105 12)(font "Arial" ))
(text "inst" (rect 8 96 25 108)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "disp_ena" (rect 0 0 43 12)(font "Arial" ))
(text "disp_ena" (rect 21 27 64 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "row[31..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row[31..0]" (rect 21 43 69 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "column[31..0]" (rect 0 0 67 12)(font "Arial" ))
(text "column[31..0]" (rect 21 59 88 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 192 32)
(output)
(text "red[7..0]" (rect 0 0 41 12)(font "Arial" ))
(text "red[7..0]" (rect 137 27 178 39)(font "Arial" ))
(line (pt 192 32)(pt 176 32)(line_width 3))
)
(port
(pt 192 48)
(output)
(text "green[7..0]" (rect 0 0 53 12)(font "Arial" ))
(text "green[7..0]" (rect 127 43 180 55)(font "Arial" ))
(line (pt 192 48)(pt 176 48)(line_width 3))
)
(port
(pt 192 64)
(output)
(text "blue[7..0]" (rect 0 0 46 12)(font "Arial" ))
(text "blue[7..0]" (rect 133 59 179 71)(font "Arial" ))
(line (pt 192 64)(pt 176 64)(line_width 3))
)
(parameter
"pixels_x"
"640"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"pixels_y"
"480"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 176 96))
)
(annotation_block (parameter)(rect 648 0 817 57))
)
(symbol
(rect 64 112 248 288)
(text "vga_controller" (rect 5 0 74 12)(font "Arial" ))
(text "inst1" (rect 8 160 31 172)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "pixel_clk" (rect 0 0 42 12)(font "Arial" ))
(text "pixel_clk" (rect 21 27 63 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "reset_n" (rect 0 0 36 12)(font "Arial" ))
(text "reset_n" (rect 21 43 57 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 184 32)
(output)
(text "h_sync" (rect 0 0 36 12)(font "Arial" ))
(text "h_sync" (rect 133 27 169 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32))
)
(port
(pt 184 48)
(output)
(text "v_sync" (rect 0 0 37 12)(font "Arial" ))
(text "v_sync" (rect 132 43 169 55)(font "Arial" ))
(line (pt 184 48)(pt 168 48))
)
(port
(pt 184 64)
(output)
(text "disp_ena" (rect 0 0 43 12)(font "Arial" ))
(text "disp_ena" (rect 127 59 170 71)(font "Arial" ))
(line (pt 184 64)(pt 168 64))
)
(port
(pt 184 80)
(output)
(text "column[31..0]" (rect 0 0 67 12)(font "Arial" ))
(text "column[31..0]" (rect 107 75 174 87)(font "Arial" ))
(line (pt 184 80)(pt 168 80)(line_width 3))
)
(port
(pt 184 96)
(output)
(text "row[31..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row[31..0]" (rect 123 91 171 103)(font "Arial" ))
(line (pt 184 96)(pt 168 96)(line_width 3))
)
(port
(pt 184 112)
(output)
(text "n_blank" (rect 0 0 37 12)(font "Arial" ))
(text "n_blank" (rect 132 107 169 119)(font "Arial" ))
(line (pt 184 112)(pt 168 112))
)
(port
(pt 184 128)
(output)
(text "n_sync" (rect 0 0 36 12)(font "Arial" ))
(text "n_sync" (rect 133 123 169 135)(font "Arial" ))
(line (pt 184 128)(pt 168 128))
)
(parameter
"h_pulse"
"96"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"h_bp"
"48"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"h_pixels"
"640"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"h_fp"
"16"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"h_pol"
"'0'"
""
(type "PARAMETER_ENUM") )
(parameter
"v_pulse"
"2"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"v_bp"
"33"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"v_pixels"
"480"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"v_fp"
"10"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"v_pol"
"'1'"
""
(type "PARAMETER_ENUM") )
(drawing
(rectangle (rect 16 16 168 160))
)
(annotation_block (parameter)(rect -80 -208 89 1))
)
(connector
(pt 248 144)
(pt 264 144)
)
(connector
(pt 248 160)
(pt 264 160)
)
(connector
(pt 248 224)
(pt 264 224)
)
(connector
(pt 248 240)
(pt 264 240)
)
(connector
(pt 648 176)
(pt 664 176)
(bus)
)
(connector
(pt 648 192)
(pt 664 192)
(bus)
)
(connector
(pt 648 208)
(pt 664 208)
(bus)
)
(connector
(pt 248 176)
(pt 456 176)
)
(connector
(pt 248 192)
(pt 456 192)
(bus)
)
(connector
(pt 248 208)
(pt 456 208)
(bus)
)
(connector
(pt -344 176)
(pt -344 160)
)
(connector
(pt -264 144)
(pt -248 144)
)
(connector
(pt -344 160)
(pt -248 160)
)
(connector
(pt 48 312)
(pt 32 312)
)
(connector
(pt 32 144)
(pt 32 312)
)
(connector
(pt 16 144)
(pt 32 144)
)
(connector
(pt 32 144)
(pt 64 144)
)
(connector
(pt 64 160)
(pt 48 160)
)
(connector
(pt 48 96)
(pt 48 160)
)
(junction (pt 32 144))