forked from BlusLiu/Flappy-Bird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gold.bdf
1403 lines (1403 loc) · 33.8 KB
/
gold.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
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
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-2009 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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect -504 -264 -336 -248)
(text "INPUT" (rect 133 0 166 12)(font "Arial" (font_size 6)))
(text "CLK" (rect 5 0 28 13)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 159 19)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -368 -120 -312 -104))
)
(pin
(input)
(rect -456 16 -288 32)
(text "INPUT" (rect 133 0 166 12)(font "Arial" (font_size 6)))
(text "UP" (rect 5 0 21 13)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 159 19)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -280 32 -224 48))
)
(pin
(input)
(rect -456 -24 -288 -8)
(text "INPUT" (rect 133 0 166 12)(font "Arial" (font_size 6)))
(text "RST" (rect 5 0 29 13)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 159 19)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -512 -8 -456 8))
)
(pin
(input)
(rect -456 64 -288 80)
(text "INPUT" (rect 133 0 166 12)(font "Arial" (font_size 6)))
(text "Begin" (rect 5 0 38 13)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 159 19)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -360 104 -304 120))
)
(pin
(output)
(rect 376 -288 552 -272)
(text "OUTPUT" (rect 1 0 44 12)(font "Arial" (font_size 6)))
(text "HS" (rect 90 0 106 13)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
(annotation_block (location)(rect 592 -288 648 -272))
)
(pin
(output)
(rect 376 -256 552 -240)
(text "OUTPUT" (rect 1 0 44 12)(font "Arial" (font_size 6)))
(text "VS" (rect 90 0 106 13)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
(annotation_block (location)(rect 592 -272 648 -256))
)
(pin
(output)
(rect 376 -320 552 -304)
(text "OUTPUT" (rect 1 0 44 12)(font "Arial" (font_size 6)))
(text "RGB[2..0]" (rect 90 0 144 13)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
(annotation_block (location)(rect 592 -336 656 -288))
)
(symbol
(rect 176 280 392 416)
(text "ROM_BEGIN" (rect 61 2 162 19)(font "Arial" (font_size 10)))
(text "inst2" (rect 8 117 33 130)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[15..0]" (rect 0 0 93 15)(font "Arial" (font_size 8)))
(text "address[15..0]" (rect 4 16 97 31)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 88 32)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "clock" (rect 0 0 33 15)(font "Arial" (font_size 8)))
(text "clock" (rect 4 96 37 111)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 144 112)(line_width 1))
)
(port
(pt 216 32)
(output)
(text "q[2..0]" (rect 0 0 38 15)(font "Arial" (font_size 8)))
(text "q[2..0]" (rect 176 16 214 31)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 160 32)(line_width 3))
)
(drawing
(text "3 bits" (rect 105 49 118 78)(font "Arial" )(vertical))
(text "65536 words" (rect 121 31 134 100)(font "Arial" )(vertical))
(text "Block type: AUTO" (rect 41 114 138 127)(font "Arial" ))
(line (pt 104 24)(pt 136 24)(line_width 1))
(line (pt 136 24)(pt 136 96)(line_width 1))
(line (pt 136 96)(pt 104 96)(line_width 1))
(line (pt 104 96)(pt 104 24)(line_width 1))
(line (pt 118 58)(pt 123 63)(line_width 1))
(line (pt 118 62)(pt 123 57)(line_width 1))
(line (pt 152 27)(pt 160 27)(line_width 1))
(line (pt 160 27)(pt 160 39)(line_width 1))
(line (pt 160 39)(pt 152 39)(line_width 1))
(line (pt 152 39)(pt 152 27)(line_width 1))
(line (pt 152 34)(pt 154 36)(line_width 1))
(line (pt 154 36)(pt 152 38)(line_width 1))
(line (pt 144 36)(pt 152 36)(line_width 1))
(line (pt 136 32)(pt 152 32)(line_width 3))
(line (pt 88 27)(pt 96 27)(line_width 1))
(line (pt 96 27)(pt 96 39)(line_width 1))
(line (pt 96 39)(pt 88 39)(line_width 1))
(line (pt 88 39)(pt 88 27)(line_width 1))
(line (pt 88 34)(pt 90 36)(line_width 1))
(line (pt 90 36)(pt 88 38)(line_width 1))
(line (pt 80 36)(pt 88 36)(line_width 1))
(line (pt 96 32)(pt 104 32)(line_width 3))
(line (pt 80 112)(pt 80 36)(line_width 1))
(line (pt 144 112)(pt 144 36)(line_width 1))
)
)
(symbol
(rect 80 -40 280 56)
(text "key" (rect 5 0 22 13)(font "Arial" ))
(text "inst1" (rect 8 77 33 90)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 13)(font "Arial" ))
(text "clk" (rect 21 27 35 40)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 25 13)(font "Arial" ))
(text "reset" (rect 21 43 46 56)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "up" (rect 0 0 14 13)(font "Arial" ))
(text "up" (rect 21 59 35 72)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 200 32)
(output)
(text "up_key_press" (rect 0 0 73 13)(font "Arial" ))
(text "up_key_press" (rect 87 27 160 40)(font "Arial" ))
(line (pt 200 32)(pt 184 32)(line_width 1))
)
(port
(pt 200 48)
(output)
(text "down_key_press" (rect 0 0 88 13)(font "Arial" ))
(text "down_key_press" (rect 69 43 157 56)(font "Arial" ))
(line (pt 200 48)(pt 184 48)(line_width 1))
)
(parameter
"T"
"000000000011110100001001000000"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 184 80)(line_width 1))
)
(annotation_block (parameter)(rect 80 -48 88 -40))
)
(symbol
(rect -320 -328 -8 -112)
(text "pll" (rect 149 1 165 18)(font "Arial" (font_size 10)))
(text "inst3" (rect 8 197 33 210)(font "Arial" ))
(port
(pt 0 72)
(input)
(text "inclk0" (rect 0 0 37 15)(font "Arial" (font_size 8)))
(text "inclk0" (rect 4 56 41 71)(font "Arial" (font_size 8)))
(line (pt 0 72)(pt 56 72)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "areset" (rect 0 0 41 15)(font "Arial" (font_size 8)))
(text "areset" (rect 4 80 45 95)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 56 96)(line_width 1))
)
(port
(pt 312 72)
(output)
(text "c0" (rect 0 0 15 15)(font "Arial" (font_size 8)))
(text "c0" (rect 295 56 310 71)(font "Arial" (font_size 8)))
(line (pt 312 72)(pt 256 72)(line_width 1))
)
(port
(pt 312 96)
(output)
(text "c1" (rect 0 0 15 15)(font "Arial" (font_size 8)))
(text "c1" (rect 295 80 310 95)(font "Arial" (font_size 8)))
(line (pt 312 96)(pt 256 96)(line_width 1))
)
(port
(pt 312 120)
(output)
(text "c2" (rect 0 0 15 15)(font "Arial" (font_size 8)))
(text "c2" (rect 295 104 310 119)(font "Arial" (font_size 8)))
(line (pt 312 120)(pt 256 120)(line_width 1))
)
(port
(pt 312 144)
(output)
(text "locked" (rect 0 0 42 15)(font "Arial" (font_size 8)))
(text "locked" (rect 271 128 313 143)(font "Arial" (font_size 8)))
(line (pt 312 144)(pt 256 144)(line_width 1))
)
(drawing
(text "Cyclone III" (rect 237 198 296 211)(font "Arial" ))
(text "inclk0 frequency: 20.000 MHz" (rect 66 67 230 80)(font "Arial" ))
(text "Operation Mode: Normal" (rect 66 84 204 97)(font "Arial" ))
(text "Clk " (rect 67 111 87 124)(font "Arial" ))
(text "Ratio" (rect 93 111 122 124)(font "Arial" ))
(text "Ph (dg)" (rect 127 111 167 124)(font "Arial" ))
(text "DC (%)" (rect 172 111 209 124)(font "Arial" ))
(text "c0" (rect 71 129 83 142)(font "Arial" ))
(text "5/4" (rect 99 129 116 142)(font "Arial" ))
(text "0.00" (rect 135 129 159 142)(font "Arial" ))
(text "50.00" (rect 177 129 208 142)(font "Arial" ))
(text "c1" (rect 71 147 83 160)(font "Arial" ))
(text "5/2" (rect 99 147 116 160)(font "Arial" ))
(text "0.00" (rect 135 147 159 160)(font "Arial" ))
(text "50.00" (rect 177 147 208 160)(font "Arial" ))
(text "c2" (rect 71 165 83 178)(font "Arial" ))
(text "5/1" (rect 99 165 116 178)(font "Arial" ))
(text "0.00" (rect 135 165 159 178)(font "Arial" ))
(text "50.00" (rect 177 165 208 178)(font "Arial" ))
(line (pt 0 0)(pt 313 0)(line_width 1))
(line (pt 313 0)(pt 313 217)(line_width 1))
(line (pt 0 217)(pt 313 217)(line_width 1))
(line (pt 0 0)(pt 0 217)(line_width 1))
(line (pt 64 108)(pt 214 108)(line_width 1))
(line (pt 64 125)(pt 214 125)(line_width 1))
(line (pt 64 143)(pt 214 143)(line_width 1))
(line (pt 64 161)(pt 214 161)(line_width 1))
(line (pt 64 179)(pt 214 179)(line_width 1))
(line (pt 64 108)(pt 64 179)(line_width 1))
(line (pt 90 108)(pt 90 179)(line_width 3))
(line (pt 124 108)(pt 124 179)(line_width 3))
(line (pt 169 108)(pt 169 179)(line_width 3))
(line (pt 213 108)(pt 213 179)(line_width 1))
(line (pt 56 56)(pt 256 56)(line_width 1))
(line (pt 256 56)(pt 256 200)(line_width 1))
(line (pt 56 200)(pt 256 200)(line_width 1))
(line (pt 56 56)(pt 56 200)(line_width 1))
)
)
(symbol
(rect 328 56 376 88)
(text "NOT" (rect 1 0 23 12)(font "Arial" (font_size 6)))
(text "inst13" (rect 3 21 36 34)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 16 20)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 16 20)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 53 20)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 53 20)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect 176 440 392 576)
(text "ROM_G" (rect 80 2 142 19)(font "Arial" (font_size 10)))
(text "inst6" (rect 8 117 33 130)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[12..0]" (rect 0 0 93 15)(font "Arial" (font_size 8)))
(text "address[12..0]" (rect 4 16 97 31)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 88 32)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "clock" (rect 0 0 33 15)(font "Arial" (font_size 8)))
(text "clock" (rect 4 96 37 111)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 144 112)(line_width 1))
)
(port
(pt 216 32)
(output)
(text "q[2..0]" (rect 0 0 38 15)(font "Arial" (font_size 8)))
(text "q[2..0]" (rect 176 16 214 31)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 160 32)(line_width 3))
)
(drawing
(text "3 bits" (rect 105 49 118 78)(font "Arial" )(vertical))
(text "8192 words" (rect 121 33 134 95)(font "Arial" )(vertical))
(text "Block type: AUTO" (rect 41 114 138 127)(font "Arial" ))
(line (pt 104 24)(pt 136 24)(line_width 1))
(line (pt 136 24)(pt 136 96)(line_width 1))
(line (pt 136 96)(pt 104 96)(line_width 1))
(line (pt 104 96)(pt 104 24)(line_width 1))
(line (pt 118 58)(pt 123 63)(line_width 1))
(line (pt 118 62)(pt 123 57)(line_width 1))
(line (pt 152 27)(pt 160 27)(line_width 1))
(line (pt 160 27)(pt 160 39)(line_width 1))
(line (pt 160 39)(pt 152 39)(line_width 1))
(line (pt 152 39)(pt 152 27)(line_width 1))
(line (pt 152 34)(pt 154 36)(line_width 1))
(line (pt 154 36)(pt 152 38)(line_width 1))
(line (pt 144 36)(pt 152 36)(line_width 1))
(line (pt 136 32)(pt 152 32)(line_width 3))
(line (pt 88 27)(pt 96 27)(line_width 1))
(line (pt 96 27)(pt 96 39)(line_width 1))
(line (pt 96 39)(pt 88 39)(line_width 1))
(line (pt 88 39)(pt 88 27)(line_width 1))
(line (pt 88 34)(pt 90 36)(line_width 1))
(line (pt 90 36)(pt 88 38)(line_width 1))
(line (pt 80 36)(pt 88 36)(line_width 1))
(line (pt 96 32)(pt 104 32)(line_width 3))
(line (pt 80 112)(pt 80 36)(line_width 1))
(line (pt 144 112)(pt 144 36)(line_width 1))
)
)
(symbol
(rect 128 -192 264 -64)
(text "VGA" (rect 5 0 30 13)(font "Arial" ))
(text "inst" (rect 8 109 26 122)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 13)(font "Arial" ))
(text "clk" (rect 21 27 35 40)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 25 13)(font "Arial" ))
(text "reset" (rect 21 43 46 56)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "hsync" (rect 0 0 30 13)(font "Arial" ))
(text "hsync" (rect 78 27 108 40)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 1))
)
(port
(pt 136 48)
(output)
(text "vsync" (rect 0 0 29 13)(font "Arial" ))
(text "vsync" (rect 80 43 109 56)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 1))
)
(port
(pt 136 64)
(output)
(text "hc[9..0]" (rect 0 0 41 13)(font "Arial" ))
(text "hc[9..0]" (rect 69 59 110 72)(font "Arial" ))
(line (pt 136 64)(pt 120 64)(line_width 3))
)
(port
(pt 136 80)
(output)
(text "vc[9..0]" (rect 0 0 40 13)(font "Arial" ))
(text "vc[9..0]" (rect 72 75 112 88)(font "Arial" ))
(line (pt 136 80)(pt 120 80)(line_width 3))
)
(port
(pt 136 96)
(output)
(text "dat_act" (rect 0 0 41 13)(font "Arial" ))
(text "dat_act" (rect 68 91 109 104)(font "Arial" ))
(line (pt 136 96)(pt 120 96)(line_width 1))
)
(parameter
"hsync_end"
"0001011111"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"hdat_begin"
"0010001111"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"hdat_end"
"1100001111"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"hpixel_end"
"1100011111"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"vsync_end"
"0000000001"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"vdat_begin"
"0000100010"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"vdat_end"
"1000000010"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"vline_end"
"1000001100"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 120 112)(line_width 1))
)
(annotation_block (parameter)(rect 264 -200 272 -192))
)
(symbol
(rect 536 104 752 240)
(text "SCORE" (rect 80 2 143 19)(font "Arial" (font_size 10)))
(text "inst9" (rect 8 117 33 130)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[13..0]" (rect 0 0 93 15)(font "Arial" (font_size 8)))
(text "address[13..0]" (rect 4 16 97 31)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 88 32)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "clock" (rect 0 0 33 15)(font "Arial" (font_size 8)))
(text "clock" (rect 4 96 37 111)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 144 112)(line_width 1))
)
(port
(pt 216 32)
(output)
(text "q[2..0]" (rect 0 0 38 15)(font "Arial" (font_size 8)))
(text "q[2..0]" (rect 176 16 214 31)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 160 32)(line_width 3))
)
(drawing
(text "3 bits" (rect 105 49 118 78)(font "Arial" )(vertical))
(text "16384 words" (rect 121 31 134 100)(font "Arial" )(vertical))
(text "Block type: AUTO" (rect 41 114 138 127)(font "Arial" ))
(line (pt 104 24)(pt 136 24)(line_width 1))
(line (pt 136 24)(pt 136 96)(line_width 1))
(line (pt 136 96)(pt 104 96)(line_width 1))
(line (pt 104 96)(pt 104 24)(line_width 1))
(line (pt 118 58)(pt 123 63)(line_width 1))
(line (pt 118 62)(pt 123 57)(line_width 1))
(line (pt 152 27)(pt 160 27)(line_width 1))
(line (pt 160 27)(pt 160 39)(line_width 1))
(line (pt 160 39)(pt 152 39)(line_width 1))
(line (pt 152 39)(pt 152 27)(line_width 1))
(line (pt 152 34)(pt 154 36)(line_width 1))
(line (pt 154 36)(pt 152 38)(line_width 1))
(line (pt 144 36)(pt 152 36)(line_width 1))
(line (pt 136 32)(pt 152 32)(line_width 3))
(line (pt 88 27)(pt 96 27)(line_width 1))
(line (pt 96 27)(pt 96 39)(line_width 1))
(line (pt 96 39)(pt 88 39)(line_width 1))
(line (pt 88 39)(pt 88 27)(line_width 1))
(line (pt 88 34)(pt 90 36)(line_width 1))
(line (pt 90 36)(pt 88 38)(line_width 1))
(line (pt 80 36)(pt 88 36)(line_width 1))
(line (pt 96 32)(pt 104 32)(line_width 3))
(line (pt 80 112)(pt 80 36)(line_width 1))
(line (pt 144 112)(pt 144 36)(line_width 1))
)
)
(symbol
(rect 176 608 392 744)
(text "GG" (rect 96 2 121 19)(font "Arial" (font_size 10)))
(text "inst4" (rect 8 117 33 130)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[14..0]" (rect 0 0 93 15)(font "Arial" (font_size 8)))
(text "address[14..0]" (rect 4 16 97 31)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 88 32)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "clock" (rect 0 0 33 15)(font "Arial" (font_size 8)))
(text "clock" (rect 4 96 37 111)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 144 112)(line_width 1))
)
(port
(pt 216 32)
(output)
(text "q[2..0]" (rect 0 0 38 15)(font "Arial" (font_size 8)))
(text "q[2..0]" (rect 176 16 214 31)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 160 32)(line_width 3))
)
(drawing
(text "3 bits" (rect 105 49 118 78)(font "Arial" )(vertical))
(text "32768 words" (rect 121 31 134 100)(font "Arial" )(vertical))
(text "Block type: AUTO" (rect 41 114 138 127)(font "Arial" ))
(line (pt 104 24)(pt 136 24)(line_width 1))
(line (pt 136 24)(pt 136 96)(line_width 1))
(line (pt 136 96)(pt 104 96)(line_width 1))
(line (pt 104 96)(pt 104 24)(line_width 1))
(line (pt 118 58)(pt 123 63)(line_width 1))
(line (pt 118 62)(pt 123 57)(line_width 1))
(line (pt 152 27)(pt 160 27)(line_width 1))
(line (pt 160 27)(pt 160 39)(line_width 1))
(line (pt 160 39)(pt 152 39)(line_width 1))
(line (pt 152 39)(pt 152 27)(line_width 1))
(line (pt 152 34)(pt 154 36)(line_width 1))
(line (pt 154 36)(pt 152 38)(line_width 1))
(line (pt 144 36)(pt 152 36)(line_width 1))
(line (pt 136 32)(pt 152 32)(line_width 3))
(line (pt 88 27)(pt 96 27)(line_width 1))
(line (pt 96 27)(pt 96 39)(line_width 1))
(line (pt 96 39)(pt 88 39)(line_width 1))
(line (pt 88 39)(pt 88 27)(line_width 1))
(line (pt 88 34)(pt 90 36)(line_width 1))
(line (pt 90 36)(pt 88 38)(line_width 1))
(line (pt 80 36)(pt 88 36)(line_width 1))
(line (pt 96 32)(pt 104 32)(line_width 3))
(line (pt 80 112)(pt 80 36)(line_width 1))
(line (pt 144 112)(pt 144 36)(line_width 1))
)
)
(symbol
(rect 536 280 752 416)
(text "WIN" (rect 94 2 127 19)(font "Arial" (font_size 10)))
(text "inst7" (rect 8 119 33 132)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[12..0]" (rect 0 0 93 15)(font "Arial" (font_size 8)))
(text "address[12..0]" (rect 4 18 97 33)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 88 32)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "clock" (rect 0 0 33 15)(font "Arial" (font_size 8)))
(text "clock" (rect 4 98 37 113)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 144 112)(line_width 1))
)
(port
(pt 216 32)
(output)
(text "q[2..0]" (rect 0 0 38 15)(font "Arial" (font_size 8)))
(text "q[2..0]" (rect 180 18 218 33)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 160 32)(line_width 3))
)
(drawing
(text "3 bits" (rect 107 47 120 76)(font "Arial" )(vertical))
(text "8192 words" (rect 121 33 134 95)(font "Arial" )(vertical))
(text "Block type: AUTO" (rect 41 115 138 128)(font "Arial" ))
(line (pt 104 24)(pt 136 24)(line_width 1))
(line (pt 136 24)(pt 136 96)(line_width 1))
(line (pt 136 96)(pt 104 96)(line_width 1))
(line (pt 104 96)(pt 104 24)(line_width 1))
(line (pt 118 58)(pt 123 63)(line_width 1))
(line (pt 118 62)(pt 123 57)(line_width 1))
(line (pt 152 27)(pt 160 27)(line_width 1))
(line (pt 160 27)(pt 160 39)(line_width 1))
(line (pt 160 39)(pt 152 39)(line_width 1))
(line (pt 152 39)(pt 152 27)(line_width 1))
(line (pt 152 34)(pt 154 36)(line_width 1))
(line (pt 154 36)(pt 152 38)(line_width 1))
(line (pt 144 36)(pt 152 36)(line_width 1))
(line (pt 136 32)(pt 152 32)(line_width 3))
(line (pt 88 27)(pt 96 27)(line_width 1))
(line (pt 96 27)(pt 96 39)(line_width 1))
(line (pt 96 39)(pt 88 39)(line_width 1))
(line (pt 88 39)(pt 88 27)(line_width 1))
(line (pt 88 34)(pt 90 36)(line_width 1))
(line (pt 90 36)(pt 88 38)(line_width 1))
(line (pt 80 36)(pt 88 36)(line_width 1))
(line (pt 96 32)(pt 104 32)(line_width 3))
(line (pt 80 112)(pt 80 36)(line_width 1))
(line (pt 144 112)(pt 144 36)(line_width 1))
)
)
(symbol
(rect 176 96 392 232)
(text "ROM_B" (rect 80 2 141 19)(font "Arial" (font_size 10)))
(text "inst8" (rect 8 117 33 130)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[10..0]" (rect 0 0 93 15)(font "Arial" (font_size 8)))
(text "address[10..0]" (rect 4 16 97 31)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 88 32)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "clock" (rect 0 0 33 15)(font "Arial" (font_size 8)))
(text "clock" (rect 4 96 37 111)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 144 112)(line_width 1))
)
(port
(pt 216 32)
(output)
(text "q[2..0]" (rect 0 0 38 15)(font "Arial" (font_size 8)))
(text "q[2..0]" (rect 176 16 214 31)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 160 32)(line_width 3))
)
(drawing
(text "3 bits" (rect 105 49 118 78)(font "Arial" )(vertical))
(text "2048 words" (rect 121 33 134 95)(font "Arial" )(vertical))
(text "Block type: AUTO" (rect 41 114 138 127)(font "Arial" ))
(line (pt 104 24)(pt 136 24)(line_width 1))
(line (pt 136 24)(pt 136 96)(line_width 1))
(line (pt 136 96)(pt 104 96)(line_width 1))
(line (pt 104 96)(pt 104 24)(line_width 1))
(line (pt 118 58)(pt 123 63)(line_width 1))
(line (pt 118 62)(pt 123 57)(line_width 1))
(line (pt 152 27)(pt 160 27)(line_width 1))
(line (pt 160 27)(pt 160 39)(line_width 1))
(line (pt 160 39)(pt 152 39)(line_width 1))
(line (pt 152 39)(pt 152 27)(line_width 1))
(line (pt 152 34)(pt 154 36)(line_width 1))
(line (pt 154 36)(pt 152 38)(line_width 1))
(line (pt 144 36)(pt 152 36)(line_width 1))
(line (pt 136 32)(pt 152 32)(line_width 3))
(line (pt 88 27)(pt 96 27)(line_width 1))
(line (pt 96 27)(pt 96 39)(line_width 1))
(line (pt 96 39)(pt 88 39)(line_width 1))
(line (pt 88 39)(pt 88 27)(line_width 1))
(line (pt 88 34)(pt 90 36)(line_width 1))
(line (pt 90 36)(pt 88 38)(line_width 1))
(line (pt 80 36)(pt 88 36)(line_width 1))
(line (pt 96 32)(pt 104 32)(line_width 3))
(line (pt 80 112)(pt 80 36)(line_width 1))
(line (pt 144 112)(pt 144 36)(line_width 1))
)
)
(symbol
(rect 520 -192 784 96)
(text "control" (rect 5 0 42 13)(font "Arial" ))
(text "inst10" (rect 8 271 41 284)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 13)(font "Arial" ))
(text "clk" (rect 21 27 35 40)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 25 13)(font "Arial" ))
(text "reset" (rect 21 43 46 56)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "hc[9..0]" (rect 0 0 41 13)(font "Arial" ))
(text "hc[9..0]" (rect 21 59 62 72)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "vc[9..0]" (rect 0 0 40 13)(font "Arial" ))
(text "vc[9..0]" (rect 21 75 61 88)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "dat_act" (rect 0 0 41 13)(font "Arial" ))
(text "dat_act" (rect 21 91 62 104)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "up_key_press" (rect 0 0 73 13)(font "Arial" ))
(text "up_key_press" (rect 21 107 94 120)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "down_key_press" (rect 0 0 88 13)(font "Arial" ))
(text "down_key_press" (rect 21 123 109 136)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "RGB_Bird[2..0]" (rect 0 0 83 13)(font "Arial" ))
(text "RGB_Bird[2..0]" (rect 21 139 104 152)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 3))
)
(port
(pt 0 160)
(input)
(text "RGB_BEGIN[2..0]" (rect 0 0 99 13)(font "Arial" ))
(text "RGB_BEGIN[2..0]" (rect 21 155 120 168)(font "Arial" ))
(line (pt 0 160)(pt 16 160)(line_width 3))
)
(port
(pt 0 176)
(input)
(text "RGB_G[2..0]" (rect 0 0 70 13)(font "Arial" ))
(text "RGB_G[2..0]" (rect 21 171 91 184)(font "Arial" ))
(line (pt 0 176)(pt 16 176)(line_width 3))
)
(port
(pt 0 192)
(input)
(text "BEGIN" (rect 0 0 37 13)(font "Arial" ))
(text "BEGIN" (rect 21 187 58 200)(font "Arial" ))
(line (pt 0 192)(pt 16 192)(line_width 1))
)
(port
(pt 0 208)
(input)
(text "RGB_GG[2..0]" (rect 0 0 80 13)(font "Arial" ))
(text "RGB_GG[2..0]" (rect 21 203 101 216)(font "Arial" ))
(line (pt 0 208)(pt 16 208)(line_width 3))
)
(port
(pt 0 224)
(input)
(text "RGB_WIN[2..0]" (rect 0 0 83 13)(font "Arial" ))
(text "RGB_WIN[2..0]" (rect 21 219 104 232)(font "Arial" ))
(line (pt 0 224)(pt 16 224)(line_width 3))
)
(port
(pt 0 240)
(input)
(text "RGB_SCORE[2..0]" (rect 0 0 103 13)(font "Arial" ))
(text "RGB_SCORE[2..0]" (rect 21 235 124 248)(font "Arial" ))
(line (pt 0 240)(pt 16 240)(line_width 3))
)
(port
(pt 264 32)
(output)
(text "disp_RGB[2..0]" (rect 0 0 83 13)(font "Arial" ))
(text "disp_RGB[2..0]" (rect 160 27 243 40)(font "Arial" ))
(line (pt 264 32)(pt 248 32)(line_width 3))
)
(port
(pt 264 48)
(output)
(text "addr_BIRD[10..0]" (rect 0 0 95 13)(font "Arial" ))
(text "addr_BIRD[10..0]" (rect 148 43 243 56)(font "Arial" ))
(line (pt 264 48)(pt 248 48)(line_width 3))
)
(port
(pt 264 64)
(output)
(text "addr_G[12..0]" (rect 0 0 76 13)(font "Arial" ))
(text "addr_G[12..0]" (rect 167 59 243 72)(font "Arial" ))
(line (pt 264 64)(pt 248 64)(line_width 3))
)
(port
(pt 264 80)
(output)
(text "addr_GG[14..0]" (rect 0 0 86 13)(font "Arial" ))
(text "addr_GG[14..0]" (rect 157 75 243 88)(font "Arial" ))
(line (pt 264 80)(pt 248 80)(line_width 3))
)
(port
(pt 264 96)
(output)
(text "addr_BEGIN[15..0]" (rect 0 0 105 13)(font "Arial" ))
(text "addr_BEGIN[15..0]" (rect 138 91 243 104)(font "Arial" ))
(line (pt 264 96)(pt 248 96)(line_width 3))
)
(port
(pt 264 112)
(output)
(text "addr_WIN[12..0]" (rect 0 0 89 13)(font "Arial" ))
(text "addr_WIN[12..0]" (rect 154 107 243 120)(font "Arial" ))
(line (pt 264 112)(pt 248 112)(line_width 3))
)
(port
(pt 264 128)
(output)
(text "addr_SCORE[13..0]" (rect 0 0 109 13)(font "Arial" ))
(text "addr_SCORE[13..0]" (rect 134 123 243 136)(font "Arial" ))
(line (pt 264 128)(pt 248 128)(line_width 3))
)
(parameter
"border"
"40"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"ban"
"30"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"long"
"200"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"magin"
"160"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"move_x"
"50"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"seed"
"11111111"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 248 272)(line_width 1))
)
(annotation_block (parameter)(rect 784 -304 1008 -192))
)
(connector
(pt -320 -256)
(pt -336 -256)
)
(connector
(pt 264 -160)
(pt 328 -160)
)
(connector
(pt 376 -280)
(pt 328 -280)
)
(connector
(pt 328 -280)
(pt 328 -160)
)
(connector
(pt 376 -248)
(pt 352 -248)
)
(connector
(pt 352 -248)
(pt 352 -144)
)
(connector
(pt 352 -144)
(pt 264 -144)
)
(connector
(pt 96 -232)
(pt 400 -232)
)
(connector
(pt 96 -232)
(pt 96 -144)
)
(connector
(pt 320 -8)
(pt 280 -8)
)
(connector
(pt 56 -8)
(pt 80 -8)
)
(connector
(pt 344 8)
(pt 280 8)
)
(connector
(pt 32 8)
(pt 80 8)
)
(connector
(pt 176 128)
(pt 120 128)
(bus)
)
(connector
(pt -8 -256)
(pt 24 -256)
)
(connector
(pt 176 208)
(pt 24 208)
)
(connector
(pt 120 128)
(pt 120 256)
(bus)
)
(connector
(pt -8 -208)
(pt 56 -208)
)
(connector
(pt 56 -208)
(pt 376 -208)
)
(connector
(pt 392 128)
(pt 400 128)
(bus)
)
(connector
(pt 416 312)