-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext_editor.bdf
997 lines (997 loc) · 22.4 KB
/
text_editor.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
/*
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-2010 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 -120 -520 48 -504)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLOCK_50" (rect 9 0 64 12)(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 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -168 -504 -120 -488))
)
(pin
(input)
(rect -120 -536 48 -520)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "PS2_DAT" (rect 9 0 56 12)(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 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -176 -520 -120 -504))
)
(pin
(input)
(rect -120 -552 48 -536)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "PS2_CLK" (rect 9 0 56 12)(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 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -176 -536 -120 -520))
)
(pin
(input)
(rect -120 -504 48 -488)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "KEY[3]" (rect 9 0 44 12)(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 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -176 -488 -120 -472))
)
(pin
(output)
(rect 880 -488 1056 -472)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VGA_VS" (rect 90 0 132 12)(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 1056 -472 1104 -456))
)
(pin
(output)
(rect 880 -504 1056 -488)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VGA_HS" (rect 90 0 133 12)(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 1056 -488 1104 -472))
)
(pin
(output)
(rect 880 -472 1056 -456)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VGA_BLANK" (rect 90 0 153 12)(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 1056 -456 1104 -440))
)
(pin
(output)
(rect 880 -456 1056 -440)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VGA_CLK" (rect 90 0 139 12)(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 1056 -440 1104 -424))
)
(pin
(output)
(rect 880 -520 1056 -504)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VGA_B[9]" (rect 90 0 138 12)(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 1056 -504 1112 -488))
)
(pin
(output)
(rect 880 -536 1056 -520)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VGA_G[9]" (rect 90 0 139 12)(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 1056 -520 1112 -504))
)
(pin
(output)
(rect 880 -552 1056 -536)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VGA_R[9]" (rect 90 0 139 12)(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 1056 -536 1112 -520))
)
(pin
(output)
(rect 536 -624 712 -608)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LEDR[0]" (rect 90 0 132 12)(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 712 -608 776 -592))
)
(pin
(output)
(rect 824 -376 1000 -360)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LEDR[1]" (rect 90 0 132 12)(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 1000 -360 1064 -344))
)
(symbol
(rect 88 -328 344 -200)
(text "Char_ROM" (rect 5 0 59 12)(font "Arial" ))
(text "inst7" (rect 8 112 31 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "character_address[5..0]" (rect 0 0 116 12)(font "Arial" ))
(text "character_address[5..0]" (rect 21 43 137 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "font_row[2..0]" (rect 0 0 68 12)(font "Arial" ))
(text "font_row[2..0]" (rect 21 59 89 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "font_col[2..0]" (rect 0 0 66 12)(font "Arial" ))
(text "font_col[2..0]" (rect 21 75 87 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 256 32)
(output)
(text "rom_mux_output" (rect 0 0 82 12)(font "Arial" ))
(text "rom_mux_output" (rect 153 27 235 39)(font "Arial" ))
(line (pt 256 32)(pt 240 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 240 112)(line_width 1))
)
)
(symbol
(rect 632 -576 840 -384)
(text "VGA_SYNC" (rect 5 0 65 12)(font "Arial" ))
(text "inst8" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock_50Mhz" (rect 0 0 62 12)(font "Arial" ))
(text "clock_50Mhz" (rect 21 27 83 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "red" (rect 0 0 15 12)(font "Arial" ))
(text "red" (rect 21 43 36 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "green" (rect 0 0 27 12)(font "Arial" ))
(text "green" (rect 21 59 48 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "blue" (rect 0 0 20 12)(font "Arial" ))
(text "blue" (rect 21 75 41 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 208 32)
(output)
(text "red_out" (rect 0 0 36 12)(font "Arial" ))
(text "red_out" (rect 151 27 187 39)(font "Arial" ))
(line (pt 208 32)(pt 192 32)(line_width 1))
)
(port
(pt 208 48)
(output)
(text "green_out" (rect 0 0 48 12)(font "Arial" ))
(text "green_out" (rect 139 43 187 55)(font "Arial" ))
(line (pt 208 48)(pt 192 48)(line_width 1))
)
(port
(pt 208 64)
(output)
(text "blue_out" (rect 0 0 41 12)(font "Arial" ))
(text "blue_out" (rect 146 59 187 71)(font "Arial" ))
(line (pt 208 64)(pt 192 64)(line_width 1))
)
(port
(pt 208 80)
(output)
(text "horiz_sync_out" (rect 0 0 74 12)(font "Arial" ))
(text "horiz_sync_out" (rect 113 75 187 87)(font "Arial" ))
(line (pt 208 80)(pt 192 80)(line_width 1))
)
(port
(pt 208 96)
(output)
(text "vert_sync_out" (rect 0 0 71 12)(font "Arial" ))
(text "vert_sync_out" (rect 116 91 187 103)(font "Arial" ))
(line (pt 208 96)(pt 192 96)(line_width 1))
)
(port
(pt 208 112)
(output)
(text "video_on" (rect 0 0 44 12)(font "Arial" ))
(text "video_on" (rect 143 107 187 119)(font "Arial" ))
(line (pt 208 112)(pt 192 112)(line_width 1))
)
(port
(pt 208 128)
(output)
(text "pixel_clock" (rect 0 0 54 12)(font "Arial" ))
(text "pixel_clock" (rect 133 123 187 135)(font "Arial" ))
(line (pt 208 128)(pt 192 128)(line_width 1))
)
(port
(pt 208 144)
(output)
(text "pixel_row[9..0]" (rect 0 0 70 12)(font "Arial" ))
(text "pixel_row[9..0]" (rect 117 139 187 151)(font "Arial" ))
(line (pt 208 144)(pt 192 144)(line_width 3))
)
(port
(pt 208 160)
(output)
(text "pixel_column[9..0]" (rect 0 0 89 12)(font "Arial" ))
(text "pixel_column[9..0]" (rect 98 155 187 167)(font "Arial" ))
(line (pt 208 160)(pt 192 160)(line_width 3))
)
(drawing
(rectangle (rect 16 16 192 176)(line_width 1))
)
)
(symbol
(rect 480 -384 528 -352)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst9" (rect 3 21 26 33)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 13 19)(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 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 49 19)(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 832 -336 1056 -144)
(text "display_memory" (rect 5 0 87 12)(font "Arial" ))
(text "inst1" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "memwrite" (rect 0 0 47 12)(font "Arial" ))
(text "memwrite" (rect 21 27 68 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 43 46 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "write_data[5..0]" (rect 0 0 75 12)(font "Arial" ))
(text "write_data[5..0]" (rect 21 59 96 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "pixel_col_write[5..0]" (rect 0 0 96 12)(font "Arial" ))
(text "pixel_col_write[5..0]" (rect 21 75 117 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "pixel_row_write[5..0]" (rect 0 0 99 12)(font "Arial" ))
(text "pixel_row_write[5..0]" (rect 21 91 120 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "pixel_col_read[5..0]" (rect 0 0 95 12)(font "Arial" ))
(text "pixel_col_read[5..0]" (rect 21 107 116 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "pixel_row_read[5..0]" (rect 0 0 97 12)(font "Arial" ))
(text "pixel_row_read[5..0]" (rect 21 123 118 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 0 144)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 139 45 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 224 32)
(output)
(text "read_data[5..0]" (rect 0 0 74 12)(font "Arial" ))
(text "read_data[5..0]" (rect 129 27 203 39)(font "Arial" ))
(line (pt 224 32)(pt 208 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 208 176)(line_width 1))
)
)
(symbol
(rect 496 -288 696 -160)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst2" (rect 8 112 31 124)(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)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "backspace" (rect 0 0 53 12)(font "Arial" ))
(text "backspace" (rect 21 59 74 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "enter" (rect 0 0 24 12)(font "Arial" ))
(text "enter" (rect 21 75 45 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 200 32)
(output)
(text "col_count_out[5..0]" (rect 0 0 94 12)(font "Arial" ))
(text "col_count_out[5..0]" (rect 85 27 179 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32)(line_width 3))
)
(port
(pt 200 48)
(output)
(text "row_count_out[5..0]" (rect 0 0 96 12)(font "Arial" ))
(text "row_count_out[5..0]" (rect 83 43 179 55)(font "Arial" ))
(line (pt 200 48)(pt 184 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 184 112)(line_width 1))
)
)
(symbol
(rect 96 -576 296 -416)
(text "keyboard_to_char_addr" (rect 5 0 141 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 144 25 156)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "PS2_CLK" (rect 0 0 53 14)(font "Arial" (font_size 8)))
(text "PS2_CLK" (rect 21 27 74 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "PS2_DAT" (rect 0 0 54 14)(font "Arial" (font_size 8)))
(text "PS2_DAT" (rect 21 43 75 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "CLOCK_50" (rect 0 0 62 14)(font "Arial" (font_size 8)))
(text "CLOCK_50" (rect 21 59 83 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "KEY[3]" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "KEY[3]" (rect 21 75 59 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 200 32)
(output)
(text "MC_LE" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "MC_LE" (rect 141 27 179 41)(font "Arial" (font_size 8)))
(line (pt 200 32)(pt 184 32)(line_width 1))
)
(port
(pt 200 48)
(output)
(text "error" (rect 0 0 28 14)(font "Arial" (font_size 8)))
(text "error" (rect 151 43 179 57)(font "Arial" (font_size 8)))
(line (pt 200 48)(pt 184 48)(line_width 1))
)
(port
(pt 200 64)
(output)
(text "char_addr[5..0]" (rect 0 0 87 14)(font "Arial" (font_size 8)))
(text "char_addr[5..0]" (rect 92 59 179 73)(font "Arial" (font_size 8)))
(line (pt 200 64)(pt 184 64)(line_width 3))
)
(port
(pt 200 80)
(output)
(text "BC_LE" (rect 0 0 37 14)(font "Arial" (font_size 8)))
(text "BC_LE" (rect 142 75 179 89)(font "Arial" (font_size 8)))
(line (pt 200 80)(pt 184 80)(line_width 1))
)
(port
(pt 200 96)
(output)
(text "backspace" (rect 0 0 62 14)(font "Arial" (font_size 8)))
(text "backspace" (rect 117 91 179 105)(font "Arial" (font_size 8)))
(line (pt 200 96)(pt 184 96)(line_width 1))
)
(port
(pt 200 112)
(output)
(text "enter" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "enter" (rect 150 107 179 121)(font "Arial" (font_size 8)))
(line (pt 200 112)(pt 184 112)(line_width 1))
)
(drawing
(rectangle (rect 16 16 184 144)(line_width 1))
)
)
(connector
(pt 48 -528)
(pt 96 -528)
)
(connector
(pt 632 -528)
(pt 600 -528)
)
(connector
(pt 632 -512)
(pt 600 -512)
)
(connector
(pt 632 -496)
(pt 600 -496)
)
(connector
(pt 632 -544)
(pt 584 -544)
)
(connector
(text "pixel_row[9..0]" (rect 904 -440 974 -428)(font "Arial" ))
(pt 888 -432)
(pt 840 -432)
(bus)
)
(connector
(text "pixel_column[9..0]" (rect 904 -424 993 -412)(font "Arial" ))
(pt 840 -416)
(pt 888 -416)
(bus)
)
(connector
(pt 840 -544)
(pt 880 -544)
)
(connector
(pt 840 -528)
(pt 880 -528)
)
(connector
(pt 880 -512)
(pt 840 -512)
)
(connector
(pt 880 -496)
(pt 840 -496)
)
(connector
(pt 840 -464)
(pt 880 -464)
)
(connector
(pt 352 -296)
(pt 352 -328)
)
(connector
(pt 344 -296)
(pt 352 -296)
)
(connector
(pt 64 -360)
(pt 64 -496)
)
(connector
(pt 528 -376)
(pt 728 -376)
(bus)
)
(connector
(pt 728 -272)
(pt 832 -272)
(bus)
)
(connector
(pt 96 -544)
(pt 48 -544)
)
(connector
(pt 352 -328)
(pt 600 -328)
)
(connector
(pt 600 -528)
(pt 600 -512)
)
(connector
(pt 600 -512)
(pt 600 -496)
)
(connector
(pt 600 -496)
(pt 600 -328)
)
(connector
(pt 48 -496)
(pt 64 -496)
)
(connector
(pt 64 -496)
(pt 96 -496)
)
(connector
(pt 48 -512)
(pt 80 -512)
)
(connector
(pt 80 -512)
(pt 96 -512)
)
(connector
(pt 728 -376)
(pt 728 -272)
(bus)
)
(connector
(pt 80 -512)
(pt 80 -344)
)
(connector
(text "pixel_row[3..1]" (rect -32 -272 38 -260)(font "Arial" ))
(pt 48 -264)
(pt 88 -264)
(bus)
)
(connector
(pt -80 -280)
(pt 88 -280)
(bus)
)
(connector
(text "pixel_column[3..1]" (rect -48 -256 41 -244)(font "Arial" ))
(pt 48 -248)
(pt 88 -248)
(bus)
)
(connector
(pt -136 -296)
(pt 88 -296)
)
(connector
(pt 1080 -304)
(pt 1056 -304)
(bus)
)
(connector
(pt 784 -112)
(pt 784 -224)
(bus)
)
(connector
(pt 784 -224)
(pt 832 -224)
(bus)
)
(connector
(pt 816 -208)
(pt 832 -208)
(bus)
)
(connector
(text "pixel_column[9..4]" (rect 536 -120 625 -108)(font "Arial" ))
(pt 784 -112)
(pt 624 -112)
(bus)
)
(connector
(pt 80 -344)
(pt 584 -344)
)
(connector
(pt -136 -632)
(pt -136 -296)
)
(connector
(pt -136 -632)
(pt 864 -632)
)
(connector
(pt 864 -632)
(pt 864 -448)
)
(connector
(pt 584 -544)
(pt 584 -344)
)
(connector
(pt 840 -448)
(pt 864 -448)
)
(connector
(pt 864 -448)
(pt 880 -448)
)
(connector
(pt -80 -280)
(pt -80 -56)
(bus)
)
(connector
(pt -80 -56)
(pt 1080 -56)
(bus)
)
(connector
(pt 528 -368)
(pt 768 -368)
)
(connector
(pt 768 -368)
(pt 768 -344)
)
(connector
(pt 768 -344)
(pt 824 -344)
)
(connector
(pt 384 -616)
(pt 536 -616)
)
(connector
(pt 840 -480)
(pt 880 -480)
)
(connector
(pt 1080 -304)
(pt 1080 -56)
(bus)
)
(connector
(pt 816 -208)
(pt 816 -96)
(bus)
)
(connector
(pt 472 -544)
(pt 296 -544)
)
(connector
(text "pixel_row[9..4]" (rect 544 -104 614 -92)(font "Arial" ))
(pt 816 -96)
(pt 616 -96)
(bus)
)
(connector
(pt 832 -192)
(pt 824 -192)
)
(connector
(pt 800 -288)
(pt 832 -288)
)
(connector
(pt 824 -304)
(pt 832 -304)
)
(connector
(pt 824 -368)
(pt 824 -344)
)
(connector
(pt 824 -344)
(pt 824 -304)
)
(connector
(pt 696 -256)
(pt 832 -256)
(bus)
)
(connector
(pt 696 -240)
(pt 832 -240)
(bus)
)
(connector
(pt 824 -192)
(pt 824 -144)
)
(connector
(pt 824 -144)
(pt 464 -144)
)
(connector
(pt 464 -240)
(pt 464 -144)
)
(connector
(pt 64 -360)
(pt 440 -360)
)
(connector
(pt 440 -360)
(pt 440 -240)
)
(connector
(pt 440 -240)
(pt 464 -240)
)
(connector
(pt 464 -240)
(pt 496 -240)
)
(connector
(pt 480 -368)
(pt 440 -368)
)
(connector
(pt 440 -528)
(pt 440 -368)
)
(connector
(pt 424 -480)
(pt 424 -224)
)
(connector
(pt 424 -224)
(pt 496 -224)
)
(connector
(pt 296 -464)
(pt 408 -464)
)
(connector
(pt 408 -464)
(pt 408 -208)
)
(connector
(pt 408 -208)
(pt 496 -208)
)
(connector
(pt 528 -376)
(pt 528 -512)
(bus)
)
(connector
(pt 296 -512)
(pt 528 -512)
(bus)
)
(connector
(pt 296 -496)
(pt 456 -496)
)
(connector
(pt 296 -480)
(pt 424 -480)
)
(connector
(pt 384 -616)
(pt 384 -528)
)
(connector
(pt 296 -528)
(pt 384 -528)
)
(connector
(pt 384 -528)
(pt 440 -528)
)
(connector
(pt 800 -304)
(pt 800 -288)
)
(connector
(pt 472 -304)
(pt 800 -304)
)
(connector
(pt 472 -544)
(pt 472 -304)
)
(connector
(pt 456 -256)
(pt 456 -496)
)
(connector
(pt 456 -256)
(pt 496 -256)
)
(junction (pt 600 -512))
(junction (pt 600 -496))
(junction (pt 64 -496))
(junction (pt 80 -512))
(junction (pt 864 -448))
(junction (pt 464 -240))
(junction (pt 824 -344))
(junction (pt 384 -528))