-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCPU32.bdf
More file actions
951 lines (951 loc) · 26.3 KB
/
Copy pathCPU32.bdf
File metadata and controls
951 lines (951 loc) · 26.3 KB
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
/*
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-2009 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 -32 40 136 56)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk" (rect 9 0 23 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)))
)
(pin
(output)
(rect -32 296 144 312)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ALU_out[31..0]" (rect 90 0 164 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))
)
)
(pin
(output)
(rect -32 232 144 248)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "reg_A[31..0]" (rect 90 0 150 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))
)
)
(pin
(output)
(rect -32 280 144 296)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "zero" (rect 90 0 110 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))
)
)
(pin
(output)
(rect -32 248 144 264)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "reg_B[31..0]" (rect 90 0 150 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))
)
)
(pin
(output)
(rect -32 56 144 72)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "PC[31..0]" (rect 90 0 137 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))
)
)
(pin
(output)
(rect -32 72 144 88)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "instr[31..0]" (rect 90 0 143 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))
)
)
(pin
(output)
(rect -32 120 144 136)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "reg_waddr[4..0]" (rect 90 0 165 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))
)
)
(pin
(output)
(rect -32 136 144 152)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "reg_raddra[4..0]" (rect 90 0 167 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))
)
)
(pin
(output)
(rect -32 152 144 168)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "reg_raddrb[4..0]" (rect 90 0 167 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))
)
)
(pin
(output)
(rect -32 168 144 184)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "reg_wren" (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))
)
)
(pin
(output)
(rect -32 88 144 104)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "jmp_addr[31..0]" (rect 90 0 166 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))
)
)
(pin
(output)
(rect -32 104 144 120)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "jmp_en" (rect 90 0 125 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))
)
)
(pin
(output)
(rect -32 200 144 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ram_addr[11..0]" (rect 90 0 167 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))
)
)
(pin
(output)
(rect -32 216 144 232)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ram_wren" (rect 90 0 137 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))
)
)
(pin
(output)
(rect -32 184 144 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "reg_in_src[1..0]" (rect 90 0 166 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))
)
)
(pin
(output)
(rect -32 312 144 328)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "imm[20..0]" (rect 90 0 143 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))
)
)
(pin
(output)
(rect -32 328 144 344)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ram_data[31..0]" (rect 90 0 167 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))
)
)
(pin
(output)
(rect -32 264 144 280)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ALU_ctr[2..0]" (rect 90 0 156 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))
)
)
(symbol
(rect 744 16 936 112)
(text "IFU" (rect 170 0 187 14)(font "Arial" (font_size 8)))
(text "inst2" (rect 161 80 184 92)(font "Arial" ))
(port
(pt 192 32)
(input)
(text "jmp_addr[31..0]" (rect 0 0 87 14)(font "Arial" (font_size 8)))
(text "jmp_addr[31..0]" (rect 84 27 171 41)(font "Arial" (font_size 8)))
(line (pt 192 32)(pt 176 32)(line_width 3))
)
(port
(pt 192 48)
(input)
(text "clk" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "clk" (rect 156 43 171 57)(font "Arial" (font_size 8)))
(line (pt 192 48)(pt 176 48)(line_width 1))
)
(port
(pt 192 64)
(input)
(text "jmp_en" (rect 0 0 40 14)(font "Arial" (font_size 8)))
(text "jmp_en" (rect 131 59 171 73)(font "Arial" (font_size 8)))
(line (pt 192 64)(pt 176 64)(line_width 1))
)
(port
(pt 0 32)
(output)
(text "PC[31..0]" (rect 0 0 50 14)(font "Arial" (font_size 8)))
(text "PC[31..0]" (rect 21 27 71 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 176 80)(line_width 1))
)
(flipy)
)
(symbol
(rect 424 -80 656 48)
(text "MEM" (rect 5 0 30 14)(font "Arial" (font_size 8)))
(text "inst5" (rect 8 112 31 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "clk" (rect 21 27 36 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "rom_addr[12..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
(text "rom_addr[12..0]" (rect 21 43 110 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "ram_addr[11..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
(text "ram_addr[11..0]" (rect 21 59 110 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "ram_in[31..0]" (rect 0 0 73 14)(font "Arial" (font_size 8)))
(text "ram_in[31..0]" (rect 21 75 94 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "ram_wren" (rect 0 0 59 14)(font "Arial" (font_size 8)))
(text "ram_wren" (rect 21 91 80 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 232 32)
(output)
(text "rom_data[31..0]" (rect 0 0 88 14)(font "Arial" (font_size 8)))
(text "rom_data[31..0]" (rect 123 27 211 41)(font "Arial" (font_size 8)))
(line (pt 232 32)(pt 216 32)(line_width 3))
)
(port
(pt 232 48)
(output)
(text "ram_data[31..0]" (rect 0 0 88 14)(font "Arial" (font_size 8)))
(text "ram_data[31..0]" (rect 123 43 211 57)(font "Arial" (font_size 8)))
(line (pt 232 48)(pt 216 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 216 112)(line_width 1))
)
)
(symbol
(rect 584 240 752 336)
(text "zeroExtender_21_32" (rect 5 0 124 14)(font "Arial" (font_size 8)))
(text "inst6" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "imm[20..0]" (rect 0 0 56 14)(font "Arial" (font_size 8)))
(text "imm[20..0]" (rect 21 27 77 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 168 32)
(output)
(text "Out[31..0]" (rect 0 0 55 14)(font "Arial" (font_size 8)))
(text "Out[31..0]" (rect 92 27 147 41)(font "Arial" (font_size 8)))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 152 80)(line_width 1))
)
)
(symbol
(rect 176 -80 328 0)
(text "lpm_mux_CPU_2_13" (rect 19 2 162 18)(font "Arial" (font_size 10)))
(text "inst4" (rect 8 64 31 76)(font "Arial" ))
(port
(pt 0 40)
(input)
(text "data1x[12..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data1x[12..0]" (rect 4 27 78 41)(font "Arial" (font_size 8)))
(line (pt 0 40)(pt 72 40)(line_width 3))
)
(port
(pt 0 56)
(input)
(text "data0x[12..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data0x[12..0]" (rect 4 43 78 57)(font "Arial" (font_size 8)))
(line (pt 0 56)(pt 72 56)(line_width 3))
)
(port
(pt 80 80)
(input)
(text "sel" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "sel" (rect 84 67 100 81)(font "Arial" (font_size 8)))
(line (pt 80 80)(pt 80 68)(line_width 1))
)
(port
(pt 152 48)
(output)
(text "result[12..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "result[12..0]" (rect 92 35 159 49)(font "Arial" (font_size 8)))
(line (pt 152 48)(pt 88 48)(line_width 3))
)
(drawing
(line (pt 72 24)(pt 72 72)(line_width 1))
(line (pt 88 32)(pt 88 64)(line_width 1))
(line (pt 72 24)(pt 88 32)(line_width 1))
(line (pt 72 72)(pt 88 64)(line_width 1))
)
)
(symbol
(rect 264 80 480 304)
(text "CTU" (rect 5 0 28 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 208 25 220)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "instr[31..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
(text "instr[31..0]" (rect 21 27 81 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "zero" (rect 0 0 25 14)(font "Arial" (font_size 8)))
(text "zero" (rect 21 43 46 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "PC[31..0]" (rect 0 0 50 14)(font "Arial" (font_size 8)))
(text "PC[31..0]" (rect 21 59 71 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "reg_A[31..0]" (rect 0 0 70 14)(font "Arial" (font_size 8)))
(text "reg_A[31..0]" (rect 21 75 91 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 216 32)
(output)
(text "reg_waddr[4..0]" (rect 0 0 92 14)(font "Arial" (font_size 8)))
(text "reg_waddr[4..0]" (rect 103 27 195 41)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 200 32)(line_width 3))
)
(port
(pt 216 48)
(output)
(text "reg_wren" (rect 0 0 56 14)(font "Arial" (font_size 8)))
(text "reg_wren" (rect 139 43 195 57)(font "Arial" (font_size 8)))
(line (pt 216 48)(pt 200 48)(line_width 1))
)
(port
(pt 216 64)
(output)
(text "reg_raddra[4..0]" (rect 0 0 92 14)(font "Arial" (font_size 8)))
(text "reg_raddra[4..0]" (rect 103 59 195 73)(font "Arial" (font_size 8)))
(line (pt 216 64)(pt 200 64)(line_width 3))
)
(port
(pt 216 80)
(output)
(text "reg_raddrb[4..0]" (rect 0 0 92 14)(font "Arial" (font_size 8)))
(text "reg_raddrb[4..0]" (rect 103 75 195 89)(font "Arial" (font_size 8)))
(line (pt 216 80)(pt 200 80)(line_width 3))
)
(port
(pt 216 96)
(output)
(text "jmp_en" (rect 0 0 40 14)(font "Arial" (font_size 8)))
(text "jmp_en" (rect 155 91 195 105)(font "Arial" (font_size 8)))
(line (pt 216 96)(pt 200 96)(line_width 1))
)
(port
(pt 216 112)
(output)
(text "ALU_ctr[2..0]" (rect 0 0 75 14)(font "Arial" (font_size 8)))
(text "ALU_ctr[2..0]" (rect 120 107 195 121)(font "Arial" (font_size 8)))
(line (pt 216 112)(pt 200 112)(line_width 3))
)
(port
(pt 216 128)
(output)
(text "ram_wren" (rect 0 0 59 14)(font "Arial" (font_size 8)))
(text "ram_wren" (rect 136 123 195 137)(font "Arial" (font_size 8)))
(line (pt 216 128)(pt 200 128)(line_width 1))
)
(port
(pt 216 144)
(output)
(text "jmp_addr[31..0]" (rect 0 0 87 14)(font "Arial" (font_size 8)))
(text "jmp_addr[31..0]" (rect 108 139 195 153)(font "Arial" (font_size 8)))
(line (pt 216 144)(pt 200 144)(line_width 3))
)
(port
(pt 216 160)
(output)
(text "ram_addr[11..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
(text "ram_addr[11..0]" (rect 106 155 195 169)(font "Arial" (font_size 8)))
(line (pt 216 160)(pt 200 160)(line_width 3))
)
(port
(pt 216 176)
(output)
(text "reg_in_src[1..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
(text "reg_in_src[1..0]" (rect 106 171 195 185)(font "Arial" (font_size 8)))
(line (pt 216 176)(pt 200 176)(line_width 3))
)
(port
(pt 216 192)
(output)
(text "imm[20..0]" (rect 0 0 56 14)(font "Arial" (font_size 8)))
(text "imm[20..0]" (rect 139 187 195 201)(font "Arial" (font_size 8)))
(line (pt 216 192)(pt 200 192)(line_width 3))
)
(drawing
(rectangle (rect 16 16 200 208)(line_width 1))
)
)
(symbol
(rect 928 144 1160 336)
(text "DataBus" (rect 5 0 53 14)(font "Arial" (font_size 8)))
(text "inst1" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "clk" (rect 21 27 36 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "ALU_ctr[2..0]" (rect 0 0 75 14)(font "Arial" (font_size 8)))
(text "ALU_ctr[2..0]" (rect 21 43 96 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "imm[31..0]" (rect 0 0 56 14)(font "Arial" (font_size 8)))
(text "imm[31..0]" (rect 21 59 77 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "ram_data[31..0]" (rect 0 0 88 14)(font "Arial" (font_size 8)))
(text "ram_data[31..0]" (rect 21 75 109 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "reg_in_src[1..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
(text "reg_in_src[1..0]" (rect 21 91 110 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "reg_waddr[4..0]" (rect 0 0 92 14)(font "Arial" (font_size 8)))
(text "reg_waddr[4..0]" (rect 21 107 113 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "reg_wen" (rect 0 0 51 14)(font "Arial" (font_size 8)))
(text "reg_wen" (rect 21 123 72 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "reg_raddra[4..0]" (rect 0 0 92 14)(font "Arial" (font_size 8)))
(text "reg_raddra[4..0]" (rect 21 139 113 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144)(line_width 3))
)
(port
(pt 0 160)
(input)
(text "reg_raddrb[4..0]" (rect 0 0 92 14)(font "Arial" (font_size 8)))
(text "reg_raddrb[4..0]" (rect 21 155 113 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160)(line_width 3))
)
(port
(pt 232 32)
(output)
(text "reg_A[31..0]" (rect 0 0 70 14)(font "Arial" (font_size 8)))
(text "reg_A[31..0]" (rect 141 27 211 41)(font "Arial" (font_size 8)))
(line (pt 232 32)(pt 216 32)(line_width 3))
)
(port
(pt 232 48)
(output)
(text "ALU_out[31..0]" (rect 0 0 84 14)(font "Arial" (font_size 8)))
(text "ALU_out[31..0]" (rect 127 43 211 57)(font "Arial" (font_size 8)))
(line (pt 232 48)(pt 216 48)(line_width 3))
)
(port
(pt 232 64)
(output)
(text "zero" (rect 0 0 25 14)(font "Arial" (font_size 8)))
(text "zero" (rect 186 59 211 73)(font "Arial" (font_size 8)))
(line (pt 232 64)(pt 216 64)(line_width 1))
)
(port
(pt 232 80)
(output)
(text "reg_B[31..0]" (rect 0 0 69 14)(font "Arial" (font_size 8)))
(text "reg_B[31..0]" (rect 142 75 211 89)(font "Arial" (font_size 8)))
(line (pt 232 80)(pt 216 80)(line_width 3))
)
(drawing
(rectangle (rect 16 16 216 176)(line_width 1))
)
)
(connector
(text "PC[31..0]" (rect 200 136 247 148)(font "Arial" ))
(pt 264 144)
(pt 256 144)
(bus)
)
(connector
(text "reg_waddr[4..0]" (rect 496 104 571 116)(font "Arial" ))
(pt 480 112)
(pt 488 112)
(bus)
)
(connector
(text "jmp_addr[31..0]" (rect 496 216 572 228)(font "Arial" ))
(pt 480 224)
(pt 488 224)
(bus)
)
(connector
(text "jmp_en" (rect 496 168 531 180)(font "Arial" ))
(pt 480 176)
(pt 488 176)
)
(connector
(text "zero" (rect 232 120 252 132)(font "Arial" ))
(pt 264 128)
(pt 256 128)
)
(connector
(text "reg_A[31..0]" (rect 184 152 244 164)(font "Arial" ))
(pt 264 160)
(pt 256 160)
(bus)
)
(connector
(text "ram_addr[11..0]" (rect 501 232 578 244)(font "Arial" ))
(pt 480 240)
(pt 488 240)
(bus)
)
(connector
(text "ram_wren" (rect 499 200 546 212)(font "Arial" ))
(pt 480 208)
(pt 488 208)
)
(connector
(text "reg_wren" (rect 496 120 539 132)(font "Arial" ))
(pt 480 128)
(pt 488 128)
)
(connector
(text "reg_raddra[4..0]" (rect 499 136 576 148)(font "Arial" ))
(pt 480 144)
(pt 488 144)
(bus)
)
(connector
(text "reg_raddrb[4..0]" (rect 499 152 576 164)(font "Arial" ))
(pt 480 160)
(pt 488 160)
(bus)
)
(connector
(text "zero" (rect 1172 200 1192 212)(font "Arial" ))
(pt 1160 208)
(pt 1168 208)
)
(connector
(text "reg_B[31..0]" (rect 1176 216 1236 228)(font "Arial" ))
(pt 1160 224)
(pt 1168 224)
(bus)
)
(connector
(text "reg_A[31..0]" (rect 1176 168 1236 180)(font "Arial" ))
(pt 1160 176)
(pt 1168 176)
(bus)
)
(connector
(text "ALU_out[31..0]" (rect 1176 184 1250 196)(font "Arial" ))
(pt 1160 192)
(pt 1168 192)
(bus)
)
(connector
(text "clk" (rect 904 168 918 180)(font "Arial" ))
(pt 928 176)
(pt 920 176)
)
(connector
(text "reg_in_src[1..0]" (rect 504 248 580 260)(font "Arial" ))
(pt 480 256)
(pt 488 256)
(bus)
)
(connector
(text "imm[20..0]" (rect 512 280 565 292)(font "Arial" ))
(pt 584 272)
(pt 480 272)
(bus)
)
(connector
(text "reg_waddr[4..0]" (rect 848 248 923 260)(font "Arial" ))
(pt 928 256)
(pt 920 256)
(bus)
)
(connector
(text "reg_wren" (rect 872 264 915 276)(font "Arial" ))
(pt 928 272)
(pt 920 272)
)
(connector
(text "reg_raddra[4..0]" (rect 848 280 925 292)(font "Arial" ))
(pt 928 288)
(pt 920 288)
(bus)
)
(connector
(text "reg_raddrb[4..0]" (rect 848 296 925 308)(font "Arial" ))
(pt 928 304)
(pt 920 304)
(bus)
)
(connector
(text "reg_in_src[1..0]" (rect 848 232 924 244)(font "Arial" ))
(pt 928 240)
(pt 920 240)
(bus)
)
(connector
(text "ram_data[31..0]" (rect 848 216 925 228)(font "Arial" ))
(pt 928 224)
(pt 920 224)
(bus)
)
(connector
(text "instr[31..0]" (rect 192 104 245 116)(font "Arial" ))
(pt 264 112)
(pt 256 112)
(bus)
)
(connector
(text "rom_data[31..0]" (rect -112 72 -35 84)(font "Arial" ))
(pt -32 80)
(pt -40 80)
(bus)
)
(connector
(text "clk" (rect 392 -56 406 -44)(font "Arial" ))
(pt 424 -48)
(pt 416 -48)
)
(connector
(text "rom_data[31..0]" (rect 672 -56 749 -44)(font "Arial" ))
(pt 656 -48)
(pt 664 -48)
(bus)
)
(connector
(text "ram_data[31..0]" (rect 672 -40 749 -28)(font "Arial" ))
(pt 656 -32)
(pt 664 -32)
(bus)
)
(connector
(text "ram_wren" (rect 368 8 415 20)(font "Arial" ))
(pt 416 16)
(pt 424 16)
)
(connector
(text "ram_addr[11..0]" (rect 344 -24 421 -12)(font "Arial" ))
(pt 416 -16)
(pt 424 -16)
(bus)
)
(connector
(text "PC[31..0]" (rect 680 40 727 52)(font "Arial" ))
(pt 744 48)
(pt 736 48)
(bus)
)
(connector
(text "jmp_addr[31..0]" (rect 952 40 1028 52)(font "Arial" ))
(pt 936 48)
(pt 944 48)
(bus)
)
(connector
(text "clk" (rect 952 56 966 68)(font "Arial" ))
(pt 936 64)
(pt 944 64)
)
(connector
(text "jmp_en" (rect 952 72 987 84)(font "Arial" ))
(pt 936 80)
(pt 944 80)
)
(connector
(text "PC[12..0]" (rect 120 -32 167 -20)(font "Arial" ))
(pt 176 -24)
(pt 168 -24)
(bus)
)
(connector
(text "jmp_en" (rect 120 8 155 20)(font "Arial" ))
(pt 160 16)
(pt 256 16)
)
(connector
(pt 256 16)
(pt 256 0)
)
(connector
(text "jmp_addr[12..0]" (rect 96 -48 172 -36)(font "Arial" ))
(pt 176 -40)
(pt 168 -40)
(bus)
)
(connector
(pt 424 -32)
(pt 328 -32)
(bus)
)
(connector
(pt 928 208)
(pt 816 208)
(bus)
)
(connector
(pt 752 272)
(pt 816 272)
(bus)
)
(connector
(pt 816 208)
(pt 816 272)
(bus)
)
(connector
(text "reg_B[31..0]" (rect 360 -8 420 4)(font "Arial" ))
(pt 424 0)
(pt 416 0)
(bus)
)
(connector
(text "ALU_ctr[2..0]" (rect 502 184 568 196)(font "Arial" ))
(pt 480 192)
(pt 488 192)
(bus)
)
(connector
(text "ALU_ctr[2..0]" (rect 856 184 922 196)(font "Arial" ))
(pt 928 192)
(pt 920 192)
(bus)
)