-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOPTICAL_ENCODER.bdf
More file actions
730 lines (730 loc) · 20.8 KB
/
OPTICAL_ENCODER.bdf
File metadata and controls
730 lines (730 loc) · 20.8 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
/*
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 "graphic" (version "1.3"))
(pin
(input)
(rect -528 288 -360 304)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A" (rect 9 0 16 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -528 304 -360 320)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B" (rect 9 0 16 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -528 336 -360 352)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "RESETN" (rect 9 0 52 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -528 352 -360 368)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "INT_10HZ" (rect 9 0 59 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -624 888 -456 904)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "NIO_WRITE" (rect 9 0 70 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -624 856 -456 872)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "ACC_EN" (rect 9 0 53 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -624 760 -456 776)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "VEL_EN" (rect 9 0 50 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -624 624 -456 640)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "POS_DIV_EN" (rect 9 0 77 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -528 272 -360 288)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "REVERSE" (rect 9 0 60 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -528 320 -360 336)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "READ_CLK" (rect 9 0 66 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect -72 272 104 288)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "POS[31..0]" (rect 90 0 144 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect -72 288 104 304)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "VEL[31..0]" (rect 90 0 141 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect -72 304 104 320)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ACC[31..0]" (rect 90 0 145 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(bidir)
(rect 0 520 176 536)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "IO_DATA[15..0]" (rect 90 0 167 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 56 4)(pt 78 4)(line_width 1))
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 56 12)(pt 78 12)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
(line (pt 56 4)(pt 52 8)(line_width 1))
(line (pt 52 8)(pt 56 12)(line_width 1))
)
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
)
(symbol
(rect -392 736 -328 784)
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst80" (rect 3 37 32 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 12)(pt 30 12)(line_width 1))
(line (pt 14 37)(pt 31 37)(line_width 1))
(line (pt 14 12)(pt 14 37)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(symbol
(rect -392 832 -328 880)
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst82" (rect 3 37 32 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 12)(pt 30 12)(line_width 1))
(line (pt 14 37)(pt 31 37)(line_width 1))
(line (pt 14 12)(pt 14 37)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(symbol
(rect -392 600 -328 648)
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst24" (rect 3 37 32 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 12)(pt 30 12)(line_width 1))
(line (pt 14 37)(pt 31 37)(line_width 1))
(line (pt 14 12)(pt 14 37)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(symbol
(rect -336 248 -96 408)
(text "POSN_VEL" (rect 5 0 68 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 144 25 156)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "REVERSE" (rect 0 0 55 14)(font "Arial" (font_size 8)))
(text "REVERSE" (rect 21 27 76 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "A" (rect 0 0 9 14)(font "Arial" (font_size 8)))
(text "A" (rect 21 43 30 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "B" (rect 0 0 8 14)(font "Arial" (font_size 8)))
(text "B" (rect 21 59 29 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "CLK" (rect 0 0 23 14)(font "Arial" (font_size 8)))
(text "CLK" (rect 21 75 44 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "RESETN" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "RESETN" (rect 21 91 67 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "CLK2" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "CLK2" (rect 21 107 51 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "Vel_CLK_PERIOD[4..0]" (rect 0 0 127 14)(font "Arial" (font_size 8)))
(text "Vel_CLK_PERIOD[4..0]" (rect 21 123 148 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 240 32)
(output)
(text "POS[31..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
(text "POS[31..0]" (rect 159 27 219 41)(font "Arial" (font_size 8)))
(line (pt 240 32)(pt 224 32)(line_width 3))
)
(port
(pt 240 48)
(output)
(text "VEL[31..0]" (rect 0 0 59 14)(font "Arial" (font_size 8)))
(text "VEL[31..0]" (rect 160 43 219 57)(font "Arial" (font_size 8)))
(line (pt 240 48)(pt 224 48)(line_width 3))
)
(port
(pt 240 64)
(output)
(text "ACC[31..0]" (rect 0 0 61 14)(font "Arial" (font_size 8)))
(text "ACC[31..0]" (rect 158 59 219 73)(font "Arial" (font_size 8)))
(line (pt 240 64)(pt 224 64)(line_width 3))
)
(drawing
(rectangle (rect 16 16 224 144)(line_width 1))
)
)
(symbol
(rect -144 568 -48 608)
(text "lpm_bustri_oe0" (rect 4 1 107 17)(font "Arial" (font_size 10)))
(text "inst4" (rect 8 24 31 36)(font "Arial" ))
(port
(pt 40 40)
(input)
(text "enabledt" (rect 0 0 48 14)(font "Arial" (font_size 8)))
(text "enabledt" (rect 40 -6 88 8)(font "Arial" (font_size 8))(invisible))
(line (pt 40 40)(pt 40 28)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "data[15..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
(text "data[15..0]" (rect -3 -27 57 -13)(font "Arial" (font_size 8))(invisible))
(line (pt 0 24)(pt 32 24)(line_width 3))
)
(port
(pt 96 24)
(bidir)
(text "tridata[15..0]" (rect 0 0 70 14)(font "Arial" (font_size 8)))
(text "tridata[15..0]" (rect 100 -36 170 -22)(font "Arial" (font_size 8))(invisible))
(line (pt 96 24)(pt 48 24)(line_width 3))
)
(drawing
(text "16" (rect 69 25 80 37)(font "Arial" ))
(text "16" (rect 13 25 24 37)(font "Arial" ))
(line (pt 32 16)(pt 48 24)(line_width 1))
(line (pt 48 24)(pt 32 32)(line_width 1))
(line (pt 32 32)(pt 32 16)(line_width 1))
(line (pt 64 28)(pt 72 20)(line_width 1))
(line (pt 8 28)(pt 16 20)(line_width 1))
)
)
(symbol
(rect -136 688 -40 728)
(text "lpm_bustri_oe0" (rect 4 1 107 17)(font "Arial" (font_size 10)))
(text "inst6" (rect 8 24 31 36)(font "Arial" ))
(port
(pt 40 40)
(input)
(text "enabledt" (rect 0 0 48 14)(font "Arial" (font_size 8)))
(text "enabledt" (rect 40 -6 88 8)(font "Arial" (font_size 8))(invisible))
(line (pt 40 40)(pt 40 28)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "data[15..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
(text "data[15..0]" (rect -3 -27 57 -13)(font "Arial" (font_size 8))(invisible))
(line (pt 0 24)(pt 32 24)(line_width 3))
)
(port
(pt 96 24)
(bidir)
(text "tridata[15..0]" (rect 0 0 70 14)(font "Arial" (font_size 8)))
(text "tridata[15..0]" (rect 100 -36 170 -22)(font "Arial" (font_size 8))(invisible))
(line (pt 96 24)(pt 48 24)(line_width 3))
)
(drawing
(text "16" (rect 69 25 80 37)(font "Arial" ))
(text "16" (rect 13 25 24 37)(font "Arial" ))
(line (pt 32 16)(pt 48 24)(line_width 1))
(line (pt 48 24)(pt 32 32)(line_width 1))
(line (pt 32 32)(pt 32 16)(line_width 1))
(line (pt 64 28)(pt 72 20)(line_width 1))
(line (pt 8 28)(pt 16 20)(line_width 1))
)
)
(symbol
(rect -136 800 -40 840)
(text "lpm_bustri_oe0" (rect 4 1 107 17)(font "Arial" (font_size 10)))
(text "inst7" (rect 8 24 31 36)(font "Arial" ))
(port
(pt 40 40)
(input)
(text "enabledt" (rect 0 0 48 14)(font "Arial" (font_size 8)))
(text "enabledt" (rect 40 -6 88 8)(font "Arial" (font_size 8))(invisible))
(line (pt 40 40)(pt 40 28)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "data[15..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
(text "data[15..0]" (rect -3 -27 57 -13)(font "Arial" (font_size 8))(invisible))
(line (pt 0 24)(pt 32 24)(line_width 3))
)
(port
(pt 96 24)
(bidir)
(text "tridata[15..0]" (rect 0 0 70 14)(font "Arial" (font_size 8)))
(text "tridata[15..0]" (rect 100 -36 170 -22)(font "Arial" (font_size 8))(invisible))
(line (pt 96 24)(pt 48 24)(line_width 3))
)
(drawing
(text "16" (rect 69 25 80 37)(font "Arial" ))
(text "16" (rect 13 25 24 37)(font "Arial" ))
(line (pt 32 16)(pt 48 24)(line_width 1))
(line (pt 48 24)(pt 32 32)(line_width 1))
(line (pt 32 32)(pt 32 16)(line_width 1))
(line (pt 64 28)(pt 72 20)(line_width 1))
(line (pt 8 28)(pt 16 20)(line_width 1))
)
)
(symbol
(rect -648 352 -536 400)
(text "lpm_constant_oe0" (rect 3 1 128 17)(font "Arial" (font_size 10)))
(text "inst8" (rect 8 32 31 44)(font "Arial" ))
(port
(pt 112 24)
(output)
(text "result[4..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
(text "result[4..0]" (rect 109 -25 169 -11)(font "Arial" (font_size 8))(invisible))
(line (pt 112 24)(pt 96 24)(line_width 3))
)
(drawing
(text "10" (rect 86 18 97 30)(font "Arial" ))
(text "5" (rect 103 25 108 37)(font "Arial" ))
(line (pt 16 16)(pt 96 16)(line_width 1))
(line (pt 96 16)(pt 96 32)(line_width 1))
(line (pt 96 32)(pt 16 32)(line_width 1))
(line (pt 16 32)(pt 16 16)(line_width 1))
(line (pt 98 28)(pt 106 20)(line_width 1))
)
)
(connector
(pt -96 280)
(pt -72 280)
(bus)
)
(connector
(pt -96 296)
(pt -72 296)
(bus)
)
(connector
(pt -96 312)
(pt -72 312)
(bus)
)
(connector
(pt -392 632)
(pt -456 632)
)
(connector
(pt -392 616)
(pt -424 616)
)
(connector
(pt -424 752)
(pt -392 752)
)
(connector
(pt -360 328)
(pt -336 328)
)
(connector
(pt -360 344)
(pt -336 344)
)
(connector
(pt -360 296)
(pt -336 296)
)
(connector
(pt -360 312)
(pt -336 312)
)
(connector
(pt -536 376)
(pt -336 376)
(bus)
)
(connector
(pt -360 360)
(pt -336 360)
)
(connector
(pt -336 280)
(pt -360 280)
)
(connector
(pt -392 864)
(pt -456 864)
)
(connector
(pt -392 848)
(pt -424 848)
)
(connector
(pt -424 896)
(pt -456 896)
)
(connector
(pt -424 616)
(pt -424 752)
)
(connector
(pt -424 752)
(pt -424 848)
)
(connector
(pt -424 848)
(pt -424 896)
)
(connector
(pt -456 768)
(pt -392 768)
)
(connector
(pt 0 528)
(pt -8 528)
(bus)
)
(connector
(pt -96 760)
(pt -96 728)
)
(connector
(text "CS_VELO1" (rect -313 744 -258 756)(font "Arial" ))
(pt -328 760)
(pt -96 760)
)
(connector
(pt -96 856)
(pt -96 840)
)
(connector
(text "CS_ACC" (rect -313 840 -269 852)(font "Arial" ))
(pt -328 856)
(pt -96 856)
)
(connector
(text "<<__$DEF_ALIAS3362>>" (rect -38 576 85 588)(font "Arial" )(invisible))
(pt -8 592)
(pt -48 592)
(bus)
)
(connector
(text "POS[22..7]" (rect -213 576 -159 588)(font "Arial" ))
(pt -216 592)
(pt -144 592)
(bus)
)
(connector
(pt -104 624)
(pt -104 608)
)
(connector
(text "CS_COUNT1" (rect -321 632 -255 644)(font "Arial" ))
(pt -328 624)
(pt -104 624)
)
(connector
(pt -8 712)
(pt -40 712)
(bus)
)
(connector
(pt -8 824)
(pt -40 824)
(bus)
)
(connector
(text "VEL[22..7]" (rect -216 696 -165 708)(font "Arial" ))
(pt -216 712)
(pt -136 712)
(bus)
)
(connector
(text "ACC[15..0]" (rect -213 808 -158 820)(font "Arial" ))
(pt -216 824)
(pt -136 824)
(bus)
)
(connector
(pt -8 528)
(pt -8 592)
(bus)
)
(connector
(pt -8 592)
(pt -8 712)
(bus)
)
(connector
(pt -8 712)
(pt -8 824)
(bus)
)
(junction (pt -424 752))
(junction (pt -424 848))
(junction (pt -8 592))
(junction (pt -8 712))
(text "Even though pos, vel, and acc appear" (rect -56 328 159 342)(font "Arial" (font_size 8)))
(text "as external pins, these normally are not" (rect -56 344 168 358)(font "Arial" (font_size 8)))
(text "used, in favor of simply using the IO bus" (rect -56 360 172 374)(font "Arial" (font_size 8)))
(text "below to read the selected 16 bits of" (rect -56 376 152 390)(font "Arial" (font_size 8)))
(text "a particular value." (rect -56 392 45 406)(font "Arial" (font_size 8)))
(text "It is unlikely that acceleration ever" (rect 48 800 239 814)(font "Arial" (font_size 8)))
(text "exceeds 16 bits, so the upper word" (rect 48 816 252 830)(font "Arial" (font_size 8)))
(text "is deliberately excluded." (rect 48 832 184 846)(font "Arial" (font_size 8)))
(text "Acceleration units are counts/(tenth-second)^2," (rect 48 848 320 862)(font "Arial" (font_size 8)))
(text "Velocity units are counts/sec" (rect 48 864 214 878)(font "Arial" (font_size 8)))
(text "Position units are counts, with 39000 counts/rev" (rect 48 880 322 894)(font "Arial" (font_size 8)))
(text "and subsequently altered again by T. Collins to reduce complexity and provide the best usable range of velocity" (rect -696 224 -64 238)(font "Arial" (font_size 8)))
(text "This BDF was developed by T. Collins, modified by students in the design project," (rect -696 208 -235 222)(font "Arial" (font_size 8)))
(text "30 through 19 do not change because motor cannot spin fast enough)" (rect 8 720 406 734)(font "Arial" (font_size 8)))
(text "Sending the most-significant 8 bits of the velocity, sign-extended (bits" (rect 8 704 403 718)(font "Arial" (font_size 8)))