1 |
2 |
madsilicon |
/*
|
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-2009 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 |
|
|
//#pragma file_not_in_maxplusii_format
|
22 |
|
|
(header "graphic" (version "1.3"))
|
23 |
|
|
(pin
|
24 |
|
|
(input)
|
25 |
|
|
(rect 24 192 192 208)
|
26 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
27 |
|
|
(text "50MHZ" (rect 5 0 40 12)(font "Arial" ))
|
28 |
|
|
(pt 168 8)
|
29 |
|
|
(drawing
|
30 |
|
|
(line (pt 92 12)(pt 117 12)(line_width 1))
|
31 |
|
|
(line (pt 92 4)(pt 117 4)(line_width 1))
|
32 |
|
|
(line (pt 121 8)(pt 168 8)(line_width 1))
|
33 |
|
|
(line (pt 92 12)(pt 92 4)(line_width 1))
|
34 |
|
|
(line (pt 117 4)(pt 121 8)(line_width 1))
|
35 |
|
|
(line (pt 117 12)(pt 121 8)(line_width 1))
|
36 |
|
|
)
|
37 |
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
38 |
|
|
(annotation_block (location)(rect -24 208 24 224))
|
39 |
|
|
)
|
40 |
|
|
(pin
|
41 |
|
|
(input)
|
42 |
|
|
(rect 24 256 192 272)
|
43 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
44 |
|
|
(text "CPU_RESET_N" (rect 5 0 84 12)(font "Arial" ))
|
45 |
|
|
(pt 168 8)
|
46 |
|
|
(drawing
|
47 |
|
|
(line (pt 92 12)(pt 117 12)(line_width 1))
|
48 |
|
|
(line (pt 92 4)(pt 117 4)(line_width 1))
|
49 |
|
|
(line (pt 121 8)(pt 168 8)(line_width 1))
|
50 |
|
|
(line (pt 92 12)(pt 92 4)(line_width 1))
|
51 |
|
|
(line (pt 117 4)(pt 121 8)(line_width 1))
|
52 |
|
|
(line (pt 117 12)(pt 121 8)(line_width 1))
|
53 |
|
|
)
|
54 |
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
55 |
|
|
(annotation_block (location)(rect -24 272 24 288))
|
56 |
|
|
)
|
57 |
|
|
(pin
|
58 |
|
|
(output)
|
59 |
|
|
(rect 544 256 720 272)
|
60 |
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
61 |
|
|
(text "LED1" (rect 90 0 117 12)(font "Arial" ))
|
62 |
|
|
(pt 0 8)
|
63 |
|
|
(drawing
|
64 |
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
65 |
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
66 |
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
67 |
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
68 |
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
69 |
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
70 |
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
71 |
|
|
)
|
72 |
|
|
(annotation_block (location)(rect 720 272 776 288))
|
73 |
|
|
)
|
74 |
|
|
(pin
|
75 |
|
|
(output)
|
76 |
|
|
(rect 544 192 720 208)
|
77 |
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
78 |
|
|
(text "LED0" (rect 90 0 117 12)(font "Arial" ))
|
79 |
|
|
(pt 0 8)
|
80 |
|
|
(drawing
|
81 |
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
82 |
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
83 |
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
84 |
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
85 |
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
86 |
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
87 |
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
88 |
|
|
)
|
89 |
|
|
(annotation_block (location)(rect 720 208 776 224))
|
90 |
|
|
)
|
91 |
|
|
(pin
|
92 |
|
|
(output)
|
93 |
|
|
(rect 544 336 720 352)
|
94 |
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
95 |
|
|
(text "LED2" (rect 90 0 117 12)(font "Arial" ))
|
96 |
|
|
(pt 0 8)
|
97 |
|
|
(drawing
|
98 |
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
99 |
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
100 |
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
101 |
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
102 |
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
103 |
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
104 |
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
105 |
|
|
)
|
106 |
|
|
(annotation_block (location)(rect 720 352 776 368))
|
107 |
|
|
)
|
108 |
|
|
(pin
|
109 |
|
|
(output)
|
110 |
|
|
(rect 544 384 720 400)
|
111 |
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
112 |
|
|
(text "LED3" (rect 90 0 117 12)(font "Arial" ))
|
113 |
|
|
(pt 0 8)
|
114 |
|
|
(drawing
|
115 |
|
|
(line (pt 0 8)(pt 52 8)(line_width 1))
|
116 |
|
|
(line (pt 52 4)(pt 78 4)(line_width 1))
|
117 |
|
|
(line (pt 52 12)(pt 78 12)(line_width 1))
|
118 |
|
|
(line (pt 52 12)(pt 52 4)(line_width 1))
|
119 |
|
|
(line (pt 78 4)(pt 82 8)(line_width 1))
|
120 |
|
|
(line (pt 82 8)(pt 78 12)(line_width 1))
|
121 |
|
|
(line (pt 78 12)(pt 82 8)(line_width 1))
|
122 |
|
|
)
|
123 |
|
|
(annotation_block (location)(rect 720 400 768 416))
|
124 |
|
|
)
|
125 |
|
|
(symbol
|
126 |
|
|
(rect 472 184 520 216)
|
127 |
|
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
128 |
|
|
(text "inst4" (rect 3 21 26 33)(font "Arial" ))
|
129 |
|
|
(port
|
130 |
|
|
(pt 0 16)
|
131 |
|
|
(input)
|
132 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
133 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
134 |
|
|
(line (pt 0 16)(pt 13 16)(line_width 1))
|
135 |
|
|
)
|
136 |
|
|
(port
|
137 |
|
|
(pt 48 16)
|
138 |
|
|
(output)
|
139 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
140 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
141 |
|
|
(line (pt 39 16)(pt 48 16)(line_width 1))
|
142 |
|
|
)
|
143 |
|
|
(drawing
|
144 |
|
|
(line (pt 13 25)(pt 13 7)(line_width 1))
|
145 |
|
|
(line (pt 13 7)(pt 31 16)(line_width 1))
|
146 |
|
|
(line (pt 13 25)(pt 31 16)(line_width 1))
|
147 |
|
|
(circle (rect 31 12 39 20)(line_width 1))
|
148 |
|
|
)
|
149 |
|
|
)
|
150 |
|
|
(symbol
|
151 |
|
|
(rect 472 248 520 280)
|
152 |
|
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
153 |
|
|
(text "inst5" (rect 3 21 26 33)(font "Arial" ))
|
154 |
|
|
(port
|
155 |
|
|
(pt 0 16)
|
156 |
|
|
(input)
|
157 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
158 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
159 |
|
|
(line (pt 0 16)(pt 13 16)(line_width 1))
|
160 |
|
|
)
|
161 |
|
|
(port
|
162 |
|
|
(pt 48 16)
|
163 |
|
|
(output)
|
164 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
165 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
166 |
|
|
(line (pt 39 16)(pt 48 16)(line_width 1))
|
167 |
|
|
)
|
168 |
|
|
(drawing
|
169 |
|
|
(line (pt 13 25)(pt 13 7)(line_width 1))
|
170 |
|
|
(line (pt 13 7)(pt 31 16)(line_width 1))
|
171 |
|
|
(line (pt 13 25)(pt 31 16)(line_width 1))
|
172 |
|
|
(circle (rect 31 12 39 20)(line_width 1))
|
173 |
|
|
)
|
174 |
|
|
)
|
175 |
|
|
(symbol
|
176 |
|
|
(rect 304 192 432 288)
|
177 |
|
|
(text "G729A_CODEC_SELFTEST" (rect 5 0 143 12)(font "Arial" ))
|
178 |
|
|
(text "codec" (rect 8 80 37 92)(font "Arial" ))
|
179 |
|
|
(port
|
180 |
|
|
(pt 0 32)
|
181 |
|
|
(input)
|
182 |
|
|
(text "CLK_i" (rect 0 0 29 12)(font "Arial" ))
|
183 |
|
|
(text "CLK_i" (rect 21 27 50 39)(font "Arial" ))
|
184 |
|
|
(line (pt 0 32)(pt 16 32)(line_width 1))
|
185 |
|
|
)
|
186 |
|
|
(port
|
187 |
|
|
(pt 0 48)
|
188 |
|
|
(input)
|
189 |
|
|
(text "RST_i" (rect 0 0 29 12)(font "Arial" ))
|
190 |
|
|
(text "RST_i" (rect 21 43 50 55)(font "Arial" ))
|
191 |
|
|
(line (pt 0 48)(pt 16 48)(line_width 1))
|
192 |
|
|
)
|
193 |
|
|
(port
|
194 |
|
|
(pt 128 32)
|
195 |
|
|
(output)
|
196 |
|
|
(text "DONE_o" (rect 0 0 43 12)(font "Arial" ))
|
197 |
|
|
(text "DONE_o" (rect 64 27 107 39)(font "Arial" ))
|
198 |
|
|
(line (pt 128 32)(pt 112 32)(line_width 1))
|
199 |
|
|
)
|
200 |
|
|
(port
|
201 |
|
|
(pt 128 48)
|
202 |
|
|
(output)
|
203 |
|
|
(text "PASS_o" (rect 0 0 40 12)(font "Arial" ))
|
204 |
|
|
(text "PASS_o" (rect 67 43 107 55)(font "Arial" ))
|
205 |
|
|
(line (pt 128 48)(pt 112 48)(line_width 1))
|
206 |
|
|
)
|
207 |
|
|
(drawing
|
208 |
|
|
(rectangle (rect 16 16 112 80)(line_width 1))
|
209 |
|
|
)
|
210 |
|
|
)
|
211 |
|
|
(symbol
|
212 |
|
|
(rect 400 320 432 336)
|
213 |
|
|
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
|
214 |
|
|
(text "inst" (rect 3 5 20 17)(font "Arial" )(invisible))
|
215 |
|
|
(port
|
216 |
|
|
(pt 16 16)
|
217 |
|
|
(output)
|
218 |
|
|
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
|
219 |
|
|
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
|
220 |
|
|
(line (pt 16 16)(pt 16 8)(line_width 1))
|
221 |
|
|
)
|
222 |
|
|
(drawing
|
223 |
|
|
(line (pt 8 8)(pt 24 8)(line_width 1))
|
224 |
|
|
)
|
225 |
|
|
)
|
226 |
|
|
(symbol
|
227 |
|
|
(rect 400 400 432 432)
|
228 |
|
|
(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
|
229 |
|
|
(text "inst2" (rect 3 21 26 33)(font "Arial" )(invisible))
|
230 |
|
|
(port
|
231 |
|
|
(pt 16 0)
|
232 |
|
|
(output)
|
233 |
|
|
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
|
234 |
|
|
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
|
235 |
|
|
(line (pt 16 8)(pt 16 0)(line_width 1))
|
236 |
|
|
)
|
237 |
|
|
(drawing
|
238 |
|
|
(line (pt 8 8)(pt 16 16)(line_width 1))
|
239 |
|
|
(line (pt 16 16)(pt 24 8)(line_width 1))
|
240 |
|
|
(line (pt 8 8)(pt 24 8)(line_width 1))
|
241 |
|
|
)
|
242 |
|
|
)
|
243 |
|
|
(symbol
|
244 |
|
|
(rect 216 248 264 280)
|
245 |
|
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
246 |
|
|
(text "inst1" (rect 3 21 26 33)(font "Arial" ))
|
247 |
|
|
(port
|
248 |
|
|
(pt 0 16)
|
249 |
|
|
(input)
|
250 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
251 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
252 |
|
|
(line (pt 0 16)(pt 13 16)(line_width 1))
|
253 |
|
|
)
|
254 |
|
|
(port
|
255 |
|
|
(pt 48 16)
|
256 |
|
|
(output)
|
257 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
258 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
259 |
|
|
(line (pt 39 16)(pt 48 16)(line_width 1))
|
260 |
|
|
)
|
261 |
|
|
(drawing
|
262 |
|
|
(line (pt 13 25)(pt 13 7)(line_width 1))
|
263 |
|
|
(line (pt 13 7)(pt 31 16)(line_width 1))
|
264 |
|
|
(line (pt 13 25)(pt 31 16)(line_width 1))
|
265 |
|
|
(circle (rect 31 12 39 20)(line_width 1))
|
266 |
|
|
)
|
267 |
|
|
)
|
268 |
|
|
(connector
|
269 |
|
|
(pt 432 224)
|
270 |
|
|
(pt 456 224)
|
271 |
|
|
)
|
272 |
|
|
(connector
|
273 |
|
|
(pt 456 224)
|
274 |
|
|
(pt 456 200)
|
275 |
|
|
)
|
276 |
|
|
(connector
|
277 |
|
|
(pt 456 200)
|
278 |
|
|
(pt 472 200)
|
279 |
|
|
)
|
280 |
|
|
(connector
|
281 |
|
|
(pt 432 240)
|
282 |
|
|
(pt 456 240)
|
283 |
|
|
)
|
284 |
|
|
(connector
|
285 |
|
|
(pt 456 240)
|
286 |
|
|
(pt 456 264)
|
287 |
|
|
)
|
288 |
|
|
(connector
|
289 |
|
|
(pt 456 264)
|
290 |
|
|
(pt 472 264)
|
291 |
|
|
)
|
292 |
|
|
(connector
|
293 |
|
|
(pt 520 200)
|
294 |
|
|
(pt 544 200)
|
295 |
|
|
)
|
296 |
|
|
(connector
|
297 |
|
|
(pt 520 264)
|
298 |
|
|
(pt 544 264)
|
299 |
|
|
)
|
300 |
|
|
(connector
|
301 |
|
|
(pt 416 336)
|
302 |
|
|
(pt 416 344)
|
303 |
|
|
)
|
304 |
|
|
(connector
|
305 |
|
|
(pt 416 344)
|
306 |
|
|
(pt 544 344)
|
307 |
|
|
)
|
308 |
|
|
(connector
|
309 |
|
|
(pt 416 400)
|
310 |
|
|
(pt 416 392)
|
311 |
|
|
)
|
312 |
|
|
(connector
|
313 |
|
|
(pt 416 392)
|
314 |
|
|
(pt 544 392)
|
315 |
|
|
)
|
316 |
|
|
(connector
|
317 |
|
|
(pt 280 224)
|
318 |
|
|
(pt 280 200)
|
319 |
|
|
)
|
320 |
|
|
(connector
|
321 |
|
|
(pt 304 224)
|
322 |
|
|
(pt 280 224)
|
323 |
|
|
)
|
324 |
|
|
(connector
|
325 |
|
|
(pt 192 200)
|
326 |
|
|
(pt 280 200)
|
327 |
|
|
)
|
328 |
|
|
(connector
|
329 |
|
|
(pt 264 264)
|
330 |
|
|
(pt 280 264)
|
331 |
|
|
)
|
332 |
|
|
(connector
|
333 |
|
|
(pt 280 264)
|
334 |
|
|
(pt 280 240)
|
335 |
|
|
)
|
336 |
|
|
(connector
|
337 |
|
|
(pt 280 240)
|
338 |
|
|
(pt 304 240)
|
339 |
|
|
)
|
340 |
|
|
(connector
|
341 |
|
|
(pt 192 264)
|
342 |
|
|
(pt 216 264)
|
343 |
|
|
)
|
344 |
|
|
(text "Logic '0' causes the LED's to illuminate" (rect 464 136 681 150)(font "Arial" (font_size 8)))
|