-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRELOGIO.bsf
More file actions
470 lines (470 loc) · 14.9 KB
/
RELOGIO.bsf
File metadata and controls
470 lines (470 loc) · 14.9 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
/*
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-2010 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.1"))
(symbol
(rect 16 16 152 976)
(text "RELOGIO" (rect 5 0 58 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 944 25 956)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "CLOCK" (rect 0 0 41 14)(font "Arial" (font_size 8)))
(text "CLOCK" (rect 21 27 62 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "SW14" (rect 0 0 34 14)(font "Arial" (font_size 8)))
(text "SW14" (rect 21 43 55 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "SW15" (rect 0 0 34 14)(font "Arial" (font_size 8)))
(text "SW15" (rect 21 59 55 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "SW16" (rect 0 0 34 14)(font "Arial" (font_size 8)))
(text "SW16" (rect 21 75 55 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "KEY2" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "KEY2" (rect 21 91 52 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "KEY3" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "KEY3" (rect 21 107 52 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "SW17" (rect 0 0 34 14)(font "Arial" (font_size 8)))
(text "SW17" (rect 21 123 55 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "HEX6[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX6[0]" (rect 71 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 1))
)
(port
(pt 136 48)
(output)
(text "HEX6[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX6[1]" (rect 71 43 115 57)(font "Arial" (font_size 8)))
(line (pt 136 48)(pt 120 48)(line_width 1))
)
(port
(pt 136 64)
(output)
(text "HEX6[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX6[2]" (rect 71 59 115 73)(font "Arial" (font_size 8)))
(line (pt 136 64)(pt 120 64)(line_width 1))
)
(port
(pt 136 80)
(output)
(text "HEX6[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX6[3]" (rect 71 75 115 89)(font "Arial" (font_size 8)))
(line (pt 136 80)(pt 120 80)(line_width 1))
)
(port
(pt 136 96)
(output)
(text "HEX6[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX6[4]" (rect 71 91 115 105)(font "Arial" (font_size 8)))
(line (pt 136 96)(pt 120 96)(line_width 1))
)
(port
(pt 136 112)
(output)
(text "HEX6[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX6[5]" (rect 71 107 115 121)(font "Arial" (font_size 8)))
(line (pt 136 112)(pt 120 112)(line_width 1))
)
(port
(pt 136 128)
(output)
(text "HEX6[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX6[6]" (rect 71 123 115 137)(font "Arial" (font_size 8)))
(line (pt 136 128)(pt 120 128)(line_width 1))
)
(port
(pt 136 144)
(output)
(text "HEX7[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX7[0]" (rect 71 139 115 153)(font "Arial" (font_size 8)))
(line (pt 136 144)(pt 120 144)(line_width 1))
)
(port
(pt 136 160)
(output)
(text "HEX7[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX7[1]" (rect 71 155 115 169)(font "Arial" (font_size 8)))
(line (pt 136 160)(pt 120 160)(line_width 1))
)
(port
(pt 136 176)
(output)
(text "HEX7[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX7[2]" (rect 71 171 115 185)(font "Arial" (font_size 8)))
(line (pt 136 176)(pt 120 176)(line_width 1))
)
(port
(pt 136 192)
(output)
(text "HEX7[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX7[3]" (rect 71 187 115 201)(font "Arial" (font_size 8)))
(line (pt 136 192)(pt 120 192)(line_width 1))
)
(port
(pt 136 208)
(output)
(text "HEX7[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX7[4]" (rect 71 203 115 217)(font "Arial" (font_size 8)))
(line (pt 136 208)(pt 120 208)(line_width 1))
)
(port
(pt 136 224)
(output)
(text "HEX7[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX7[5]" (rect 71 219 115 233)(font "Arial" (font_size 8)))
(line (pt 136 224)(pt 120 224)(line_width 1))
)
(port
(pt 136 240)
(output)
(text "HEX7[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX7[6]" (rect 71 235 115 249)(font "Arial" (font_size 8)))
(line (pt 136 240)(pt 120 240)(line_width 1))
)
(port
(pt 136 256)
(output)
(text "HEX4[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX4[0]" (rect 71 251 115 265)(font "Arial" (font_size 8)))
(line (pt 136 256)(pt 120 256)(line_width 1))
)
(port
(pt 136 272)
(output)
(text "HEX4[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX4[1]" (rect 71 267 115 281)(font "Arial" (font_size 8)))
(line (pt 136 272)(pt 120 272)(line_width 1))
)
(port
(pt 136 288)
(output)
(text "HEX4[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX4[2]" (rect 71 283 115 297)(font "Arial" (font_size 8)))
(line (pt 136 288)(pt 120 288)(line_width 1))
)
(port
(pt 136 304)
(output)
(text "HEX4[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX4[3]" (rect 71 299 115 313)(font "Arial" (font_size 8)))
(line (pt 136 304)(pt 120 304)(line_width 1))
)
(port
(pt 136 320)
(output)
(text "HEX4[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX4[4]" (rect 71 315 115 329)(font "Arial" (font_size 8)))
(line (pt 136 320)(pt 120 320)(line_width 1))
)
(port
(pt 136 336)
(output)
(text "HEX4[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX4[5]" (rect 71 331 115 345)(font "Arial" (font_size 8)))
(line (pt 136 336)(pt 120 336)(line_width 1))
)
(port
(pt 136 352)
(output)
(text "HEX4[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX4[6]" (rect 71 347 115 361)(font "Arial" (font_size 8)))
(line (pt 136 352)(pt 120 352)(line_width 1))
)
(port
(pt 136 368)
(output)
(text "HEX5[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX5[0]" (rect 71 363 115 377)(font "Arial" (font_size 8)))
(line (pt 136 368)(pt 120 368)(line_width 1))
)
(port
(pt 136 384)
(output)
(text "HEX5[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX5[1]" (rect 71 379 115 393)(font "Arial" (font_size 8)))
(line (pt 136 384)(pt 120 384)(line_width 1))
)
(port
(pt 136 400)
(output)
(text "HEX5[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX5[2]" (rect 71 395 115 409)(font "Arial" (font_size 8)))
(line (pt 136 400)(pt 120 400)(line_width 1))
)
(port
(pt 136 416)
(output)
(text "HEX5[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX5[3]" (rect 71 411 115 425)(font "Arial" (font_size 8)))
(line (pt 136 416)(pt 120 416)(line_width 1))
)
(port
(pt 136 432)
(output)
(text "HEX5[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX5[4]" (rect 71 427 115 441)(font "Arial" (font_size 8)))
(line (pt 136 432)(pt 120 432)(line_width 1))
)
(port
(pt 136 448)
(output)
(text "HEX5[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX5[5]" (rect 71 443 115 457)(font "Arial" (font_size 8)))
(line (pt 136 448)(pt 120 448)(line_width 1))
)
(port
(pt 136 464)
(output)
(text "HEX5[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX5[6]" (rect 71 459 115 473)(font "Arial" (font_size 8)))
(line (pt 136 464)(pt 120 464)(line_width 1))
)
(port
(pt 136 480)
(output)
(text "HEX3[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX3[0]" (rect 71 475 115 489)(font "Arial" (font_size 8)))
(line (pt 136 480)(pt 120 480)(line_width 1))
)
(port
(pt 136 496)
(output)
(text "HEX3[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX3[1]" (rect 71 491 115 505)(font "Arial" (font_size 8)))
(line (pt 136 496)(pt 120 496)(line_width 1))
)
(port
(pt 136 512)
(output)
(text "HEX3[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX3[2]" (rect 71 507 115 521)(font "Arial" (font_size 8)))
(line (pt 136 512)(pt 120 512)(line_width 1))
)
(port
(pt 136 528)
(output)
(text "HEX3[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX3[3]" (rect 71 523 115 537)(font "Arial" (font_size 8)))
(line (pt 136 528)(pt 120 528)(line_width 1))
)
(port
(pt 136 544)
(output)
(text "HEX3[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX3[4]" (rect 71 539 115 553)(font "Arial" (font_size 8)))
(line (pt 136 544)(pt 120 544)(line_width 1))
)
(port
(pt 136 560)
(output)
(text "HEX3[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX3[5]" (rect 71 555 115 569)(font "Arial" (font_size 8)))
(line (pt 136 560)(pt 120 560)(line_width 1))
)
(port
(pt 136 576)
(output)
(text "HEX3[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX3[6]" (rect 71 571 115 585)(font "Arial" (font_size 8)))
(line (pt 136 576)(pt 120 576)(line_width 1))
)
(port
(pt 136 592)
(output)
(text "HEX2[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX2[0]" (rect 71 587 115 601)(font "Arial" (font_size 8)))
(line (pt 136 592)(pt 120 592)(line_width 1))
)
(port
(pt 136 608)
(output)
(text "HEX2[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX2[1]" (rect 71 603 115 617)(font "Arial" (font_size 8)))
(line (pt 136 608)(pt 120 608)(line_width 1))
)
(port
(pt 136 624)
(output)
(text "HEX2[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX2[2]" (rect 71 619 115 633)(font "Arial" (font_size 8)))
(line (pt 136 624)(pt 120 624)(line_width 1))
)
(port
(pt 136 640)
(output)
(text "HEX2[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX2[3]" (rect 71 635 115 649)(font "Arial" (font_size 8)))
(line (pt 136 640)(pt 120 640)(line_width 1))
)
(port
(pt 136 656)
(output)
(text "HEX2[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX2[4]" (rect 71 651 115 665)(font "Arial" (font_size 8)))
(line (pt 136 656)(pt 120 656)(line_width 1))
)
(port
(pt 136 672)
(output)
(text "HEX2[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX2[5]" (rect 71 667 115 681)(font "Arial" (font_size 8)))
(line (pt 136 672)(pt 120 672)(line_width 1))
)
(port
(pt 136 688)
(output)
(text "HEX2[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX2[6]" (rect 71 683 115 697)(font "Arial" (font_size 8)))
(line (pt 136 688)(pt 120 688)(line_width 1))
)
(port
(pt 136 704)
(output)
(text "HEX1[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX1[0]" (rect 71 699 115 713)(font "Arial" (font_size 8)))
(line (pt 136 704)(pt 120 704)(line_width 1))
)
(port
(pt 136 720)
(output)
(text "HEX1[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX1[1]" (rect 71 715 115 729)(font "Arial" (font_size 8)))
(line (pt 136 720)(pt 120 720)(line_width 1))
)
(port
(pt 136 736)
(output)
(text "HEX1[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX1[2]" (rect 71 731 115 745)(font "Arial" (font_size 8)))
(line (pt 136 736)(pt 120 736)(line_width 1))
)
(port
(pt 136 752)
(output)
(text "HEX1[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX1[3]" (rect 71 747 115 761)(font "Arial" (font_size 8)))
(line (pt 136 752)(pt 120 752)(line_width 1))
)
(port
(pt 136 768)
(output)
(text "HEX1[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX1[4]" (rect 71 763 115 777)(font "Arial" (font_size 8)))
(line (pt 136 768)(pt 120 768)(line_width 1))
)
(port
(pt 136 784)
(output)
(text "HEX1[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX1[5]" (rect 71 779 115 793)(font "Arial" (font_size 8)))
(line (pt 136 784)(pt 120 784)(line_width 1))
)
(port
(pt 136 800)
(output)
(text "HEX1[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX1[6]" (rect 71 795 115 809)(font "Arial" (font_size 8)))
(line (pt 136 800)(pt 120 800)(line_width 1))
)
(port
(pt 136 816)
(output)
(text "HEX0[0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX0[0]" (rect 71 811 115 825)(font "Arial" (font_size 8)))
(line (pt 136 816)(pt 120 816)(line_width 1))
)
(port
(pt 136 832)
(output)
(text "HEX0[1]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX0[1]" (rect 71 827 115 841)(font "Arial" (font_size 8)))
(line (pt 136 832)(pt 120 832)(line_width 1))
)
(port
(pt 136 848)
(output)
(text "HEX0[2]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX0[2]" (rect 71 843 115 857)(font "Arial" (font_size 8)))
(line (pt 136 848)(pt 120 848)(line_width 1))
)
(port
(pt 136 864)
(output)
(text "HEX0[3]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX0[3]" (rect 71 859 115 873)(font "Arial" (font_size 8)))
(line (pt 136 864)(pt 120 864)(line_width 1))
)
(port
(pt 136 880)
(output)
(text "HEX0[4]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX0[4]" (rect 71 875 115 889)(font "Arial" (font_size 8)))
(line (pt 136 880)(pt 120 880)(line_width 1))
)
(port
(pt 136 896)
(output)
(text "HEX0[5]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX0[5]" (rect 71 891 115 905)(font "Arial" (font_size 8)))
(line (pt 136 896)(pt 120 896)(line_width 1))
)
(port
(pt 136 912)
(output)
(text "HEX0[6]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
(text "HEX0[6]" (rect 71 907 115 921)(font "Arial" (font_size 8)))
(line (pt 136 912)(pt 120 912)(line_width 1))
)
(drawing
(rectangle (rect 16 16 120 944)(line_width 1))
)
)