-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBlock2.bdf
1239 lines (1239 loc) · 25.1 KB
/
Block2.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"))
(properties
(page_setup "orientation\n1\npaper_size\n0\npaper_source\n12\nmargin\n1.000:1.000:1.000:1.000\n")
)
(pin
(input)
(rect 216 584 384 600)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "reset" (rect 5 0 30 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 160 600 216 616))
)
(pin
(input)
(rect 208 1024 376 1040)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "save" (rect 5 0 29 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 144 1040 208 1056))
)
(pin
(input)
(rect 216 568 384 584)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "clock" (rect 5 0 31 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 160 584 216 600))
)
(pin
(input)
(rect 208 792 376 808)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "column[3..0]" (rect 5 0 67 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 152 808 208 864))
)
(pin
(input)
(rect 208 656 384 672)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "password[15..0]" (rect 5 0 83 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)))
(annotation_block (location)(rect 80 632 144 856))
)
(pin
(output)
(rect 2032 752 2208 768)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LCD_RS" (rect 90 0 133 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 2208 768 2264 784))
)
(pin
(output)
(rect 2032 768 2208 784)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LCD_E" (rect 90 0 125 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 2208 784 2264 800))
)
(pin
(output)
(rect 2032 784 2208 800)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LCD_ON" (rect 90 0 134 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 2208 800 2264 816))
)
(pin
(output)
(rect 2032 800 2208 816)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "BACK_LED" (rect 90 0 146 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 2208 816 2264 832))
)
(pin
(output)
(rect 2032 816 2208 832)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LCD_RW" (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 2208 832 2264 848))
)
(pin
(output)
(rect 2032 856 2210 872)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "DATA_BUS[7..0]" (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))
)
(annotation_block (location)(rect 2296 760 2352 872))
)
(pin
(output)
(rect 2032 464 2208 480)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "row[3..0]" (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 2208 464 2272 520))
)
(pin
(output)
(rect 2032 608 2208 624)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "saved" (rect 90 0 120 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 2208 608 2264 624))
)
(pin
(output)
(rect 2032 904 2208 920)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "code[15..0]" (rect 90 0 145 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 2312 920 2376 1144))
)
(pin
(output)
(rect 2032 952 2208 968)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "mux_sel[3..0]" (rect 90 0 157 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 2240 952 2296 1008))
)
(pin
(output)
(rect 2032 968 2224 984)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "debug_led_out[7..0]" (rect 90 0 186 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 2152 1040 2216 1152))
)
(pin
(output)
(rect 2032 560 2208 576)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "equal" (rect 90 0 115 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 2208 560 2272 576))
)
(symbol
(rect 1680 728 1896 872)
(text "LCD_unit" (rect 5 0 51 12)(font "Arial" ))
(text "inst" (rect 8 128 25 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 "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "cmd[2..0]" (rect 0 0 47 12)(font "Arial" ))
(text "cmd[2..0]" (rect 21 59 68 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 216 32)
(output)
(text "LCD_RS" (rect 0 0 43 12)(font "Arial" ))
(text "LCD_RS" (rect 159 27 202 39)(font "Arial" ))
(line (pt 216 32)(pt 200 32))
)
(port
(pt 216 48)
(output)
(text "LCD_E" (rect 0 0 35 12)(font "Arial" ))
(text "LCD_E" (rect 166 43 201 55)(font "Arial" ))
(line (pt 216 48)(pt 200 48))
)
(port
(pt 216 64)
(output)
(text "LCD_ON" (rect 0 0 44 12)(font "Arial" ))
(text "LCD_ON" (rect 158 59 202 71)(font "Arial" ))
(line (pt 216 64)(pt 200 64))
)
(port
(pt 216 80)
(output)
(text "BACK_LED" (rect 0 0 56 12)(font "Arial" ))
(text "BACK_LED" (rect 148 75 204 87)(font "Arial" ))
(line (pt 216 80)(pt 200 80))
)
(port
(pt 216 96)
(output)
(text "LCD_RW" (rect 0 0 47 12)(font "Arial" ))
(text "LCD_RW" (rect 156 91 203 103)(font "Arial" ))
(line (pt 216 96)(pt 200 96))
)
(port
(pt 216 112)
(bidir)
(text "DATA_BUS[7..0]" (rect 0 0 82 12)(font "Arial" ))
(text "DATA_BUS[7..0]" (rect 121 107 203 119)(font "Arial" ))
(line (pt 216 112)(pt 200 112)(line_width 3))
)
(drawing
(rectangle (rect 16 16 200 128))
)
)
(symbol
(rect 1336 728 1536 904)
(text "compare_unit" (rect 5 0 71 12)(font "Arial" ))
(text "inst2" (rect 8 160 31 172)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "key[15..0]" (rect 0 0 50 12)(font "Arial" ))
(text "key[15..0]" (rect 21 27 71 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "code[15..0]" (rect 0 0 55 12)(font "Arial" ))
(text "code[15..0]" (rect 21 43 76 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 59 35 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 75 45 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "refresh" (rect 0 0 35 12)(font "Arial" ))
(text "refresh" (rect 21 91 56 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "save_enable" (rect 0 0 62 12)(font "Arial" ))
(text "save_enable" (rect 21 107 83 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112))
)
(port
(pt 0 128)
(input)
(text "compare" (rect 0 0 42 12)(font "Arial" ))
(text "compare" (rect 21 123 63 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128))
)
(port
(pt 200 32)
(output)
(text "code_saved" (rect 0 0 60 12)(font "Arial" ))
(text "code_saved" (rect 129 27 189 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32))
)
(port
(pt 200 48)
(output)
(text "same" (rect 0 0 27 12)(font "Arial" ))
(text "same" (rect 157 43 184 55)(font "Arial" ))
(line (pt 200 48)(pt 184 48))
)
(drawing
(rectangle (rect 16 16 184 160))
)
)
(symbol
(rect 1336 528 1536 672)
(text "ctrl_unit" (rect 5 0 43 12)(font "Arial" ))
(text "inst3" (rect 8 128 31 140)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "press" (rect 0 0 27 12)(font "Arial" ))
(text "press" (rect 21 27 48 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "cmp_same" (rect 0 0 54 12)(font "Arial" ))
(text "cmp_same" (rect 21 43 75 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "eval_press" (rect 0 0 54 12)(font "Arial" ))
(text "eval_press" (rect 21 59 75 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 75 35 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 91 45 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 200 32)
(output)
(text "refresh" (rect 0 0 35 12)(font "Arial" ))
(text "refresh" (rect 150 27 185 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32))
)
(port
(pt 200 48)
(output)
(text "lcd_cmd[2..0]" (rect 0 0 67 12)(font "Arial" ))
(text "lcd_cmd[2..0]" (rect 123 43 190 55)(font "Arial" ))
(line (pt 200 48)(pt 184 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 184 128))
)
)
(symbol
(rect 696 736 896 848)
(text "debounce_unit" (rect 5 0 75 12)(font "Arial" ))
(text "inst4" (rect 8 96 31 108)(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 "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "colums[3..0]" (rect 0 0 61 12)(font "Arial" ))
(text "colums[3..0]" (rect 21 59 82 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 200 32)
(output)
(text "press" (rect 0 0 27 12)(font "Arial" ))
(text "press" (rect 157 27 184 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32))
)
(port
(pt 200 48)
(output)
(text "rows[3..0]" (rect 0 0 48 12)(font "Arial" ))
(text "rows[3..0]" (rect 139 43 187 55)(font "Arial" ))
(line (pt 200 48)(pt 184 48)(line_width 3))
)
(port
(pt 200 64)
(output)
(text "symbol[4..0]" (rect 0 0 62 12)(font "Arial" ))
(text "symbol[4..0]" (rect 127 59 189 71)(font "Arial" ))
(line (pt 200 64)(pt 184 64)(line_width 3))
)
(drawing
(rectangle (rect 16 16 184 96))
)
)
(symbol
(rect 432 544 568 624)
(text "freq_divider" (rect 5 0 64 12)(font "Arial" ))
(text "inst5" (rect 8 64 31 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 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))
)
(port
(pt 136 32)
(output)
(text "freq" (rect 0 0 20 12)(font "Arial" ))
(text "freq" (rect 99 27 119 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32))
)
(drawing
(rectangle (rect 16 16 120 64))
)
)
(symbol
(rect 1328 928 1536 1040)
(text "muxed_led_unit" (rect 5 0 81 12)(font "Arial" ))
(text "inst6" (rect 8 96 31 108)(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 "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "shift_in[15..0]" (rect 0 0 68 12)(font "Arial" ))
(text "shift_in[15..0]" (rect 21 59 89 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 208 32)
(output)
(text "disp_sel[3..0]" (rect 0 0 66 12)(font "Arial" ))
(text "disp_sel[3..0]" (rect 132 27 198 39)(font "Arial" ))
(line (pt 208 32)(pt 192 32)(line_width 3))
)
(port
(pt 208 48)
(output)
(text "led_out[7..0]" (rect 0 0 61 12)(font "Arial" ))
(text "led_out[7..0]" (rect 136 43 197 55)(font "Arial" ))
(line (pt 208 48)(pt 192 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 192 96))
)
)
(symbol
(rect 960 720 1168 832)
(text "shift_unit" (rect 5 0 51 12)(font "Arial" ))
(text "inst7" (rect 8 96 31 108)(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 "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "enable" (rect 0 0 31 12)(font "Arial" ))
(text "enable" (rect 21 59 52 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "data_in[4..0]" (rect 0 0 61 12)(font "Arial" ))
(text "data_in[4..0]" (rect 21 75 82 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 208 32)
(output)
(text "digit_saved" (rect 0 0 56 12)(font "Arial" ))
(text "digit_saved" (rect 140 27 196 39)(font "Arial" ))
(line (pt 208 32)(pt 192 32))
)
(port
(pt 208 48)
(output)
(text "code_saved" (rect 0 0 60 12)(font "Arial" ))
(text "code_saved" (rect 137 43 197 55)(font "Arial" ))
(line (pt 208 48)(pt 192 48))
)
(port
(pt 208 64)
(output)
(text "code_out[15..0]" (rect 0 0 76 12)(font "Arial" ))
(text "code_out[15..0]" (rect 123 59 199 71)(font "Arial" ))
(line (pt 208 64)(pt 192 64)(line_width 3))
)
(drawing
(rectangle (rect 16 16 192 96))
)
)
(symbol
(rect 776 528 840 576)
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst8" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24))
)
(drawing
(line (pt 14 12)(pt 30 12))
(line (pt 14 37)(pt 31 37))
(line (pt 14 12)(pt 14 37))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
)
)
(connector
(pt 1568 696)
(pt 1296 696)
)
(connector
(pt 1568 696)
(pt 1568 760)
)
(connector
(pt 1264 1080)
(pt 1264 808)
)
(connector
(pt 1296 792)
(pt 1336 792)
)
(connector
(pt 1264 808)
(pt 1336 808)
)
(connector
(pt 1296 960)
(pt 1328 960)
)
(connector
(pt 1296 608)
(pt 1336 608)
)
(connector
(pt 1552 680)
(pt 1336 680)
)
(connector
(text "d_saved" (rect 1242 544 1284 556)(font "Arial" ))
(pt 1248 560)
(pt 1336 560)
)
(connector
(pt 1280 592)
(pt 1336 592)
)
(connector
(pt 1640 792)
(pt 1680 792)
(bus)
)
(connector
(pt 1336 824)
(pt 1328 824)
)
(connector
(pt 1328 704)
(pt 1328 824)
)
(connector
(pt 1600 704)
(pt 1600 560)
)
(connector
(pt 1536 776)
(pt 1536 824)
)
(connector
(pt 1664 528)
(pt 1296 528)
)
(connector
(pt 1296 528)
(pt 1296 576)
)
(connector
(text "comp_same" (rect 1272 576 1332 588)(font "Arial" ))
(pt 1296 576)
(pt 1336 576)
)
(connector
(pt 1560 720)
(pt 1560 760)
)
(connector
(pt 1560 720)
(pt 1712 720)
)
(connector
(text "cdsaved" (rect 1720 680 1762 692)(font "Arial" ))
(pt 1536 760)
(pt 1560 760)
)
(connector
(pt 1712 720)
(pt 1712 616)
)
(connector
(pt 1312 760)
(pt 1336 760)
(bus)
)
(connector
(pt 1312 760)
(pt 1312 664)
(bus)
)
(connector
(pt 568 576)
(pt 680 576)
)
(connector
(pt 680 768)
(pt 696 768)
)
(connector
(text "rows_out[3..0]" (rect 911 648 923 717)(font "Arial" )(vertical))
(pt 928 472)
(pt 928 784)
(bus)
)
(connector
(pt 1248 560)
(pt 1248 752)
)
(connector
(text "comp" (rect 1178 752 1205 764)(font "Arial" ))
(pt 1280 768)
(pt 1168 768)
)
(connector
(pt 1248 752)
(pt 1168 752)
)
(connector
(pt 960 784)
(pt 936 784)
)
(connector
(pt 936 784)
(pt 936 768)
)
(connector
(text "ldc_command[2..0]" (rect 1642 568 1736 580)(font "Arial" ))
(pt 1536 576)
(pt 1640 576)
(bus)
)
(connector
(text "shift_out[15..0]" (rect 1168 792 1243 804)(font "Arial" ))
(pt 1256 784)
(pt 1168 784)
(bus)
)
(connector
(pt 776 504)
(pt 776 544)
)
(connector
(pt 408 712)
(pt 776 712)
)
(connector
(pt 776 712)
(pt 776 560)
)
(connector
(pt 840 552)
(pt 904 552)
)
(connector
(pt 904 736)
(pt 944 736)
)
(connector
(pt 944 736)
(pt 944 768)
)
(connector
(pt 960 768)
(pt 944 768)
)
(connector
(pt 1896 840)
(pt 2008 840)
(bus)
)
(connector
(pt 2008 840)
(pt 2008 864)
(bus)
)
(connector
(text "data_bus[7..0]" (rect 1906 848 1976 860)(font "Arial" ))
(pt 2008 864)
(pt 2032 864)
(bus)
)
(connector
(pt 1552 504)
(pt 1552 560)
)
(connector
(pt 384 576)
(pt 432 576)
)
(connector
(pt 1712 616)
(pt 2032 616)
)
(connector
(pt 1256 912)
(pt 2032 912)
(bus)
)
(connector
(pt 1536 824)
(pt 1664 824)
)
(connector
(pt 408 784)
(pt 696 784)
)
(connector
(pt 408 976)
(pt 1328 976)
)
(connector
(pt 1256 992)
(pt 1328 992)
(bus)
)
(connector
(text "en" (rect 906 752 917 764)(font "Arial" ))
(pt 896 768)
(pt 936 768)
)
(connector
(pt 896 784)
(pt 928 784)
(bus)
)
(connector
(text "button[4..0]" (rect 912 800 968 812)(font "Arial" ))
(pt 896 800)
(pt 960 800)
(bus)
)
(connector
(pt 1320 840)
(pt 1320 1032)
)
(connector
(text "lcd_rs" (rect 1906 744 1935 756)(font "Arial" ))
(pt 1896 760)
(pt 2032 760)
)
(connector
(text "lcd_e" (rect 1906 760 1931 772)(font "Arial" ))
(pt 1896 776)
(pt 2032 776)
)
(connector
(text "lcd_on" (rect 1906 776 1937 788)(font "Arial" ))
(pt 1896 792)
(pt 2032 792)
)
(connector
(text "back_led" (rect 1906 792 1949 804)(font "Arial" ))
(pt 1896 808)
(pt 2032 808)
)
(connector
(text "lcd_rw" (rect 1906 808 1936 820)(font "Arial" ))
(pt 1896 824)
(pt 2032 824)
)
(connector
(pt 1568 760)
(pt 1680 760)
)
(connector