-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathALU_MUX.bsf
222 lines (222 loc) · 7.11 KB
/
ALU_MUX.bsf
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
/*
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 "symbol" (version "1.2"))
(symbol
(rect 0 0 144 432)
(text "ALU_MUX" (rect 33 0 102 16)(font "Arial" (font_size 10)))
(text "inst" (rect 8 416 25 428)(font "Arial" ))
(port
(pt 0 40)
(input)
(text "data23x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data23x[31..0]" (rect 4 24 85 39)(font "Arial" (font_size 8)))
(line (pt 0 40)(pt 64 40)(line_width 3))
)
(port
(pt 0 56)
(input)
(text "data22x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data22x[31..0]" (rect 4 40 85 55)(font "Arial" (font_size 8)))
(line (pt 0 56)(pt 64 56)(line_width 3))
)
(port
(pt 0 72)
(input)
(text "data21x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data21x[31..0]" (rect 4 56 85 71)(font "Arial" (font_size 8)))
(line (pt 0 72)(pt 64 72)(line_width 3))
)
(port
(pt 0 88)
(input)
(text "data20x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data20x[31..0]" (rect 4 72 85 87)(font "Arial" (font_size 8)))
(line (pt 0 88)(pt 64 88)(line_width 3))
)
(port
(pt 0 104)
(input)
(text "data19x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data19x[31..0]" (rect 4 88 85 103)(font "Arial" (font_size 8)))
(line (pt 0 104)(pt 64 104)(line_width 3))
)
(port
(pt 0 120)
(input)
(text "data18x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data18x[31..0]" (rect 4 104 85 119)(font "Arial" (font_size 8)))
(line (pt 0 120)(pt 64 120)(line_width 3))
)
(port
(pt 0 136)
(input)
(text "data17x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data17x[31..0]" (rect 4 120 85 135)(font "Arial" (font_size 8)))
(line (pt 0 136)(pt 64 136)(line_width 3))
)
(port
(pt 0 152)
(input)
(text "data16x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data16x[31..0]" (rect 4 136 85 151)(font "Arial" (font_size 8)))
(line (pt 0 152)(pt 64 152)(line_width 3))
)
(port
(pt 0 168)
(input)
(text "data15x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data15x[31..0]" (rect 4 152 85 167)(font "Arial" (font_size 8)))
(line (pt 0 168)(pt 64 168)(line_width 3))
)
(port
(pt 0 184)
(input)
(text "data14x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data14x[31..0]" (rect 4 168 85 183)(font "Arial" (font_size 8)))
(line (pt 0 184)(pt 64 184)(line_width 3))
)
(port
(pt 0 200)
(input)
(text "data13x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data13x[31..0]" (rect 4 184 85 199)(font "Arial" (font_size 8)))
(line (pt 0 200)(pt 64 200)(line_width 3))
)
(port
(pt 0 216)
(input)
(text "data12x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data12x[31..0]" (rect 4 200 85 215)(font "Arial" (font_size 8)))
(line (pt 0 216)(pt 64 216)(line_width 3))
)
(port
(pt 0 232)
(input)
(text "data11x[31..0]" (rect 0 0 80 14)(font "Arial" (font_size 8)))
(text "data11x[31..0]" (rect 4 216 84 231)(font "Arial" (font_size 8)))
(line (pt 0 232)(pt 64 232)(line_width 3))
)
(port
(pt 0 248)
(input)
(text "data10x[31..0]" (rect 0 0 81 14)(font "Arial" (font_size 8)))
(text "data10x[31..0]" (rect 4 232 85 247)(font "Arial" (font_size 8)))
(line (pt 0 248)(pt 64 248)(line_width 3))
)
(port
(pt 0 264)
(input)
(text "data9x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data9x[31..0]" (rect 4 248 78 263)(font "Arial" (font_size 8)))
(line (pt 0 264)(pt 64 264)(line_width 3))
)
(port
(pt 0 280)
(input)
(text "data8x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data8x[31..0]" (rect 4 264 78 279)(font "Arial" (font_size 8)))
(line (pt 0 280)(pt 64 280)(line_width 3))
)
(port
(pt 0 296)
(input)
(text "data7x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data7x[31..0]" (rect 4 280 78 295)(font "Arial" (font_size 8)))
(line (pt 0 296)(pt 64 296)(line_width 3))
)
(port
(pt 0 312)
(input)
(text "data6x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data6x[31..0]" (rect 4 296 78 311)(font "Arial" (font_size 8)))
(line (pt 0 312)(pt 64 312)(line_width 3))
)
(port
(pt 0 328)
(input)
(text "data5x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data5x[31..0]" (rect 4 312 78 327)(font "Arial" (font_size 8)))
(line (pt 0 328)(pt 64 328)(line_width 3))
)
(port
(pt 0 344)
(input)
(text "data4x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data4x[31..0]" (rect 4 328 78 343)(font "Arial" (font_size 8)))
(line (pt 0 344)(pt 64 344)(line_width 3))
)
(port
(pt 0 360)
(input)
(text "data3x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data3x[31..0]" (rect 4 344 78 359)(font "Arial" (font_size 8)))
(line (pt 0 360)(pt 64 360)(line_width 3))
)
(port
(pt 0 376)
(input)
(text "data2x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data2x[31..0]" (rect 4 360 78 375)(font "Arial" (font_size 8)))
(line (pt 0 376)(pt 64 376)(line_width 3))
)
(port
(pt 0 392)
(input)
(text "data1x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data1x[31..0]" (rect 4 376 78 391)(font "Arial" (font_size 8)))
(line (pt 0 392)(pt 64 392)(line_width 3))
)
(port
(pt 0 408)
(input)
(text "data0x[31..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
(text "data0x[31..0]" (rect 4 392 78 407)(font "Arial" (font_size 8)))
(line (pt 0 408)(pt 64 408)(line_width 3))
)
(port
(pt 72 432)
(input)
(text "sel[4..0]" (rect 0 0 14 44)(font "Arial" (font_size 8))(vertical))
(text "sel[4..0]" (rect 64 370 79 415)(font "Arial" (font_size 8))(vertical))
(line (pt 72 432)(pt 72 420)(line_width 3))
)
(port
(pt 144 224)
(output)
(text "result[31..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "result[31..0]" (rect 72 208 139 223)(font "Arial" (font_size 8)))
(line (pt 144 224)(pt 80 224)(line_width 3))
)
(drawing
(line (pt 64 24)(pt 64 424))
(line (pt 64 24)(pt 80 32))
(line (pt 64 424)(pt 80 416))
(line (pt 80 32)(pt 80 416))
(line (pt 0 0)(pt 146 0))
(line (pt 146 0)(pt 146 434))
(line (pt 0 434)(pt 146 434))
(line (pt 0 0)(pt 0 434))
(line (pt 0 0)(pt 0 0))
(line (pt 0 0)(pt 0 0))
(line (pt 0 0)(pt 0 0))
(line (pt 0 0)(pt 0 0))
)
)