-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtank-hunt.bdf
1646 lines (1646 loc) · 40.8 KB
/
tank-hunt.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-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 "graphic" (version "1.4"))
(pin
(input)
(rect 64 104 232 120)
(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 8 120 64 136))
)
(pin
(input)
(rect 64 280 232 296)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "sw0" (rect 5 0 23 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 16 296 64 312))
)
(pin
(input)
(rect 64 296 232 312)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "button0" (rect 5 0 41 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 8 312 64 328))
)
(pin
(input)
(rect 64 312 232 328)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "button1" (rect 5 0 41 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 8 328 64 344))
)
(pin
(input)
(rect 64 328 232 344)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "button2" (rect 5 0 41 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 16 344 64 360))
)
(pin
(output)
(rect 1672 288 1848 304)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg3[7..0]" (rect 90 0 139 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 1848 304 1904 320))
)
(pin
(output)
(rect 1672 304 1848 320)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg2[7..0]" (rect 90 0 139 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 1848 320 1904 336))
)
(pin
(output)
(rect 1672 320 1848 336)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg1[7..0]" (rect 90 0 139 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 1848 336 1904 352))
)
(pin
(output)
(rect 1672 336 1848 352)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg0[7..0]" (rect 90 0 139 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 1848 360 1904 376))
)
(pin
(output)
(rect 1672 544 1848 560)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "horiz_sync_out" (rect 90 0 164 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 1848 560 1904 576))
)
(pin
(output)
(rect 1672 560 1848 576)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "vert_sync_out" (rect 90 0 161 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 1848 576 1904 592))
)
(pin
(output)
(rect 1672 352 1848 368)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "red_out0" (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 1848 368 1904 384))
)
(pin
(output)
(rect 1672 368 1848 384)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "red_out1" (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 1848 384 1904 400))
)
(pin
(output)
(rect 1672 384 1848 400)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "red_out2" (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 1848 400 1904 416))
)
(pin
(output)
(rect 1672 400 1848 416)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "red_out3" (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 1848 416 1904 432))
)
(pin
(output)
(rect 1672 416 1848 432)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "green_out0" (rect 90 0 144 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 1848 432 1904 448))
)
(pin
(output)
(rect 1672 432 1848 448)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "green_out1" (rect 90 0 144 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 1848 448 1904 464))
)
(pin
(output)
(rect 1672 448 1848 464)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "green_out2" (rect 90 0 144 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 1848 464 1904 480))
)
(pin
(output)
(rect 1672 464 1848 480)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "green_out3" (rect 90 0 144 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 1848 480 1904 496))
)
(pin
(output)
(rect 1672 480 1848 496)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "blue_out0" (rect 90 0 137 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 1848 496 1904 512))
)
(pin
(output)
(rect 1672 496 1848 512)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "blue_out1" (rect 90 0 137 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 1848 512 1904 528))
)
(pin
(output)
(rect 1672 512 1848 528)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "blue_out2" (rect 90 0 137 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 1848 528 1904 544))
)
(pin
(output)
(rect 1672 528 1848 544)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "blue_out3" (rect 90 0 137 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 1848 544 1904 560))
)
(pin
(bidir)
(rect 1344 104 1520 120)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "m_data" (rect 90 0 126 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 56 4)(pt 78 4))
(line (pt 0 8)(pt 52 8))
(line (pt 56 12)(pt 78 12))
(line (pt 78 4)(pt 82 8))
(line (pt 78 12)(pt 82 8))
(line (pt 56 4)(pt 52 8))
(line (pt 52 8)(pt 56 12))
)
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 1520 120 1576 136))
)
(pin
(bidir)
(rect 1344 120 1520 136)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "m_clk" (rect 90 0 119 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 56 4)(pt 78 4))
(line (pt 0 8)(pt 52 8))
(line (pt 56 12)(pt 78 12))
(line (pt 78 4)(pt 82 8))
(line (pt 78 12)(pt 82 8))
(line (pt 56 4)(pt 52 8))
(line (pt 52 8)(pt 56 12))
)
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 1520 136 1576 152))
)
(symbol
(rect 824 88 1000 168)
(text "var_clk_div" (rect 5 0 62 12)(font "Arial" ))
(text "var_clk_div0" (rect 8 64 71 76)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 176 32)
(output)
(text "clk_div[size-1..0]" (rect 0 0 83 12)(font "Arial" ))
(text "clk_div[size-1..0]" (rect 85 27 168 39)(font "Arial" ))
(line (pt 176 32)(pt 160 32)(line_width 3))
)
(parameter
"size"
"20"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 160 64))
)
(annotation_block (parameter)(rect 1000 56 1182 84))
)
(symbol
(rect 376 80 536 160)
(text "clk_s" (rect 5 0 30 12)(font "Arial" ))
(text "clk_s0" (rect 8 64 39 76)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk_50M" (rect 0 0 40 12)(font "Arial" ))
(text "clk_50M" (rect 21 27 61 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 160 32)
(output)
(text "clk_s" (rect 0 0 25 12)(font "Arial" ))
(text "clk_s" (rect 118 27 143 39)(font "Arial" ))
(line (pt 160 32)(pt 144 32))
)
(drawing
(rectangle (rect 16 16 144 64))
)
)
(symbol
(rect 376 256 584 448)
(text "input" (rect 5 0 32 14)(font "Arial" (font_size 8)))
(text "input0" (rect 8 176 37 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "sw0" (rect 0 0 25 14)(font "Arial" (font_size 8)))
(text "sw0" (rect 21 27 46 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "button0" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "button0" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "button1" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "button1" (rect 21 59 63 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "button2" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "button2" (rect 21 75 63 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "clk_50M" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "clk_50M" (rect 21 91 67 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "clk_25M" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "clk_25M" (rect 21 107 67 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112))
)
(port
(pt 0 128)
(input)
(text "mouse_pos_reset" (rect 0 0 102 14)(font "Arial" (font_size 8)))
(text "mouse_pos_reset" (rect 21 123 123 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128))
)
(port
(pt 208 32)
(output)
(text "switch" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "switch" (rect 149 27 187 41)(font "Arial" (font_size 8)))
(line (pt 208 32)(pt 192 32))
)
(port
(pt 208 48)
(output)
(text "btn_0" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "btn_0" (rect 156 43 187 57)(font "Arial" (font_size 8)))
(line (pt 208 48)(pt 192 48))
)
(port
(pt 208 64)
(output)
(text "btn_1" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "btn_1" (rect 156 59 187 73)(font "Arial" (font_size 8)))
(line (pt 208 64)(pt 192 64))
)
(port
(pt 208 80)
(output)
(text "btn_2" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "btn_2" (rect 156 75 187 89)(font "Arial" (font_size 8)))
(line (pt 208 80)(pt 192 80))
)
(port
(pt 208 128)
(output)
(text "m_btn_l" (rect 0 0 43 14)(font "Arial" (font_size 8)))
(text "m_btn_l" (rect 144 123 187 137)(font "Arial" (font_size 8)))
(line (pt 208 128)(pt 192 128))
)
(port
(pt 208 144)
(output)
(text "m_btn_r" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "m_btn_r" (rect 141 139 187 153)(font "Arial" (font_size 8)))
(line (pt 208 144)(pt 192 144))
)
(port
(pt 208 160)
(output)
(text "m_x[9..0]" (rect 0 0 51 14)(font "Arial" (font_size 8)))
(text "m_x[9..0]" (rect 136 155 187 169)(font "Arial" (font_size 8)))
(line (pt 208 160)(pt 192 160)(line_width 3))
)
(port
(pt 208 96)
(bidir)
(text "m_data" (rect 0 0 41 14)(font "Arial" (font_size 8)))
(text "m_data" (rect 146 91 187 105)(font "Arial" (font_size 8)))
(line (pt 208 96)(pt 192 96))
)
(port
(pt 208 112)
(bidir)
(text "m_clk" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "m_clk" (rect 156 107 187 121)(font "Arial" (font_size 8)))
(line (pt 208 112)(pt 192 112))
)
(drawing
(rectangle (rect 16 16 192 176))
)
)
(symbol
(rect 832 256 1072 704)
(text "game" (rect 5 0 35 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 432 25 444)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk_50M" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "clk_50M" (rect 21 27 67 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "clk_move[2..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "clk_move[2..0]" (rect 21 43 102 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "clk_s" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clk_s" (rect 21 59 50 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "m_btn_l" (rect 0 0 43 14)(font "Arial" (font_size 8)))
(text "m_btn_l" (rect 21 75 64 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "m_btn_r" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "m_btn_r" (rect 21 91 67 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "m_x[9..0]" (rect 0 0 51 14)(font "Arial" (font_size 8)))
(text "m_x[9..0]" (rect 21 107 72 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "btn_0" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "btn_0" (rect 21 123 52 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128))
)
(port
(pt 0 144)
(input)
(text "btn_1" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "btn_1" (rect 21 139 52 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144))
)
(port
(pt 0 160)
(input)
(text "btn_2" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "btn_2" (rect 21 155 52 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160))
)
(port
(pt 0 176)
(input)
(text "sw_0" (rect 0 0 33 14)(font "Arial" (font_size 8)))
(text "sw_0" (rect 21 171 54 185)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176))
)
(port
(pt 0 192)
(input)
(text "ready" (rect 0 0 33 14)(font "Arial" (font_size 8)))
(text "ready" (rect 21 187 54 201)(font "Arial" (font_size 8)))
(line (pt 0 192)(pt 16 192))
)
(port
(pt 0 208)
(input)
(text "clk_bullet" (rect 0 0 51 14)(font "Arial" (font_size 8)))
(text "clk_bullet" (rect 21 203 72 217)(font "Arial" (font_size 8)))
(line (pt 0 208)(pt 16 208))
)
(port
(pt 240 32)
(output)
(text "mouse_pos_reset" (rect 0 0 102 14)(font "Arial" (font_size 8)))
(text "mouse_pos_reset" (rect 117 27 219 41)(font "Arial" (font_size 8)))
(line (pt 240 32)(pt 224 32))
)
(port
(pt 240 48)
(output)
(text "pregame" (rect 0 0 49 14)(font "Arial" (font_size 8)))
(text "pregame" (rect 170 43 219 57)(font "Arial" (font_size 8)))
(line (pt 240 48)(pt 224 48))
)
(port
(pt 240 64)
(output)
(text "midgame" (rect 0 0 49 14)(font "Arial" (font_size 8)))
(text "midgame" (rect 170 59 219 73)(font "Arial" (font_size 8)))
(line (pt 240 64)(pt 224 64))
)
(port
(pt 240 80)
(output)
(text "endgame" (rect 0 0 51 14)(font "Arial" (font_size 8)))
(text "endgame" (rect 168 75 219 89)(font "Arial" (font_size 8)))
(line (pt 240 80)(pt 224 80))
)
(port
(pt 240 96)
(output)
(text "next_level" (rect 0 0 57 14)(font "Arial" (font_size 8)))
(text "next_level" (rect 162 91 219 105)(font "Arial" (font_size 8)))
(line (pt 240 96)(pt 224 96))
)
(port
(pt 240 112)
(output)
(text "current_level[1..0]" (rect 0 0 102 14)(font "Arial" (font_size 8)))
(text "current_level[1..0]" (rect 117 107 219 121)(font "Arial" (font_size 8)))
(line (pt 240 112)(pt 224 112)(line_width 3))
)
(port
(pt 240 128)
(output)
(text "current_kills[7..0]" (rect 0 0 96 14)(font "Arial" (font_size 8)))
(text "current_kills[7..0]" (rect 123 123 219 137)(font "Arial" (font_size 8)))
(line (pt 240 128)(pt 224 128)(line_width 3))
)
(port
(pt 240 144)
(output)
(text "total_kills[7..0]" (rect 0 0 79 14)(font "Arial" (font_size 8)))
(text "total_kills[7..0]" (rect 140 139 219 153)(font "Arial" (font_size 8)))
(line (pt 240 144)(pt 224 144)(line_width 3))
)
(port
(pt 240 160)
(output)
(text "game_won" (rect 0 0 63 14)(font "Arial" (font_size 8)))
(text "game_won" (rect 156 155 219 169)(font "Arial" (font_size 8)))
(line (pt 240 160)(pt 224 160))
)
(port
(pt 240 176)
(output)
(text "game_mode" (rect 0 0 68 14)(font "Arial" (font_size 8)))
(text "game_mode" (rect 151 171 219 185)(font "Arial" (font_size 8)))
(line (pt 240 176)(pt 224 176))
)
(port
(pt 240 192)
(output)
(text "game_time[7..0]" (rect 0 0 88 14)(font "Arial" (font_size 8)))
(text "game_time[7..0]" (rect 131 187 219 201)(font "Arial" (font_size 8)))
(line (pt 240 192)(pt 224 192)(line_width 3))
)
(port
(pt 240 208)
(output)
(text "player_x[9..0]" (rect 0 0 77 14)(font "Arial" (font_size 8)))
(text "player_x[9..0]" (rect 142 203 219 217)(font "Arial" (font_size 8)))
(line (pt 240 208)(pt 224 208)(line_width 3))
)
(port
(pt 240 224)
(output)
(text "player_y[9..0]" (rect 0 0 77 14)(font "Arial" (font_size 8)))
(text "player_y[9..0]" (rect 142 219 219 233)(font "Arial" (font_size 8)))
(line (pt 240 224)(pt 224 224)(line_width 3))
)
(port
(pt 240 240)
(output)
(text "ai0_x[9..0]" (rect 0 0 59 14)(font "Arial" (font_size 8)))
(text "ai0_x[9..0]" (rect 160 235 219 249)(font "Arial" (font_size 8)))
(line (pt 240 240)(pt 224 240)(line_width 3))
)
(port
(pt 240 256)
(output)
(text "ai0_y[9..0]" (rect 0 0 59 14)(font "Arial" (font_size 8)))
(text "ai0_y[9..0]" (rect 160 251 219 265)(font "Arial" (font_size 8)))
(line (pt 240 256)(pt 224 256)(line_width 3))
)
(port
(pt 240 272)
(output)
(text "ai0_show" (rect 0 0 56 14)(font "Arial" (font_size 8)))
(text "ai0_show" (rect 163 267 219 281)(font "Arial" (font_size 8)))
(line (pt 240 272)(pt 224 272))
)
(port
(pt 240 288)
(output)
(text "ai1_x[9..0]" (rect 0 0 59 14)(font "Arial" (font_size 8)))
(text "ai1_x[9..0]" (rect 160 283 219 297)(font "Arial" (font_size 8)))
(line (pt 240 288)(pt 224 288)(line_width 3))
)
(port
(pt 240 304)
(output)
(text "ai1_y[9..0]" (rect 0 0 59 14)(font "Arial" (font_size 8)))
(text "ai1_y[9..0]" (rect 160 299 219 313)(font "Arial" (font_size 8)))
(line (pt 240 304)(pt 224 304)(line_width 3))
)
(port
(pt 240 320)
(output)
(text "ai1_show" (rect 0 0 56 14)(font "Arial" (font_size 8)))
(text "ai1_show" (rect 163 315 219 329)(font "Arial" (font_size 8)))
(line (pt 240 320)(pt 224 320))
)
(port
(pt 240 336)
(output)
(text "state_debug[2..0]" (rect 0 0 99 14)(font "Arial" (font_size 8)))
(text "state_debug[2..0]" (rect 120 331 219 345)(font "Arial" (font_size 8)))
(line (pt 240 336)(pt 224 336)(line_width 3))
)
(port
(pt 240 352)
(output)
(text "game_pause" (rect 0 0 73 14)(font "Arial" (font_size 8)))
(text "game_pause" (rect 146 347 219 361)(font "Arial" (font_size 8)))
(line (pt 240 352)(pt 224 352))
)
(port
(pt 240 368)
(output)
(text "bullet_x[9..0]" (rect 0 0 71 14)(font "Arial" (font_size 8)))
(text "bullet_x[9..0]" (rect 148 363 219 377)(font "Arial" (font_size 8)))
(line (pt 240 368)(pt 224 368)(line_width 3))
)
(port
(pt 240 384)
(output)
(text "bullet_y[9..0]" (rect 0 0 71 14)(font "Arial" (font_size 8)))
(text "bullet_y[9..0]" (rect 148 379 219 393)(font "Arial" (font_size 8)))
(line (pt 240 384)(pt 224 384)(line_width 3))
)
(port
(pt 240 400)
(output)
(text "show_bullet" (rect 0 0 69 14)(font "Arial" (font_size 8)))
(text "show_bullet" (rect 150 395 219 409)(font "Arial" (font_size 8)))
(line (pt 240 400)(pt 224 400))
)
(drawing
(rectangle (rect 16 16 224 432))
)
)
(symbol
(rect 1312 264 1568 680)
(text "output" (rect 5 0 40 14)(font "Arial" (font_size 8)))
(text "inst2" (rect 8 400 31 412)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "seven_seg_in[15..0]" (rect 0 0 115 14)(font "Arial" (font_size 8)))
(text "seven_seg_in[15..0]" (rect 21 27 136 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "clk_25M" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "clk_25M" (rect 21 43 67 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "pregame" (rect 0 0 49 14)(font "Arial" (font_size 8)))
(text "pregame" (rect 21 59 70 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "midgame" (rect 0 0 49 14)(font "Arial" (font_size 8)))
(text "midgame" (rect 21 75 70 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "endgame" (rect 0 0 51 14)(font "Arial" (font_size 8)))
(text "endgame" (rect 21 91 72 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "game_mode" (rect 0 0 68 14)(font "Arial" (font_size 8)))
(text "game_mode" (rect 21 107 89 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112))
)
(port
(pt 0 128)
(input)
(text "player_x[9..0]" (rect 0 0 77 14)(font "Arial" (font_size 8)))
(text "player_x[9..0]" (rect 21 123 98 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 0 144)
(input)
(text "ai_x[9..0]" (rect 0 0 51 14)(font "Arial" (font_size 8)))
(text "ai_x[9..0]" (rect 21 139 72 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144)(line_width 3))
)
(port
(pt 0 160)
(input)
(text "ai_show" (rect 0 0 49 14)(font "Arial" (font_size 8)))
(text "ai_show" (rect 21 155 70 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160))
)
(port
(pt 0 176)
(input)
(text "time_in[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "time_in[7..0]" (rect 21 171 88 185)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176)(line_width 3))
)
(port
(pt 0 192)
(input)
(text "game_pause" (rect 0 0 73 14)(font "Arial" (font_size 8)))
(text "game_pause" (rect 21 187 94 201)(font "Arial" (font_size 8)))
(line (pt 0 192)(pt 16 192))
)
(port
(pt 0 208)
(input)
(text "current_kills[7..0]" (rect 0 0 96 14)(font "Arial" (font_size 8)))
(text "current_kills[7..0]" (rect 21 203 117 217)(font "Arial" (font_size 8)))
(line (pt 0 208)(pt 16 208)(line_width 3))
)
(port
(pt 0 224)
(input)
(text "total_kills[7..0]" (rect 0 0 79 14)(font "Arial" (font_size 8)))
(text "total_kills[7..0]" (rect 21 219 100 233)(font "Arial" (font_size 8)))
(line (pt 0 224)(pt 16 224)(line_width 3))
)
(port
(pt 0 240)
(input)
(text "current_level[1..0]" (rect 0 0 102 14)(font "Arial" (font_size 8)))
(text "current_level[1..0]" (rect 21 235 123 249)(font "Arial" (font_size 8)))
(line (pt 0 240)(pt 16 240)(line_width 3))
)
(port
(pt 0 256)
(input)
(text "ai_vert[9..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "ai_vert[9..0]" (rect 21 251 88 265)(font "Arial" (font_size 8)))
(line (pt 0 256)(pt 16 256)(line_width 3))
)
(port
(pt 0 272)
(input)
(text "bullet_x[9..0]" (rect 0 0 71 14)(font "Arial" (font_size 8)))
(text "bullet_x[9..0]" (rect 21 267 92 281)(font "Arial" (font_size 8)))
(line (pt 0 272)(pt 16 272)(line_width 3))
)
(port
(pt 0 288)
(input)
(text "bullet_y[9..0]" (rect 0 0 71 14)(font "Arial" (font_size 8)))
(text "bullet_y[9..0]" (rect 21 283 92 297)(font "Arial" (font_size 8)))
(line (pt 0 288)(pt 16 288)(line_width 3))