-
Notifications
You must be signed in to change notification settings - Fork 0
/
scoreTop.bdf
1092 lines (1092 loc) · 27.2 KB
/
scoreTop.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) 2017 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 96 88 272 104)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk" (rect 9 0 23 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 96 112 272 128)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "resetN" (rect 9 0 42 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 96 216 272 232)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "turbo" (rect 9 0 33 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 96 240 272 256)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "pixelX[10..0]" (rect 9 0 69 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 96 264 272 280)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "pixelY[10..0]" (rect 9 0 71 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 104 136 272 152)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "resetScore" (rect 5 0 58 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)))
)
(pin
(input)
(rect 104 160 272 176)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "raiseScore" (rect 5 0 56 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)))
)
(pin
(input)
(rect 104 184 272 200)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "gameOn" (rect 5 0 46 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)))
)
(pin
(output)
(rect 1664 112 1840 128)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "duty50" (rect 90 0 124 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))
)
)
(pin
(output)
(rect 1664 224 1840 240)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "openDoor" (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))
)
)
(pin
(output)
(rect 1664 64 1840 80)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "onesScore[3..0]" (rect 90 0 167 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))
)
)
(pin
(output)
(rect 1664 88 1840 104)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "tensScore[3..0]" (rect 90 0 165 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))
)
)
(pin
(output)
(rect 1664 128 1844 144)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "onesScoreDrawR" (rect 90 0 174 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))
)
)
(pin
(output)
(rect 1664 152 1861 168)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "onesScoreRGB[7..0]" (rect 90 0 191 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))
)
)
(pin
(output)
(rect 1664 176 1842 192)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "tensScoreDrawR" (rect 90 0 172 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))
)
)
(pin
(output)
(rect 1664 200 1859 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "tensScoreRGB[7..0]" (rect 90 0 189 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))
)
)
(symbol
(rect 640 48 864 192)
(text "square_object" (rect 5 0 73 12)(font "Arial" ))
(text "inst3" (rect 8 128 31 140)(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 0 48)
(input)
(text "resetN" (rect 0 0 33 12)(font "Arial" ))
(text "resetN" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "pixelX[10..0]" (rect 0 0 60 12)(font "Arial" ))
(text "pixelX[10..0]" (rect 21 59 81 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "pixelY[10..0]" (rect 0 0 62 12)(font "Arial" ))
(text "pixelY[10..0]" (rect 21 75 83 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "topLeftX[10..0]" (rect 0 0 73 12)(font "Arial" ))
(text "topLeftX[10..0]" (rect 21 91 94 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "topLeftY[10..0]" (rect 0 0 75 12)(font "Arial" ))
(text "topLeftY[10..0]" (rect 21 107 96 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 224 32)
(output)
(text "offsetX[10..0]" (rect 0 0 68 12)(font "Arial" ))
(text "offsetX[10..0]" (rect 146 27 214 39)(font "Arial" ))
(line (pt 224 32)(pt 208 32)(line_width 3))
)
(port
(pt 224 48)
(output)
(text "offsetY[10..0]" (rect 0 0 70 12)(font "Arial" ))
(text "offsetY[10..0]" (rect 144 43 214 55)(font "Arial" ))
(line (pt 224 48)(pt 208 48)(line_width 3))
)
(port
(pt 224 64)
(output)
(text "drawingRequest" (rect 0 0 77 12)(font "Arial" ))
(text "drawingRequest" (rect 138 59 215 71)(font "Arial" ))
(line (pt 224 64)(pt 208 64))
)
(port
(pt 224 80)
(output)
(text "RGBout[7..0]" (rect 0 0 64 12)(font "Arial" ))
(text "RGBout[7..0]" (rect 149 75 213 87)(font "Arial" ))
(line (pt 224 80)(pt 208 80)(line_width 3))
)
(parameter
"OBJECT_WIDTH_X"
"16"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"OBJECT_HEIGHT_Y"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"OBJECT_COLOR"
"01011011"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 208 128))
)
(annotation_block (parameter)(rect 616 -40 871 36))
)
(symbol
(rect 640 312 864 456)
(text "square_object" (rect 5 0 73 12)(font "Arial" ))
(text "inst6" (rect 8 128 31 140)(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 0 48)
(input)
(text "resetN" (rect 0 0 33 12)(font "Arial" ))
(text "resetN" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "pixelX[10..0]" (rect 0 0 60 12)(font "Arial" ))
(text "pixelX[10..0]" (rect 21 59 81 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "pixelY[10..0]" (rect 0 0 62 12)(font "Arial" ))
(text "pixelY[10..0]" (rect 21 75 83 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "topLeftX[10..0]" (rect 0 0 73 12)(font "Arial" ))
(text "topLeftX[10..0]" (rect 21 91 94 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "topLeftY[10..0]" (rect 0 0 75 12)(font "Arial" ))
(text "topLeftY[10..0]" (rect 21 107 96 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 224 32)
(output)
(text "offsetX[10..0]" (rect 0 0 68 12)(font "Arial" ))
(text "offsetX[10..0]" (rect 146 27 214 39)(font "Arial" ))
(line (pt 224 32)(pt 208 32)(line_width 3))
)
(port
(pt 224 48)
(output)
(text "offsetY[10..0]" (rect 0 0 70 12)(font "Arial" ))
(text "offsetY[10..0]" (rect 144 43 214 55)(font "Arial" ))
(line (pt 224 48)(pt 208 48)(line_width 3))
)
(port
(pt 224 64)
(output)
(text "drawingRequest" (rect 0 0 77 12)(font "Arial" ))
(text "drawingRequest" (rect 138 59 215 71)(font "Arial" ))
(line (pt 224 64)(pt 208 64))
)
(port
(pt 224 80)
(output)
(text "RGBout[7..0]" (rect 0 0 64 12)(font "Arial" ))
(text "RGBout[7..0]" (rect 149 75 213 87)(font "Arial" ))
(line (pt 224 80)(pt 208 80)(line_width 3))
)
(parameter
"OBJECT_WIDTH_X"
"16"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"OBJECT_HEIGHT_Y"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(parameter
"OBJECT_COLOR"
"01011011"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 208 128))
)
(annotation_block (parameter)(rect 616 232 871 308))
)
(symbol
(rect 464 432 576 480)
(text "LPM_CONSTANT" (rect 4 0 125 16)(font "Arial" (font_size 10)))
(text "topLeftY_tensSecond" (rect 3 37 128 51)(font "Arial" (font_size 8)))
(port
(pt 112 32)
(output)
(text "result[LPM_WIDTH-1..0]" (rect 75 19 208 33)(font "Arial" (font_size 8)))
(text "result[]" (rect 75 19 113 33)(font "Arial" (font_size 8)))
(line (pt 64 32)(pt 112 32)(line_width 3))
)
(parameter
"LPM_CVALUE"
"0"
"Unsigned value to which outputs will be set"
(type "PARAMETER_UNSIGNED_DEC") )
(parameter
"LPM_WIDTH"
"11"
"Width of output, any integer > 0"
" 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" " 9" "10" "11" "12" "13" "14" "15" "16" "20" "24" "28" "32"
(type "PARAMETER_UNKNOWN") )
(drawing
(text "(cvalue)" (rect 21 26 68 40)(font "Arial" (font_size 8)))
(line (pt 16 24)(pt 64 24))
(line (pt 16 40)(pt 64 40))
(line (pt 64 40)(pt 64 24))
(line (pt 16 40)(pt 16 24))
)
(annotation_block (parameter)(rect 376 480 575 537))
)
(symbol
(rect 464 168 576 216)
(text "LPM_CONSTANT" (rect 4 0 125 16)(font "Arial" (font_size 10)))
(text "topLeftY_Second" (rect 3 37 103 51)(font "Arial" (font_size 8)))
(port
(pt 112 32)
(output)
(text "result[LPM_WIDTH-1..0]" (rect 75 19 208 33)(font "Arial" (font_size 8)))
(text "result[]" (rect 75 19 113 33)(font "Arial" (font_size 8)))
(line (pt 64 32)(pt 112 32)(line_width 3))
)
(parameter
"LPM_CVALUE"
"0"
"Unsigned value to which outputs will be set"
(type "PARAMETER_UNSIGNED_DEC") )
(parameter
"LPM_WIDTH"
"11"
"Width of output, any integer > 0"
" 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" " 9" "10" "11" "12" "13" "14" "15" "16" "20" "24" "28" "32"
(type "PARAMETER_UNKNOWN") )
(drawing
(text "(cvalue)" (rect 21 26 68 40)(font "Arial" (font_size 8)))
(line (pt 16 24)(pt 64 24))
(line (pt 16 40)(pt 64 40))
(line (pt 64 40)(pt 64 24))
(line (pt 16 40)(pt 16 24))
)
(annotation_block (parameter)(rect 376 216 575 273))
)
(symbol
(rect 944 16 1168 160)
(text "NumbersBitMap" (rect 5 0 82 12)(font "Arial" ))
(text "inst4" (rect 8 128 31 140)(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 0 48)
(input)
(text "resetN" (rect 0 0 33 12)(font "Arial" ))
(text "resetN" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "offsetX[10..0]" (rect 0 0 68 12)(font "Arial" ))
(text "offsetX[10..0]" (rect 21 59 89 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "offsetY[10..0]" (rect 0 0 70 12)(font "Arial" ))
(text "offsetY[10..0]" (rect 21 75 91 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "InsideRectangle" (rect 0 0 79 12)(font "Arial" ))
(text "InsideRectangle" (rect 21 91 100 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "digit[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "digit[3..0]" (rect 21 107 67 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 224 32)
(output)
(text "drawingRequest" (rect 0 0 77 12)(font "Arial" ))
(text "drawingRequest" (rect 138 27 215 39)(font "Arial" ))
(line (pt 224 32)(pt 208 32))
)
(port
(pt 224 48)
(output)
(text "RGBout[7..0]" (rect 0 0 64 12)(font "Arial" ))
(text "RGBout[7..0]" (rect 149 43 213 55)(font "Arial" ))
(line (pt 224 48)(pt 208 48)(line_width 3))
)
(parameter
"digit_color"
"11111111"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 208 128))
)
(annotation_block (parameter)(rect 944 -32 1152 8))
)
(symbol
(rect 944 280 1168 424)
(text "NumbersBitMap" (rect 5 0 82 12)(font "Arial" ))
(text "inst5" (rect 8 128 31 140)(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 0 48)
(input)
(text "resetN" (rect 0 0 33 12)(font "Arial" ))
(text "resetN" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "offsetX[10..0]" (rect 0 0 68 12)(font "Arial" ))
(text "offsetX[10..0]" (rect 21 59 89 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "offsetY[10..0]" (rect 0 0 70 12)(font "Arial" ))
(text "offsetY[10..0]" (rect 21 75 91 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "InsideRectangle" (rect 0 0 79 12)(font "Arial" ))
(text "InsideRectangle" (rect 21 91 100 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "digit[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "digit[3..0]" (rect 21 107 67 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 224 32)
(output)
(text "drawingRequest" (rect 0 0 77 12)(font "Arial" ))
(text "drawingRequest" (rect 138 27 215 39)(font "Arial" ))
(line (pt 224 32)(pt 208 32))
)
(port
(pt 224 48)
(output)
(text "RGBout[7..0]" (rect 0 0 64 12)(font "Arial" ))
(text "RGBout[7..0]" (rect 149 43 213 55)(font "Arial" ))
(line (pt 224 48)(pt 208 48)(line_width 3))
)
(parameter
"digit_color"
"11111111"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 208 128))
)
(annotation_block (parameter)(rect 944 232 1152 272))
)
(symbol
(rect 1248 192 1280 224)
(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
(text "inst1" (rect 3 21 25 38)(font "Intel Clear" )(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 464 376 576 424)
(text "LPM_CONSTANT" (rect 4 0 125 16)(font "Arial" (font_size 10)))
(text "topLeftx_tensSecond" (rect 3 37 125 51)(font "Arial" (font_size 8)))
(port
(pt 112 32)
(output)
(text "result[LPM_WIDTH-1..0]" (rect 75 19 208 33)(font "Arial" (font_size 8)))
(text "result[]" (rect 75 19 113 33)(font "Arial" (font_size 8)))
(line (pt 64 32)(pt 112 32)(line_width 3))
)
(parameter
"LPM_CVALUE"
"200"
"Unsigned value to which outputs will be set"
(type "PARAMETER_UNSIGNED_DEC") )
(parameter
"LPM_WIDTH"
"11"
"Width of output, any integer > 0"
" 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" " 9" "10" "11" "12" "13" "14" "15" "16" "20" "24" "28" "32"
(type "PARAMETER_UNKNOWN") )
(drawing
(text "(cvalue)" (rect 21 26 68 40)(font "Arial" (font_size 8)))
(line (pt 16 24)(pt 64 24))
(line (pt 16 40)(pt 64 40))
(line (pt 64 40)(pt 64 24))
(line (pt 16 40)(pt 16 24))
)
(annotation_block (parameter)(rect 376 320 575 377))
)
(symbol
(rect 464 112 576 160)
(text "LPM_CONSTANT" (rect 4 0 125 16)(font "Arial" (font_size 10)))
(text "topLeftx_Second" (rect 3 37 100 51)(font "Arial" (font_size 8)))
(port
(pt 112 32)
(output)
(text "result[LPM_WIDTH-1..0]" (rect 75 19 208 33)(font "Arial" (font_size 8)))
(text "result[]" (rect 75 19 113 33)(font "Arial" (font_size 8)))
(line (pt 64 32)(pt 112 32)(line_width 3))
)
(parameter
"LPM_CVALUE"
"217"
"Unsigned value to which outputs will be set"
(type "PARAMETER_UNSIGNED_DEC") )
(parameter
"LPM_WIDTH"
"11"
"Width of output, any integer > 0"
" 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" " 9" "10" "11" "12" "13" "14" "15" "16" "20" "24" "28" "32"
(type "PARAMETER_UNKNOWN") )
(drawing
(text "(cvalue)" (rect 21 26 68 40)(font "Arial" (font_size 8)))
(line (pt 16 24)(pt 64 24))
(line (pt 16 40)(pt 64 40))
(line (pt 64 40)(pt 64 24))
(line (pt 16 40)(pt 16 24))
)
(annotation_block (parameter)(rect 376 56 575 113))
)
(symbol
(rect 1280 80 1496 224)
(text "game_timer" (rect 5 0 62 12)(font "Arial" ))
(text "inst7" (rect 8 128 31 140)(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 0 48)
(input)
(text "resetN" (rect 0 0 33 12)(font "Arial" ))
(text "resetN" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "loadN" (rect 0 0 28 12)(font "Arial" ))
(text "loadN" (rect 21 59 49 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "ena" (rect 0 0 17 12)(font "Arial" ))
(text "ena" (rect 21 75 38 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "ena_cnt" (rect 0 0 38 12)(font "Arial" ))
(text "ena_cnt" (rect 21 91 59 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "countDownMode" (rect 0 0 80 12)(font "Arial" ))
(text "countDownMode" (rect 21 107 101 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112))
)
(port
(pt 216 32)
(output)
(text "countL[3..0]" (rect 0 0 59 12)(font "Arial" ))
(text "countL[3..0]" (rect 146 27 195 39)(font "Arial" ))
(line (pt 216 32)(pt 200 32)(line_width 3))
)
(port
(pt 216 48)
(output)
(text "countH[3..0]" (rect 0 0 61 12)(font "Arial" ))
(text "countH[3..0]" (rect 144 43 195 55)(font "Arial" ))
(line (pt 216 48)(pt 200 48)(line_width 3))
)
(port
(pt 216 64)
(output)
(text "tc" (rect 0 0 9 12)(font "Arial" ))
(text "tc" (rect 188 59 195 71)(font "Arial" ))
(line (pt 216 64)(pt 200 64))
)
(parameter
"datainL"
"0"
""
(type "PARAMETER_UNSIGNED_BIN") )
(parameter
"datainH"
"0"
""
(type "PARAMETER_UNSIGNED_BIN") )
(drawing
(rectangle (rect 16 16 200 128))
)
(annotation_block (parameter)(rect 1280 8 1459 65))
)
(connector
(text "pixelX[10..0]" (rect 600 96 659 113)(font "Intel Clear" ))
(pt 592 112)
(pt 640 112)
(bus)
)
(connector
(text "pixelY[10..0]" (rect 600 112 659 129)(font "Intel Clear" ))
(pt 592 128)
(pt 640 128)
(bus)
)
(connector
(text "resetN" (rect 600 80 630 97)(font "Intel Clear" ))
(pt 640 96)
(pt 592 96)
)
(connector
(text "clk" (rect 600 64 614 81)(font "Intel Clear" ))
(pt 592 80)
(pt 640 80)
)
(connector
(text "pixelX[10..0]" (rect 600 360 659 377)(font "Intel Clear" ))
(pt 592 376)
(pt 640 376)
(bus)
)
(connector
(text "pixelY[10..0]" (rect 600 376 659 393)(font "Intel Clear" ))
(pt 592 392)
(pt 640 392)
(bus)
)
(connector
(text "resetN" (rect 600 344 630 361)(font "Intel Clear" ))
(pt 640 360)
(pt 592 360)
)
(connector
(text "clk" (rect 600 328 614 345)(font "Intel Clear" ))
(pt 592 344)
(pt 640 344)
)
(connector
(text "clk" (rect 912 32 926 49)(font "Intel Clear" ))
(pt 944 48)
(pt 904 48)
)
(connector
(text "resetN" (rect 912 48 942 65)(font "Intel Clear" ))
(pt 944 64)
(pt 904 64)
)
(connector
(pt 864 80)
(pt 944 80)
(bus)
)
(connector
(pt 864 96)
(pt 944 96)
(bus)
)
(connector
(text "clk" (rect 912 296 926 313)(font "Intel Clear" ))
(pt 944 312)
(pt 904 312)
)
(connector
(text "resetN" (rect 912 312 942 329)(font "Intel Clear" ))
(pt 944 328)
(pt 904 328)
)
(connector
(pt 864 344)
(pt 944 344)
(bus)
)
(connector
(pt 864 360)
(pt 944 360)
(bus)
)
(connector
(pt 864 112)
(pt 944 112)
)
(connector
(pt 864 376)
(pt 944 376)
)
(connector
(pt 640 144)
(pt 576 144)
(bus)
)
(connector
(pt 640 160)
(pt 600 160)
(bus)
)
(connector
(pt 600 160)
(pt 600 200)
(bus)
)
(connector
(pt 576 200)
(pt 600 200)
(bus)
)
(connector
(pt 640 424)
(pt 600 424)
(bus)
)
(connector
(pt 640 408)
(pt 576 408)
(bus)
)
(connector
(pt 600 424)
(pt 600 464)
(bus)
)
(connector
(pt 600 464)
(pt 576 464)
(bus)
)
(connector
(text "clk" (rect 1224 96 1238 113)(font "Intel Clear" ))
(pt 1280 112)
(pt 1216 112)
)
(connector
(text "resetN" (rect 1224 112 1254 129)(font "Intel Clear" ))
(pt 1280 128)
(pt 1216 128)
)
(connector
(pt 1280 192)
(pt 1264 192)
)
(connector
(text "openDoor" (rect 1624 216 1670 233)(font "Intel Clear" ))
(pt 1608 232)
(pt 1664 232)
)
(connector
(text "openDoor" (rect 1512 128 1558 145)(font "Intel Clear" ))
(pt 1496 144)
(pt 1536 144)
)
(connector
(text "resetScore" (rect 1226 128 1275 145)(font "Intel Clear" ))
(pt 1280 144)
(pt 1216 144)
)
(connector
(text "raiseScore" (rect 1226 144 1274 161)(font "Intel Clear" ))
(pt 1280 160)
(pt 1216 160)
)
(connector
(text "pixelX[10..0]" (rect 272 232 331 249)(font "Intel Clear" ))
(pt 272 248)
(pt 312 248)
(bus)