1 |
3 |
gdevic |
/*
|
2 |
|
|
WARNING: Do NOT edit the input and output ports in this file in a text
|
3 |
|
|
editor if you plan to continue editing the block that represents it in
|
4 |
|
|
the Block Editor! File corruption is VERY likely to occur.
|
5 |
|
|
*/
|
6 |
|
|
/*
|
7 |
|
|
Copyright (C) 1991-2013 Altera Corporation
|
8 |
|
|
Your use of Altera Corporation's design tools, logic functions
|
9 |
|
|
and other software and tools, and its AMPP partner logic
|
10 |
|
|
functions, and any output files from any of the foregoing
|
11 |
|
|
(including device programming or simulation files), and any
|
12 |
|
|
associated documentation or information are expressly subject
|
13 |
|
|
to the terms and conditions of the Altera Program License
|
14 |
|
|
Subscription Agreement, Altera MegaCore Function License
|
15 |
|
|
Agreement, or other applicable license agreement, including,
|
16 |
|
|
without limitation, that your use is for the sole purpose of
|
17 |
|
|
programming logic devices manufactured by Altera and sold by
|
18 |
|
|
Altera or its authorized distributors. Please refer to the
|
19 |
|
|
applicable agreement for further details.
|
20 |
|
|
*/
|
21 |
|
|
(header "graphic" (version "1.4"))
|
22 |
|
|
(pin
|
23 |
|
|
(input)
|
24 |
|
|
(rect 32 104 208 120)
|
25 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
26 |
|
|
(text "sel1" (rect 9 0 29 12)(font "Arial" ))
|
27 |
|
|
(pt 176 8)
|
28 |
|
|
(drawing
|
29 |
|
|
(line (pt 92 12)(pt 117 12))
|
30 |
|
|
(line (pt 92 4)(pt 117 4))
|
31 |
|
|
(line (pt 121 8)(pt 176 8))
|
32 |
|
|
(line (pt 92 12)(pt 92 4))
|
33 |
|
|
(line (pt 117 4)(pt 121 8))
|
34 |
|
|
(line (pt 117 12)(pt 121 8))
|
35 |
|
|
)
|
36 |
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
37 |
|
|
)
|
38 |
|
|
(pin
|
39 |
|
|
(input)
|
40 |
|
|
(rect 32 88 208 104)
|
41 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
42 |
|
|
(text "in1" (rect 9 0 23 12)(font "Arial" ))
|
43 |
|
|
(pt 176 8)
|
44 |
|
|
(drawing
|
45 |
|
|
(line (pt 92 12)(pt 117 12))
|
46 |
|
|
(line (pt 92 4)(pt 117 4))
|
47 |
|
|
(line (pt 121 8)(pt 176 8))
|
48 |
|
|
(line (pt 92 12)(pt 92 4))
|
49 |
|
|
(line (pt 117 4)(pt 121 8))
|
50 |
|
|
(line (pt 117 12)(pt 121 8))
|
51 |
|
|
)
|
52 |
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
53 |
|
|
)
|
54 |
|
|
(pin
|
55 |
|
|
(input)
|
56 |
|
|
(rect 32 40 208 56)
|
57 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
58 |
|
|
(text "in0" (rect 9 0 23 12)(font "Arial" ))
|
59 |
|
|
(pt 176 8)
|
60 |
|
|
(drawing
|
61 |
|
|
(line (pt 92 12)(pt 117 12))
|
62 |
|
|
(line (pt 92 4)(pt 117 4))
|
63 |
|
|
(line (pt 121 8)(pt 176 8))
|
64 |
|
|
(line (pt 92 12)(pt 92 4))
|
65 |
|
|
(line (pt 117 4)(pt 121 8))
|
66 |
|
|
(line (pt 117 12)(pt 121 8))
|
67 |
|
|
)
|
68 |
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
69 |
|
|
)
|
70 |
|
|
(pin
|
71 |
|
|
(output)
|
72 |
|
|
(rect 480 72 656 88)
|
73 |
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
74 |
|
|
(text "out" (rect 90 0 105 12)(font "Arial" ))
|
75 |
|
|
(pt 0 8)
|
76 |
|
|
(drawing
|
77 |
|
|
(line (pt 0 8)(pt 52 8))
|
78 |
|
|
(line (pt 52 4)(pt 78 4))
|
79 |
|
|
(line (pt 52 12)(pt 78 12))
|
80 |
|
|
(line (pt 52 12)(pt 52 4))
|
81 |
|
|
(line (pt 78 4)(pt 82 8))
|
82 |
|
|
(line (pt 82 8)(pt 78 12))
|
83 |
|
|
(line (pt 78 12)(pt 82 8))
|
84 |
|
|
)
|
85 |
|
|
)
|
86 |
|
|
(symbol
|
87 |
|
|
(rect 248 48 296 80)
|
88 |
|
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
89 |
|
|
(text "inst3" (rect 3 21 26 33)(font "Arial" ))
|
90 |
|
|
(port
|
91 |
|
|
(pt 0 16)
|
92 |
|
|
(input)
|
93 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
94 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
95 |
|
|
(line (pt 0 16)(pt 13 16))
|
96 |
|
|
)
|
97 |
|
|
(port
|
98 |
|
|
(pt 48 16)
|
99 |
|
|
(output)
|
100 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
101 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
102 |
|
|
(line (pt 39 16)(pt 48 16))
|
103 |
|
|
)
|
104 |
|
|
(drawing
|
105 |
|
|
(line (pt 13 25)(pt 13 7))
|
106 |
|
|
(line (pt 13 7)(pt 31 16))
|
107 |
|
|
(line (pt 13 25)(pt 31 16))
|
108 |
|
|
(circle (rect 31 12 39 20))
|
109 |
|
|
)
|
110 |
|
|
)
|
111 |
|
|
(symbol
|
112 |
|
|
(rect 320 32 384 80)
|
113 |
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
114 |
|
|
(text "inst0" (rect 3 37 26 49)(font "Arial" ))
|
115 |
|
|
(port
|
116 |
|
|
(pt 0 16)
|
117 |
|
|
(input)
|
118 |
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
119 |
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
120 |
|
|
(line (pt 0 16)(pt 14 16))
|
121 |
|
|
)
|
122 |
|
|
(port
|
123 |
|
|
(pt 0 32)
|
124 |
|
|
(input)
|
125 |
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
126 |
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
127 |
|
|
(line (pt 0 32)(pt 14 32))
|
128 |
|
|
)
|
129 |
|
|
(port
|
130 |
|
|
(pt 64 24)
|
131 |
|
|
(output)
|
132 |
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
133 |
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
134 |
|
|
(line (pt 42 24)(pt 64 24))
|
135 |
|
|
)
|
136 |
|
|
(drawing
|
137 |
|
|
(line (pt 14 12)(pt 30 12))
|
138 |
|
|
(line (pt 14 37)(pt 31 37))
|
139 |
|
|
(line (pt 14 12)(pt 14 37))
|
140 |
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
141 |
|
|
)
|
142 |
|
|
)
|
143 |
|
|
(symbol
|
144 |
|
|
(rect 320 80 384 128)
|
145 |
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
146 |
|
|
(text "inst1" (rect 3 37 26 49)(font "Arial" ))
|
147 |
|
|
(port
|
148 |
|
|
(pt 0 16)
|
149 |
|
|
(input)
|
150 |
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
151 |
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
152 |
|
|
(line (pt 0 16)(pt 14 16))
|
153 |
|
|
)
|
154 |
|
|
(port
|
155 |
|
|
(pt 0 32)
|
156 |
|
|
(input)
|
157 |
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
158 |
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
159 |
|
|
(line (pt 0 32)(pt 14 32))
|
160 |
|
|
)
|
161 |
|
|
(port
|
162 |
|
|
(pt 64 24)
|
163 |
|
|
(output)
|
164 |
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
165 |
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
166 |
|
|
(line (pt 42 24)(pt 64 24))
|
167 |
|
|
)
|
168 |
|
|
(drawing
|
169 |
|
|
(line (pt 14 12)(pt 30 12))
|
170 |
|
|
(line (pt 14 37)(pt 31 37))
|
171 |
|
|
(line (pt 14 12)(pt 14 37))
|
172 |
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
173 |
|
|
)
|
174 |
|
|
)
|
175 |
|
|
(symbol
|
176 |
|
|
(rect 400 56 464 104)
|
177 |
|
|
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
|
178 |
|
|
(text "inst2" (rect 3 37 26 49)(font "Arial" ))
|
179 |
|
|
(port
|
180 |
|
|
(pt 0 32)
|
181 |
|
|
(input)
|
182 |
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
183 |
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
184 |
|
|
(line (pt 0 32)(pt 15 32))
|
185 |
|
|
)
|
186 |
|
|
(port
|
187 |
|
|
(pt 0 16)
|
188 |
|
|
(input)
|
189 |
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
190 |
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
191 |
|
|
(line (pt 0 16)(pt 15 16))
|
192 |
|
|
)
|
193 |
|
|
(port
|
194 |
|
|
(pt 64 24)
|
195 |
|
|
(output)
|
196 |
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
197 |
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
198 |
|
|
(line (pt 48 24)(pt 64 24))
|
199 |
|
|
)
|
200 |
|
|
(drawing
|
201 |
|
|
(line (pt 14 36)(pt 25 36))
|
202 |
|
|
(line (pt 14 13)(pt 25 13))
|
203 |
|
|
(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41))
|
204 |
|
|
(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76))
|
205 |
|
|
(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36))
|
206 |
|
|
)
|
207 |
|
|
)
|
208 |
|
|
(connector
|
209 |
|
|
(pt 248 64)
|
210 |
|
|
(pt 232 64)
|
211 |
|
|
)
|
212 |
|
|
(connector
|
213 |
|
|
(pt 400 72)
|
214 |
|
|
(pt 392 72)
|
215 |
|
|
)
|
216 |
|
|
(connector
|
217 |
|
|
(pt 400 88)
|
218 |
|
|
(pt 392 88)
|
219 |
|
|
)
|
220 |
|
|
(connector
|
221 |
|
|
(pt 392 88)
|
222 |
|
|
(pt 392 104)
|
223 |
|
|
)
|
224 |
|
|
(connector
|
225 |
|
|
(pt 392 104)
|
226 |
|
|
(pt 384 104)
|
227 |
|
|
)
|
228 |
|
|
(connector
|
229 |
|
|
(pt 392 56)
|
230 |
|
|
(pt 384 56)
|
231 |
|
|
)
|
232 |
|
|
(connector
|
233 |
|
|
(pt 392 56)
|
234 |
|
|
(pt 392 72)
|
235 |
|
|
)
|
236 |
|
|
(connector
|
237 |
|
|
(pt 232 64)
|
238 |
|
|
(pt 232 112)
|
239 |
|
|
)
|
240 |
|
|
(connector
|
241 |
|
|
(pt 232 112)
|
242 |
|
|
(pt 320 112)
|
243 |
|
|
)
|
244 |
|
|
(connector
|
245 |
|
|
(pt 296 64)
|
246 |
|
|
(pt 320 64)
|
247 |
|
|
)
|
248 |
|
|
(connector
|
249 |
|
|
(pt 464 80)
|
250 |
|
|
(pt 480 80)
|
251 |
|
|
)
|
252 |
|
|
(connector
|
253 |
|
|
(pt 208 112)
|
254 |
|
|
(pt 232 112)
|
255 |
|
|
)
|
256 |
|
|
(connector
|
257 |
|
|
(pt 208 96)
|
258 |
|
|
(pt 320 96)
|
259 |
|
|
)
|
260 |
|
|
(connector
|
261 |
|
|
(pt 208 48)
|
262 |
|
|
(pt 320 48)
|
263 |
|
|
)
|
264 |
|
|
(junction (pt 232 112))
|
265 |
|
|
(title_block
|
266 |
|
|
(rect 32 168 289 220)
|
267 |
|
|
(name "title-custom-small")
|
268 |
|
|
(section (rect 0 35 256 51)(text "DATE" (rect 2 0 30 12)(font "Arial" ))(text "June 21, 2014" (rect 56 3 136 17)(font "Arial" (font_size 8)))(border))
|
269 |
|
|
(section (rect 0 18 256 34)(text "DESIGNER" (rect 2 0 59 12)(font "Arial" ))(text "Goran Devic" (rect 56 2 135 17)(font "Arial" (font_size 9)))(border))
|
270 |
|
|
(section (rect 104 0 256 17)(text "MODULE" (rect 2 1 48 13)(font "Arial" ))(text "alu_mux_2" (rect 43 2 117 17)(font "Arial" (font_size 9)(bold)))(border))
|
271 |
|
|
(section (rect 0 0 256 17)(text "PROJECT" (rect 2 0 52 12)(font "Arial" ))(text "A-Z80" (rect 56 2 94 17)(font "Arial" (font_size 9)(bold)))(border))
|
272 |
|
|
(section (rect 192 35 256 51)(text "REV" (rect 2 1 25 13)(font "Arial" ))(text "1.0" (rect 43 3 60 17)(font "Arial" (font_size 8)))(border))
|
273 |
|
|
(drawing
|
274 |
|
|
)
|
275 |
|
|
)
|