-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainClock.bdf
1411 lines (1411 loc) · 29.3 KB
/
mainClock.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-2012 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 152 552 320 568)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "load" (rect 5 0 25 11)(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 144 232 312 248)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "Hin[3..0]" (rect 5 0 47 11)(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 "GND" (rect 128 7 149 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 168 456 336 472)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "Min[5..0]" (rect 5 0 48 11)(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 "GND" (rect 128 7 149 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -160 32 8 48)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "clk" (rect 5 0 19 11)(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 128 152 296 168)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "amp" (rect 5 0 26 11)(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 832 64 1008 80)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "AMPM" (rect 90 0 123 11)(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 800 184 976 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "H[3..0]" (rect 90 0 124 11)(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 800 408 976 424)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "M[5..0]" (rect 90 0 125 11)(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 768 8 800 24)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst" (rect 3 5 20 16)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8))
)
(drawing
(line (pt 8 8)(pt 24 8))
)
)
(symbol
(rect 496 616 528 648)
(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
(text "inst2" (rect 3 21 26 32)(font "Arial" )(invisible))
(port
(pt 16 0)
(output)
(text "1" (rect 18 0 25 11)(font "Courier New" (bold))(invisible))
(text "1" (rect 18 0 25 11)(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 488 160 520 176)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst3" (rect 3 5 26 16)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8))
)
(drawing
(line (pt 8 8)(pt 24 8))
)
)
(symbol
(rect 544 160 664 352)
(text "counterHr" (rect 5 0 62 13)(font "Arial" (font_size 8)))
(text "inst5" (rect 8 177 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "clk" (rect 21 27 37 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "direction" (rect 0 0 48 13)(font "Arial" (font_size 8)))
(text "direction" (rect 21 43 69 56)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "enable" (rect 0 0 37 13)(font "Arial" (font_size 8)))
(text "enable" (rect 21 59 58 72)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "D0" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D0" (rect 21 75 37 88)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "D1" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D1" (rect 21 91 37 104)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "D2" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D2" (rect 21 107 37 120)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112))
)
(port
(pt 0 128)
(input)
(text "D3" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D3" (rect 21 123 37 136)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128))
)
(port
(pt 0 144)
(input)
(text "load" (rect 0 0 23 13)(font "Arial" (font_size 8)))
(text "load" (rect 21 139 44 152)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144))
)
(port
(pt 120 32)
(output)
(text "Q0" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q0" (rect 82 27 99 40)(font "Arial" (font_size 8)))
(line (pt 120 32)(pt 104 32))
)
(port
(pt 120 48)
(output)
(text "Q1" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q1" (rect 82 43 99 56)(font "Arial" (font_size 8)))
(line (pt 120 48)(pt 104 48))
)
(port
(pt 120 64)
(output)
(text "Q2" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q2" (rect 82 59 99 72)(font "Arial" (font_size 8)))
(line (pt 120 64)(pt 104 64))
)
(port
(pt 120 80)
(output)
(text "Q3" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q3" (rect 82 75 99 88)(font "Arial" (font_size 8)))
(line (pt 120 80)(pt 104 80))
)
(port
(pt 120 96)
(output)
(text "Z" (rect 0 0 8 13)(font "Arial" (font_size 8)))
(text "Z" (rect 91 91 99 104)(font "Arial" (font_size 8)))
(line (pt 120 96)(pt 104 96))
)
(drawing
(rectangle (rect 16 16 104 176))
)
)
(symbol
(rect 544 384 664 608)
(text "counterMn" (rect 5 0 66 13)(font "Arial" (font_size 8)))
(text "inst6" (rect 8 209 31 220)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "clk" (rect 21 27 37 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "direction" (rect 0 0 48 13)(font "Arial" (font_size 8)))
(text "direction" (rect 21 43 69 56)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "enable" (rect 0 0 37 13)(font "Arial" (font_size 8)))
(text "enable" (rect 21 59 58 72)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "D0" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D0" (rect 21 75 37 88)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "D1" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D1" (rect 21 91 37 104)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 0 112)
(input)
(text "D2" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D2" (rect 21 107 37 120)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112))
)
(port
(pt 0 128)
(input)
(text "D3" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D3" (rect 21 123 37 136)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128))
)
(port
(pt 0 144)
(input)
(text "D4" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D4" (rect 21 139 37 152)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144))
)
(port
(pt 0 160)
(input)
(text "D5" (rect 0 0 16 13)(font "Arial" (font_size 8)))
(text "D5" (rect 21 155 37 168)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160))
)
(port
(pt 0 176)
(input)
(text "load" (rect 0 0 23 13)(font "Arial" (font_size 8)))
(text "load" (rect 21 171 44 184)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176))
)
(port
(pt 120 32)
(output)
(text "Q0" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q0" (rect 82 27 99 40)(font "Arial" (font_size 8)))
(line (pt 120 32)(pt 104 32))
)
(port
(pt 120 48)
(output)
(text "Q1" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q1" (rect 82 43 99 56)(font "Arial" (font_size 8)))
(line (pt 120 48)(pt 104 48))
)
(port
(pt 120 64)
(output)
(text "Q2" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q2" (rect 82 59 99 72)(font "Arial" (font_size 8)))
(line (pt 120 64)(pt 104 64))
)
(port
(pt 120 80)
(output)
(text "Q3" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q3" (rect 82 75 99 88)(font "Arial" (font_size 8)))
(line (pt 120 80)(pt 104 80))
)
(port
(pt 120 96)
(output)
(text "Q4" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q4" (rect 82 91 99 104)(font "Arial" (font_size 8)))
(line (pt 120 96)(pt 104 96))
)
(port
(pt 120 112)
(output)
(text "Q5" (rect 0 0 17 13)(font "Arial" (font_size 8)))
(text "Q5" (rect 82 107 99 120)(font "Arial" (font_size 8)))
(line (pt 120 112)(pt 104 112))
)
(port
(pt 120 128)
(output)
(text "Z" (rect 0 0 8 13)(font "Arial" (font_size 8)))
(text "Z" (rect 91 123 99 136)(font "Arial" (font_size 8)))
(line (pt 120 128)(pt 104 128))
)
(drawing
(rectangle (rect 16 16 104 208))
)
)
(symbol
(rect 32 8 160 104)
(text "clkDivider" (rect 5 0 61 13)(font "Arial" (font_size 8)))
(text "inst17" (rect 8 81 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clkIn" (rect 0 0 27 13)(font "Arial" (font_size 8)))
(text "clkIn" (rect 21 27 48 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "clr" (rect 0 0 14 13)(font "Arial" (font_size 8)))
(text "clr" (rect 21 43 35 56)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 128 32)
(output)
(text "clkDiv22" (rect 0 0 49 13)(font "Arial" (font_size 8)))
(text "clkDiv22" (rect 58 27 107 40)(font "Arial" (font_size 8)))
(line (pt 128 32)(pt 112 32))
)
(port
(pt 128 48)
(output)
(text "clkDiv23" (rect 0 0 49 13)(font "Arial" (font_size 8)))
(text "clkDiv23" (rect 58 43 107 56)(font "Arial" (font_size 8)))
(line (pt 128 48)(pt 112 48))
)
(port
(pt 128 64)
(output)
(text "clkDiv24" (rect 0 0 49 13)(font "Arial" (font_size 8)))
(text "clkDiv24" (rect 58 59 107 72)(font "Arial" (font_size 8)))
(line (pt 128 64)(pt 112 64))
)
(drawing
(rectangle (rect 16 16 112 80))
)
)
(symbol
(rect 184 32 248 112)
(text "DFF" (rect 1 0 19 10)(font "Arial" (font_size 6)))
(text "inst23" (rect 3 68 32 79)(font "Arial" ))
(port
(pt 32 80)
(input)
(text "CLRN" (rect 21 59 48 70)(font "Courier New" (bold)))
(text "CLRN" (rect 21 58 48 69)(font "Courier New" (bold)))
(line (pt 32 80)(pt 32 76))
)
(port
(pt 0 40)
(input)
(text "CLK" (rect 3 29 23 40)(font "Courier New" (bold))(invisible))
(text "CLK" (rect 3 29 23 40)(font "Courier New" (bold))(invisible))
(line (pt 0 40)(pt 12 40))
)
(port
(pt 0 24)
(input)
(text "D" (rect 14 20 21 31)(font "Courier New" (bold)))
(text "D" (rect 14 20 21 31)(font "Courier New" (bold)))
(line (pt 0 24)(pt 12 24))
)
(port
(pt 32 0)
(input)
(text "PRN" (rect 24 13 45 24)(font "Courier New" (bold)))
(text "PRN" (rect 24 11 45 22)(font "Courier New" (bold)))
(line (pt 32 4)(pt 32 0))
)
(port
(pt 64 24)
(output)
(text "Q" (rect 45 20 53 31)(font "Courier New" (bold)))
(text "Q" (rect 41 20 49 31)(font "Courier New" (bold)))
(line (pt 52 24)(pt 64 24))
)
(drawing
(line (pt 12 12)(pt 52 12))
(line (pt 12 68)(pt 52 68))
(line (pt 52 68)(pt 52 12))
(line (pt 12 68)(pt 12 12))
(line (pt 19 40)(pt 12 47))
(line (pt 12 32)(pt 20 40))
(circle (rect 28 4 36 12))
(circle (rect 28 68 36 76))
)
)
(symbol
(rect 192 112 240 144)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst26" (rect 3 21 32 32)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 16 18)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 16 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 55 18)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 55 18)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16))
)
(drawing
(line (pt 13 25)(pt 13 7))
(line (pt 13 7)(pt 31 16))
(line (pt 13 25)(pt 31 16))
(circle (rect 31 12 39 20))
)
)
(symbol
(rect 200 8 232 24)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst27" (rect 3 5 32 16)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8))
)
(drawing
(line (pt 8 8)(pt 24 8))
)
)
(symbol
(rect 344 48 408 96)
(text "OR2" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst4" (rect 3 37 26 48)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 15 32))
)
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 15 16))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(line (pt 48 24)(pt 64 24))
)
(drawing
(line (pt 14 36)(pt 25 36))
(line (pt 14 13)(pt 25 13))
(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41))
(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76))
(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36))
)
)
(symbol
(rect 0 120 32 136)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst9" (rect 3 5 26 16)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8))
)
(drawing
(line (pt 8 8)(pt 24 8))
)
)
(symbol
(rect 256 40 320 88)
(text "AND2" (rect 1 0 26 10)(font "Arial" (font_size 6)))
(text "inst13" (rect 3 37 32 48)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 71 26)(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))
)
)
(symbol
(rect 752 48 816 128)
(text "DFF" (rect 1 0 19 10)(font "Arial" (font_size 6)))
(text "inst14" (rect 3 68 32 79)(font "Arial" ))
(port
(pt 32 80)
(input)
(text "CLRN" (rect 21 59 48 70)(font "Courier New" (bold)))
(text "CLRN" (rect 21 58 48 69)(font "Courier New" (bold)))
(line (pt 32 80)(pt 32 76))
)
(port
(pt 0 40)
(input)
(text "CLK" (rect 3 29 23 40)(font "Courier New" (bold))(invisible))
(text "CLK" (rect 3 29 23 40)(font "Courier New" (bold))(invisible))
(line (pt 0 40)(pt 12 40))
)
(port
(pt 0 24)
(input)
(text "D" (rect 14 20 21 31)(font "Courier New" (bold)))
(text "D" (rect 14 20 21 31)(font "Courier New" (bold)))
(line (pt 0 24)(pt 12 24))
)
(port
(pt 32 0)
(input)
(text "PRN" (rect 24 13 45 24)(font "Courier New" (bold)))
(text "PRN" (rect 24 11 45 22)(font "Courier New" (bold)))
(line (pt 32 4)(pt 32 0))
)
(port
(pt 64 24)
(output)
(text "Q" (rect 45 20 53 31)(font "Courier New" (bold)))
(text "Q" (rect 41 20 49 31)(font "Courier New" (bold)))
(line (pt 52 24)(pt 64 24))
)
(drawing
(line (pt 12 12)(pt 52 12))
(line (pt 12 68)(pt 52 68))
(line (pt 52 68)(pt 52 12))
(line (pt 12 68)(pt 12 12))
(line (pt 19 40)(pt 12 47))
(line (pt 12 32)(pt 20 40))
(circle (rect 28 4 36 12))
(circle (rect 28 68 36 76))
)
)
(symbol
(rect 680 0 744 48)
(text "OR2" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst7" (rect 3 37 26 48)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 15 32))
)
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 15 16))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(line (pt 48 24)(pt 64 24))
)
(drawing
(line (pt 14 36)(pt 25 36))
(line (pt 14 13)(pt 25 13))
(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41))
(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76))
(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36))
)
)
(symbol
(rect 616 24 680 72)
(text "AND2" (rect 1 0 26 10)(font "Arial" (font_size 6)))
(text "inst8" (rect 3 37 26 48)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 71 26)(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))
)
)
(symbol
(rect 616 -24 680 24)
(text "AND2" (rect 1 0 26 10)(font "Arial" (font_size 6)))
(text "inst10" (rect 3 37 32 48)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 71 26)(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))
)
)
(symbol
(rect 552 -48 616 0)
(text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst11" (rect 3 37 32 48)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 11 16))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 11 32))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 71 26)(font "Courier New" (bold))(invisible))
(line (pt 49 24)(pt 64 24))
)
(drawing
(line (pt 14 13)(pt 25 13))
(line (pt 14 36)(pt 25 36))
(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41))
(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76))
(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36))
(arc (pt 8 36)(pt 8 12)(rect -21 7 14 42))
)
)
(symbol
(rect 568 -8 616 24)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst12" (rect 3 21 32 32)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 16 18)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 16 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 55 18)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 55 18)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16))
)
(drawing
(line (pt 13 25)(pt 13 7))
(line (pt 13 7)(pt 31 16))
(line (pt 13 25)(pt 31 16))
(circle (rect 31 12 39 20))
)
)
(connector
(pt 664 256)
(pt 680 256)
)
(connector
(pt 680 256)
(pt 680 152)
)
(connector
(pt 544 208)
(pt 512 208)
)
(connector
(pt 544 432)
(pt 512 432)
)
(connector
(pt 664 512)
(pt 680 512)
)
(connector
(pt 680 512)
(pt 680 368)
)
(connector
(pt 544 448)
(pt 504 448)
)
(connector
(pt 544 416)
(pt 496 416)
)
(connector
(pt 504 176)
(pt 504 448)
)
(connector
(pt 536 368)
(pt 680 368)
)
(connector
(pt 536 368)
(pt 536 224)
)
(connector
(pt 536 224)
(pt 544 224)
)
(connector
(text "H[0]" (rect 690 176 711 187)(font "Arial" ))
(pt 664 192)
(pt 736 192)
)
(connector
(text "H[1]" (rect 690 192 711 203)(font "Arial" ))
(pt 664 208)
(pt 736 208)
)
(connector
(text "H[2]" (rect 690 208 711 219)(font "Arial" ))
(pt 664 224)
(pt 736 224)
)
(connector
(text "H[3]" (rect 690 224 711 235)(font "Arial" ))
(pt 664 240)
(pt 736 240)
)
(connector
(pt 736 240)
(pt 768 240)
(bus)
)
(connector
(pt 736 224)
(pt 768 224)
(bus)
)
(connector
(pt 768 208)
(pt 736 208)
(bus)
)
(connector
(pt 768 224)
(pt 768 240)
(bus)
)
(connector
(pt 768 192)
(pt 768 208)
(bus)
)
(connector
(pt 768 208)
(pt 768 224)
(bus)
)
(connector
(pt 736 192)
(pt 768 192)
(bus)
)
(connector
(pt 768 192)
(pt 800 192)
(bus)
)
(connector
(text "M[0]" (rect 698 400 720 411)(font "Arial" ))
(pt 664 416)
(pt 736 416)
)
(connector
(text "M[1]" (rect 698 416 720 427)(font "Arial" ))
(pt 664 432)
(pt 736 432)
)
(connector
(text "M[2]" (rect 698 432 720 443)(font "Arial" ))
(pt 664 448)
(pt 736 448)
)
(connector
(text "M[3]" (rect 698 448 720 459)(font "Arial" ))
(pt 664 464)
(pt 736 464)
)
(connector
(text "M[4]" (rect 698 464 720 475)(font "Arial" ))
(pt 664 480)
(pt 736 480)
)
(connector
(text "M[5]" (rect 698 480 720 491)(font "Arial" ))
(pt 664 496)
(pt 736 496)
)
(connector
(pt 736 464)
(pt 768 464)
(bus)
)
(connector
(pt 736 448)
(pt 768 448)
(bus)
)
(connector
(pt 768 432)
(pt 736 432)
(bus)
)
(connector
(pt 768 416)
(pt 768 432)
(bus)
)
(connector