-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDatapath.bdf
More file actions
1462 lines (1462 loc) · 31.2 KB
/
Copy pathDatapath.bdf
File metadata and controls
1462 lines (1462 loc) · 31.2 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
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to occur.
*/
/*
Copyright (C) 2017 Intel Corporation. All rights reserved.
Your use of Intel Corporation's design tools, logic functions
and other software and tools, and its AMPP partner logic
functions, and any output files from any of the foregoing
(including device programming or simulation files), and any
associated documentation or information are expressly subject
to the terms and conditions of the Intel Program License
Subscription Agreement, the Intel Quartus Prime License Agreement,
the Intel FPGA IP License Agreement, or other applicable license
agreement, including, without limitation, that your use is for
the sole purpose of programming logic devices manufactured by
Intel and sold by Intel or its authorized distributors. Please
refer to the applicable agreement for further details.
*/
(header "graphic" (version "1.4"))
(pin
(input)
(rect -1112 368 -944 384)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "PcSrc" (rect 5 0 34 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -976 16 -808 32)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "CLK" (rect 5 0 26 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -176 272 -8 288)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "RegSrc" (rect 5 0 41 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 208 112 376 128)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "RegWrite" (rect 5 0 51 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 576 344 744 360)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "ALUSrc" (rect 5 0 42 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 800 432 968 448)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "sh_dir" (rect 5 0 34 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 696 144 872 160)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "ALUControl[2..0]" (rect 5 0 87 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 92 12)(pt 117 12))
(line (pt 92 4)(pt 117 4))
(line (pt 121 8)(pt 176 8))
(line (pt 92 12)(pt 92 4))
(line (pt 117 4)(pt 121 8))
(line (pt 117 12)(pt 121 8))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 1056 240 1224 256)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "MemWrite" (rect 5 0 54 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 1224 344 1392 360)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "ResultSrc[1..0]" (rect 5 0 79 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 84 12)(pt 109 12))
(line (pt 84 4)(pt 109 4))
(line (pt 113 8)(pt 168 8))
(line (pt 84 12)(pt 84 4))
(line (pt 109 4)(pt 113 8))
(line (pt 109 12)(pt 113 8))
)
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect 1224 120 1400 136)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ALUFlags[3..0]" (rect 90 0 164 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
)
(pin
(output)
(rect -144 144 32 160)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Cond[3..0]" (rect 90 0 141 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
)
(pin
(output)
(rect -144 160 32 176)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Op[1..0]" (rect 90 0 127 17)(font "Intel Clear" ))
(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 -144 176 32 192)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Funct[5..0]" (rect 90 0 139 17)(font "Intel Clear" ))
(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 96 328 272 344)
(text "OUTPUT" (rect 137 0 175 10)(font "Arial" (font_size 6)))
(text "Rd[3..0]" (rect 5 0 45 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 176 8)(pt 124 8))
(line (pt 124 4)(pt 98 4))
(line (pt 124 12)(pt 98 12))
(line (pt 124 12)(pt 124 4))
(line (pt 98 4)(pt 94 8))
(line (pt 94 8)(pt 98 12))
(line (pt 98 12)(pt 94 8))
)
(flipy)
)
(pin
(output)
(rect 592 128 768 144)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "R0[31..0]" (rect 90 0 136 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
)
(pin
(output)
(rect 592 144 768 160)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "R1[31..0]" (rect 90 0 132 17)(font "Intel Clear" ))
(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 592 160 768 176)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "R2[31..0]" (rect 90 0 132 17)(font "Intel Clear" ))
(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 -168 200 8 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "instr_out[31..0]" (rect 90 0 164 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8))
(line (pt 52 4)(pt 78 4))
(line (pt 52 12)(pt 78 12))
(line (pt 52 12)(pt 52 4))
(line (pt 78 4)(pt 82 8))
(line (pt 82 8)(pt 78 12))
(line (pt 78 12)(pt 82 8))
)
)
(symbol
(rect -392 384 -112 480)
(text "adder_4" (rect 5 0 55 19)(font "Intel Clear" (font_size 8)))
(text "PC_PLUS4" (rect 8 75 59 92)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "Adder_4_in[31..0]" (rect 0 0 108 19)(font "Intel Clear" (font_size 8)))
(text "Adder_4_in[31..0]" (rect 21 27 129 46)(font "Intel Clear" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 280 32)
(output)
(text "Adder_4_out[31..0]" (rect 0 0 116 19)(font "Intel Clear" (font_size 8)))
(text "Adder_4_out[31..0]" (rect 143 27 259 46)(font "Intel Clear" (font_size 8)))
(line (pt 280 32)(pt 264 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 264 80))
)
)
(symbol
(rect -64 384 216 480)
(text "adder_4" (rect 5 0 55 19)(font "Intel Clear" (font_size 8)))
(text "PC_PLUS8" (rect 8 75 59 92)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "Adder_4_in[31..0]" (rect 0 0 108 19)(font "Intel Clear" (font_size 8)))
(text "Adder_4_in[31..0]" (rect 21 27 129 46)(font "Intel Clear" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 280 32)
(output)
(text "Adder_4_out[31..0]" (rect 0 0 116 19)(font "Intel Clear" (font_size 8)))
(text "Adder_4_out[31..0]" (rect 143 27 259 46)(font "Intel Clear" (font_size 8)))
(line (pt 280 32)(pt 264 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 264 80))
)
)
(symbol
(rect 400 344 568 424)
(text "Extend" (rect 5 0 39 12)(font "Arial" ))
(text "EXTENDER" (rect 8 64 59 81)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "in[11..0]" (rect 0 0 40 12)(font "Arial" ))
(text "in[11..0]" (rect 21 27 61 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 168 32)
(output)
(text "out[31..0]" (rect 0 0 47 12)(font "Arial" ))
(text "out[31..0]" (rect 108 27 155 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 152 64))
)
)
(symbol
(rect 968 376 1168 488)
(text "shifter" (rect 5 0 36 12)(font "Arial" ))
(text "SHIFTER" (rect 8 96 48 113)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "data[31..0]" (rect 0 0 53 12)(font "Arial" ))
(text "data[31..0]" (rect 21 27 74 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "sh_amnt[31..0]" (rect 0 0 74 12)(font "Arial" ))
(text "sh_amnt[31..0]" (rect 21 43 95 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "sh_dir" (rect 0 0 29 12)(font "Arial" ))
(text "sh_dir" (rect 21 59 50 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 200 32)
(output)
(text "out[31..0]" (rect 0 0 47 12)(font "Arial" ))
(text "out[31..0]" (rect 140 27 187 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 184 96))
)
)
(symbol
(rect -944 312 -760 424)
(text "mux_2_1" (rect 5 0 49 12)(font "Arial" ))
(text "PCSelect_mux" (rect 8 96 77 113)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "in0[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in0[W-1..0]" (rect 21 27 75 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "in1[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in1[W-1..0]" (rect 21 43 75 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "s0" (rect 0 0 11 12)(font "Arial" ))
(text "s0" (rect 21 59 32 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 184 32)
(output)
(text "out[W-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text "out[W-1..0]" (rect 117 27 172 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(parameter
"W"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 168 96))
)
(annotation_block (parameter)(rect -944 272 -775 310))
)
(symbol
(rect -696 208 -504 320)
(text "Simple_Reg_w_Reset" (rect 5 0 112 12)(font "Arial" ))
(text "PC" (rect 8 96 22 113)(font "Intel Clear" ))
(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 "load[W-1..0]" (rect 0 0 60 12)(font "Arial" ))
(text "load[W-1..0]" (rect 21 59 81 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 192 32)
(output)
(text "out[W-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text "out[W-1..0]" (rect 125 27 180 39)(font "Arial" ))
(line (pt 192 32)(pt 176 32)(line_width 3))
)
(parameter
"W"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 176 96))
)
(annotation_block (parameter)(rect -688 160 -519 198))
)
(symbol
(rect 744 288 928 400)
(text "mux_2_1" (rect 5 0 49 12)(font "Arial" ))
(text "ALU_SrcB_Select_mux" (rect 8 96 116 113)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "in0[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in0[W-1..0]" (rect 21 27 75 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "in1[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in1[W-1..0]" (rect 21 43 75 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "s0" (rect 0 0 11 12)(font "Arial" ))
(text "s0" (rect 21 59 32 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 184 32)
(output)
(text "out[W-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text "out[W-1..0]" (rect 117 27 172 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(parameter
"W"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 168 96))
)
(annotation_block (parameter)(rect 744 240 913 278))
)
(symbol
(rect 976 72 1160 216)
(text "ALU" (rect 5 0 26 12)(font "Arial" ))
(text "ALU" (rect 8 128 28 145)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "A[W-1..0]" (rect 0 0 47 12)(font "Arial" ))
(text "A[W-1..0]" (rect 21 27 68 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "B[W-1..0]" (rect 0 0 47 12)(font "Arial" ))
(text "B[W-1..0]" (rect 21 43 68 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "s2" (rect 0 0 11 12)(font "Arial" ))
(text "s2" (rect 21 59 32 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 0 80)
(input)
(text "s1" (rect 0 0 11 12)(font "Arial" ))
(text "s1" (rect 21 75 32 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 0 96)
(input)
(text "s0" (rect 0 0 11 12)(font "Arial" ))
(text "s0" (rect 21 91 32 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96))
)
(port
(pt 184 32)
(output)
(text "CO" (rect 0 0 16 12)(font "Arial" ))
(text "CO" (rect 150 27 166 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32))
)
(port
(pt 184 48)
(output)
(text "OVF" (rect 0 0 22 12)(font "Arial" ))
(text "OVF" (rect 145 43 167 55)(font "Arial" ))
(line (pt 184 48)(pt 168 48))
)
(port
(pt 184 64)
(output)
(text "N" (rect 0 0 8 12)(font "Arial" ))
(text "N" (rect 157 59 165 71)(font "Arial" ))
(line (pt 184 64)(pt 168 64))
)
(port
(pt 184 80)
(output)
(text "Z" (rect 0 0 7 12)(font "Arial" ))
(text "Z" (rect 158 75 165 87)(font "Arial" ))
(line (pt 184 80)(pt 168 80))
)
(port
(pt 184 96)
(output)
(text "out[W-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text "out[W-1..0]" (rect 117 91 172 103)(font "Arial" ))
(line (pt 184 96)(pt 168 96)(line_width 3))
)
(parameter
"W"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 168 128))
)
(annotation_block (parameter)(rect 976 32 1145 70))
)
(symbol
(rect 1456 312 1640 456)
(text "mux_4_1" (rect 5 0 49 12)(font "Arial" ))
(text "inst" (rect 8 128 25 140)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "s0" (rect 0 0 11 12)(font "Arial" ))
(text "s0" (rect 21 27 32 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 0 48)
(input)
(text "s1" (rect 0 0 11 12)(font "Arial" ))
(text "s1" (rect 21 43 32 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "in0[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in0[W-1..0]" (rect 21 59 75 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "in1[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in1[W-1..0]" (rect 21 75 75 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "in2[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in2[W-1..0]" (rect 21 91 75 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "in3[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in3[W-1..0]" (rect 21 107 75 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 184 32)
(output)
(text "out[W-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text "out[W-1..0]" (rect 117 27 172 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(parameter
"W"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 168 128))
)
(annotation_block (parameter)(rect 1464 272 1633 310))
)
(symbol
(rect -728 240 -696 272)
(text "GND" (rect 6 8 16 29)(font "Arial" (font_size 6))(vertical))
(text "inst12" (rect -6 3 11 31)(font "Intel Clear" )(vertical)(invisible))
(port
(pt 32 16)
(output)
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
(text "1" (rect 20 18 32 23)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 24 16)(pt 32 16))
)
(drawing
(line (pt 24 8)(pt 16 16))
(line (pt 16 16)(pt 24 24))
(line (pt 24 8)(pt 24 24))
)
(rotate270)
)
(symbol
(rect 0 216 184 328)
(text "mux_2_1" (rect 5 0 49 12)(font "Arial" ))
(text "RegSelect_mux" (rect 8 96 82 113)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "in0[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in0[W-1..0]" (rect 21 27 75 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "in1[W-1..0]" (rect 0 0 54 12)(font "Arial" ))
(text "in1[W-1..0]" (rect 21 43 75 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "s0" (rect 0 0 11 12)(font "Arial" ))
(text "s0" (rect 21 59 32 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64))
)
(port
(pt 184 32)
(output)
(text "out[W-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text "out[W-1..0]" (rect 117 27 172 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(parameter
"W"
"4"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 168 96))
)
(annotation_block (parameter)(rect 56 168 225 206))
)
(symbol
(rect 376 72 592 248)
(text "Register_File" (rect 5 0 69 12)(font "Arial" ))
(text "inst2" (rect 8 160 30 177)(font "Intel Clear" ))
(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 "RegWrite" (rect 0 0 46 12)(font "Arial" ))
(text "RegWrite" (rect 21 43 67 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48))
)
(port
(pt 0 64)
(input)
(text "A1[3..0]" (rect 0 0 38 12)(font "Arial" ))
(text "A1[3..0]" (rect 21 59 59 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "A2[3..0]" (rect 0 0 38 12)(font "Arial" ))
(text "A2[3..0]" (rect 21 75 59 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "A3[3..0]" (rect 0 0 38 12)(font "Arial" ))
(text "A3[3..0]" (rect 21 91 59 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "WD3[W-1..0]" (rect 0 0 64 12)(font "Arial" ))
(text "WD3[W-1..0]" (rect 21 107 85 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "R15_in[W-1..0]" (rect 0 0 74 12)(font "Arial" ))
(text "R15_in[W-1..0]" (rect 21 123 95 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 216 32)
(output)
(text "RD1[W-1..0]" (rect 0 0 62 12)(font "Arial" ))
(text "RD1[W-1..0]" (rect 143 27 205 39)(font "Arial" ))
(line (pt 216 32)(pt 200 32)(line_width 3))
)
(port
(pt 216 48)
(output)
(text "RD2[W-1..0]" (rect 0 0 62 12)(font "Arial" ))
(text "RD2[W-1..0]" (rect 143 43 205 55)(font "Arial" ))
(line (pt 216 48)(pt 200 48)(line_width 3))
)
(port
(pt 216 64)
(output)
(text "out0[W-1..0]" (rect 0 0 61 12)(font "Arial" ))
(text "out0[W-1..0]" (rect 144 59 205 71)(font "Arial" ))
(line (pt 216 64)(pt 200 64)(line_width 3))
)
(port
(pt 216 80)
(output)
(text "out1[W-1..0]" (rect 0 0 61 12)(font "Arial" ))
(text "out1[W-1..0]" (rect 144 75 205 87)(font "Arial" ))
(line (pt 216 80)(pt 200 80)(line_width 3))
)
(port
(pt 216 96)
(output)
(text "out2[W-1..0]" (rect 0 0 61 12)(font "Arial" ))
(text "out2[W-1..0]" (rect 144 91 205 103)(font "Arial" ))
(line (pt 216 96)(pt 200 96)(line_width 3))
)
(parameter
"W"
"32"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(rectangle (rect 16 16 200 160))
)
(annotation_block (parameter)(rect 392 32 568 72))
)
(symbol
(rect -400 208 -232 288)
(text "Instruction_Memory" (rect 5 0 102 12)(font "Arial" ))
(text "Instr_MEM" (rect 8 64 58 81)(font "Intel Clear" ))
(port
(pt 0 32)
(input)
(text "A[31..0]" (rect 0 0 38 12)(font "Arial" ))
(text "A[31..0]" (rect 21 27 59 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 168 32)
(output)
(text "RD[31..0]" (rect 0 0 48 12)(font "Arial" ))
(text "RD[31..0]" (rect 107 27 155 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 152 64))
)
)
(symbol
(rect 1224 168 1408 280)
(text "Data_Memory" (rect 5 0 74 12)(font "Arial" ))
(text "Data_MEM" (rect 8 96 61 113)(font "Intel Clear" ))
(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 "A[31..0]" (rect 0 0 38 12)(font "Arial" ))
(text "A[31..0]" (rect 21 43 59 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "WD[31..0]" (rect 0 0 50 12)(font "Arial" ))
(text "WD[31..0]" (rect 21 59 71 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "MemWrite" (rect 0 0 49 12)(font "Arial" ))
(text "MemWrite" (rect 21 75 70 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80))
)
(port
(pt 184 32)
(output)
(text "out[31..0]" (rect 0 0 47 12)(font "Arial" ))
(text "out[31..0]" (rect 124 27 171 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 168 96))
)
)
(connector
(pt 248 152)
(pt 376 152)
(bus)
)
(connector
(pt 272 168)
(pt 376 168)
(bus)
)
(connector
(text "instr[19..16]" (rect -190 120 -135 137)(font "Intel Clear" ))
(pt 376 136)
(pt -192 136)
(bus)
)
(connector
(pt 592 120)
(pt 616 120)
(bus)
)
(connector
(pt 616 320)
(pt 744 320)
(bus)
)
(connector
(pt 616 336)
(pt 744 336)
(bus)
)
(connector
(pt 944 320)
(pt 928 320)
(bus)
)
(connector
(pt 944 320)
(pt 944 120)
(bus)
)
(connector
(pt 944 120)
(pt 976 120)
(bus)
)
(connector
(pt 616 232)
(pt 1224 232)
(bus)
)
(connector
(pt 616 120)
(pt 616 232)
(bus)
)
(connector
(pt 616 232)
(pt 616 320)
(bus)
)
(connector
(pt 1160 168)
(pt 1184 168)
(bus)
)
(connector
(pt 1224 216)
(pt 1184 216)
(bus)
)
(connector
(pt 1424 200)
(pt 1424 376)
(bus)
)
(connector
(pt 1456 376)
(pt 1424 376)
(bus)
)
(connector
(pt 1184 392)
(pt 1456 392)
(bus)
)
(connector
(pt 1184 168)
(pt 1184 216)
(bus)
)
(connector