-
Notifications
You must be signed in to change notification settings - Fork 0
/
eyeOpening.vee
782 lines (782 loc) · 13.8 KB
/
eyeOpening.vee
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
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
(saveFormat "2.3")
(date "Thu 25/Jan/2001 18:26:44 ")
(veerev "5.0")
(platform "PC")
(execMode compat)
(filterNAN 0)
(workspaceStackingOrder M M.0 M.0.60)
(SaveCF no)
(device 0 ROOTCONTEXT
(properties
(trigMode deg)
(nextID 1)
(popupTitleText "Untitled")
(popupMoveable 1))
(deviceList
(device 0 CONTEXT
(properties
(name "eyeOpening")
(trigMode deg)
(nextID 62))
(interface
(input 1
(name "Wf")
(requires
(datatype Waveform))
(optional yes))
(output 1
(type data)
(name "vOp")
(lock constraints)
(optional yes)))
(deviceList
(device 60 CONTEXT
(properties
(name "process")
(trigMode deg)
(nextID 24))
(interface
(input 1
(name "Wf")
(requires
(datatype Waveform))
(optional yes))
(input 2
(name "T")
(optional yes))
(output 1
(type data)
(name "Result")
(lock constraints)
(optional yes)))
(deviceList
(device 0 FORMULA
(properties
(name "mean(x)")
(expr 1 "mean(x)"))
(interface
(input 1
(name "X")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 1 FROMWAVEFORM
(properties
(name "UnBuild Wf"))
(interface
(input 1
(name "Wf Data")
(requires
(datatype Waveform))
(lock name constraints))
(output 1
(name "Real Ary")
(lock name constraints))
(output 2
(name "Time Span")
(lock name constraints))))
(device 2 FORMULA
(properties
(name "N")
(expr 1 "intPart(a/b)"))
(interface
(input 1
(name "A")
(optional yes))
(input 2
(name "b")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 3 FORMULA
(properties
(name "k")
(expr 1 "intPart(a/b)"))
(interface
(input 1
(name "A")
(optional yes))
(input 2
(name "b")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 4 FORMULA
(properties
(name "totSize")
(expr 1 "totSize(x)"))
(interface
(input 1
(name "X")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 5 FORCOUNT
(properties
(count 160))
(interface
(input 1
(name "Count")
(tag "Count")
(requires
(datatype Int32)
(shape "Scalar"))
(lock constraints)
(optional yes)
(buffer YES))
(output 1
(name "Count")
(lock name constraints))))
(device 6 FORMULA
(properties
(name " - ")
(expr 1 "X-Y"))
(interface
(input 1
(name "X")
(optional yes))
(input 2
(name "Y")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 7 FORCOUNT
(properties
(count 32))
(interface
(input 1
(name "Count")
(tag "Count")
(requires
(datatype Int32)
(shape "Scalar"))
(lock constraints)
(optional yes)
(buffer YES))
(output 1
(name "Count")
(lock name constraints))))
(device 8 FORMULA
(properties
(name "f")
(expr 1 "(a[*, i])"))
(interface
(input 1
(name "A")
(optional yes))
(input 2
(name "i")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 9 CONSTANT
(properties
(name "0"))
(interface
(output 1
(name "Real")
(lock name constraints)))
(implementation
(value Real
(data 0))
(initValue Real
(data 0))))
(device 10 FORMULA
(properties
(name "f")
(expr 1 "a[b*c:(b+1)*c-1]"))
(interface
(input 1
(name "A")
(optional yes))
(input 2
(name "B")
(optional yes))
(input 3
(name "C")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 11 COLLECTOR
(properties
(output1D 0))
(interface
(input 1
(name "Data")
(tag "Data"))
(input 2
(type trigger)
(name "XEQ")
(lock name constraints))
(output 1
(name "Array")
(tag "Array"))))
(device 12 COMPARATOR
(properties
(name "Comp")
(relation <=))
(interface
(input 1
(name "Ref Value")
(tag "RefValue"))
(input 2
(name "Test Value")
(tag "TestValue"))
(output 1
(name "Passed")
(tag "Passed")
(lock name constraints)
(optional yes))
(output 2
(name "Failed")
(tag "Failed")
(lock name constraints)
(optional yes))
(output 3
(name "Failures")
(tag "Failures")
(lock name constraints)
(optional yes))))
(device 13 COMPARATOR
(properties
(name "Comp")
(relation >=))
(interface
(input 1
(name "Ref Value")
(tag "RefValue"))
(input 2
(name "Test Value")
(tag "TestValue"))
(output 1
(name "Passed")
(tag "Passed")
(lock name constraints)
(optional yes))
(output 2
(name "Failed")
(tag "Failed")
(lock name constraints)
(optional yes))
(output 3
(name "Failures")
(tag "Failures")
(lock name constraints)
(optional yes))))
(device 14 NEXT)
(device 15 FROMCOORDINATE
(interface
(input 1
(name "Coord Data")
(requires
(datatype Coord))
(lock name constraints))
(output 1
(name "X Data")
(lock name constraints))
(output 2
(name "Y Data")
(lock name constraints)
(optional yes))))
(device 16 NEXT)
(device 17 FROMCOORDINATE
(interface
(input 1
(name "Coord Data")
(requires
(datatype Coord))
(lock name constraints))
(output 1
(name "X Data")
(lock name constraints))
(output 2
(name "Y Data")
(lock name constraints)
(optional yes))))
(device 18 FORMULA
(properties
(name "min(x)")
(expr 1 "min(x)"))
(interface
(input 1
(name "X")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 19 FORMULA
(properties
(name "max(x)")
(expr 1 "max(x)"))
(interface
(input 1
(name "X")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 20 COLLECTOR
(properties
(output1D 0))
(interface
(input 1
(name "Data")
(tag "Data"))
(input 2
(type trigger)
(name "XEQ")
(lock name constraints))
(output 1
(name "Array")
(tag "Array"))))
(device 21 COLLECTOR
(properties
(output1D 0))
(interface
(input 1
(name "Data")
(tag "Data"))
(input 2
(type trigger)
(name "XEQ")
(lock name constraints))
(output 1
(name "Array")
(tag "Array"))))
(device 22 FORMULA
(properties
(name " - ")
(expr 1 "X-Y"))
(interface
(input 1
(name "X")
(optional yes))
(input 2
(name "Y")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(device 23 FORMULA
(properties
(name "max(x)")
(expr 1 "max(x)"))
(interface
(input 1
(name "X")
(optional yes))
(output 1
(name "Result")
(tag "Result")
(lock name constraints)
(optional yes))))
(configuration
(connect I1:1 D0:1)
(connect I1:1 D1:1)
(connect D1:2 D2:1)
(connect I2:1 D2:2)
(connect D4:1 D3:1)
(connect D2:1 D3:2)
(connect D1:1 D4:1)
(connect D2:1 D5:1)
(connect D11:1 D6:1)
(connect D0:1 D6:2)
(connect D6:0 D7:0)
(connect D3:1 D7:1)
(connect D6:1 D8:1)
(connect D7:1 D8:2)
(connect D1:1 D10:1)
(connect D5:1 D10:2)
(connect D3:1 D10:3)
(connect D10:1 D11:1)
(connect D5:0 D11:2)
(connect D9:1 D12:1)
(connect D8:1 D12:2)
(connect D9:1 D13:1)
(connect D8:1 D13:2)
(connect D12:1 D14:0)
(connect D12:3 D15:1)
(connect D13:1 D16:0)
(connect D13:3 D17:1)
(connect D15:2 D18:1)
(connect D17:2 D19:1)
(connect D18:1 D20:1)
(connect D7:0 D20:2)
(connect D19:1 D21:1)
(connect D7:0 D21:2)
(connect D20:1 D22:1)
(connect D21:1 D22:2)
(connect D22:1 D23:1)
(connect D23:1 O1:1)))
(contextCarrier
(wndRestoredOrigin 42 42)
(wndRestoredExtent 961 527)
(wndState max)
(active detail)
(detail
(extent 1196 889)
(anchorPt 262 226)
(configuration
(devCarrierFor 0
(active icon)
(icon
(extent 78 25))
(open
(extent 97 60))
(terminals on)
(pinCenter 0 0))
(devCarrierFor 1
(active icon)
(icon
(extent 81 25))
(open
(extent 40 70))
(terminals on)
(pinCenter 0 65))
(devCarrierFor 2
(active icon)
(icon
(extent 46 34))
(open
(extent 142 154))
(terminals on)
(pinCenter 40 200))
(devCarrierFor 3
(active icon)
(icon
(extent 46 34))
(open
(extent 142 154))
(terminals on)
(pinCenter 40 260))
(devCarrierFor 4
(active icon)
(icon
(extent 78 25))
(open
(extent 124 62))
(terminals on)
(pinCenter 130 80))
(devCarrierFor 5
(active icon)
(icon
(extent 110 25))
(open
(extent 170 34))
(pinCenter 290 80))
(devCarrierFor 6
(active icon)
(icon
(extent 46 25))
(open)
(terminals on)
(pinCenter 300 180))
(devCarrierFor 7
(active icon)
(icon
(extent 110 25))
(open
(extent 170 34))
(pinCenter 300 280))
(devCarrierFor 8
(active icon)
(icon
(extent 46 34))
(open
(extent 133 154))
(terminals on)
(pinCenter 420 190))
(devCarrierFor 9
(active icon)
(icon
(extent 46 25))
(open
(extent 110 34)
(showFormat real))
(pinCenter 460 140))
(devCarrierFor 10
(active icon)
(icon
(extent 46 34))
(open
(extent 178 154))
(terminals on)
(pinCenter 420 70))
(devCarrierFor 11
(active icon)
(icon
(extent 110 25))
(open
(extent 167 117))
(terminals on)
(pinCenter 530 80))
(devCarrierFor 12
(active icon)
(icon
(extent 46 34))
(open
(extent 242 112))
(terminals on)
(pinCenter 540 190))
(devCarrierFor 13
(active icon)
(icon
(extent 46 34))
(open
(extent 242 112))
(terminals on)
(pinCenter 540 280))
(devCarrierFor 14
(active icon)
(icon
(extent 46 25))
(open)
(terminals on)
(pinCenter 620 160))
(devCarrierFor 15
(active icon)
(icon
(extent 127 25))
(open
(extent 27 72))
(terminals on)
(pinCenter 650 200))
(devCarrierFor 16
(active icon)
(icon
(extent 46 25))
(open)
(terminals on)
(pinCenter 620 250))
(devCarrierFor 17
(active icon)
(icon
(extent 127 25))
(open
(extent 25 72))
(terminals on)
(pinCenter 650 290))
(devCarrierFor 18
(active icon)
(icon
(extent 78 25))
(open)
(terminals on)
(pinCenter 770 210))
(devCarrierFor 19
(active icon)
(icon
(extent 78 25))
(open)
(terminals on)
(pinCenter 780 300))
(devCarrierFor 20
(active icon)
(icon
(extent 110 25))
(open
(extent 153 112))
(terminals on)
(pinCenter 590 380))
(devCarrierFor 21
(active icon)
(icon
(extent 110 25))
(open
(extent 153 112))
(terminals on)
(pinCenter 590 430))
(devCarrierFor 22
(active icon)
(icon
(extent 46 25))
(open)
(terminals on)
(pinCenter 700 400))
(devCarrierFor 23
(active icon)
(icon
(extent 78 25))
(open
(extent 88 62))
(terminals on)
(pinCenter 780 400))
(connect I1:1 D0:1
(points 4 -262 -2 -70 -2 -70 0 -42 0))
(connect I1:1 D1:1
(points 4 -262 -2 -50 -2 -50 65 -43 65))
(connect D1:2 D2:1
(points 6 43 75 50 75 50 100 -10 100 -10 190 14 190))
(connect I2:1 D2:2
(points 4 -262 438 -40 438 -40 210 14 210))
(connect D4:1 D3:1
(points 6 171 80 180 80 180 140 -20 140 -20 250 14 250))
(connect D2:1 D3:2
(points 6 65 200 80 200 80 300 -20 300 -20 270 14 270))
(connect D1:1 D4:1
(points 4 43 55 60 55 60 80 88 80))
(connect D2:1 D5:1
(points 4 65 200 180 200 180 80 232 80))
(connect D11:1 D6:1
(points 8 587 80 610 80 610 120 410 120 410 130 260 130 260 170 274 170))
(connect D0:1 D6:2
(points 4 41 0 200 0 200 190 274 190))
(connect D6:0 D7:0
(points 2 300 195 300 265))
(connect D3:1 D7:1
(points 4 65 260 90 260 90 280 242 280))
(connect D6:1 D8:1
(points 2 325 180 394 180))
(connect D7:1 D8:2
(points 4 357 280 370 280 370 200 394 200))
(connect D1:1 D10:1
(points 6 43 55 60 55 60 50 370 50 370 60 394 60))
(connect D5:1 D10:2
(points 4 347 80 370 80 370 70 394 70))
(connect D3:1 D10:3
(points 8 65 260 90 260 90 280 200 280 200 150 370 150 370 80 394 80))
(connect D10:1 D11:1
(points 2 445 70 472 70))
(connect D5:0 D11:2
(points 7 290 95 290 120 370 120 370 110 460 110 460 90 472 90))
(connect D9:1 D12:1
(points 4 485 140 500 140 500 180 514 180))
(connect D8:1 D12:2
(points 4 445 190 460 190 460 200 514 200))
(connect D9:1 D13:1
(points 6 485 140 500 140 500 180 490 180 490 270 514 270))
(connect D8:1 D13:2
(points 4 445 190 470 190 470 290 514 290))
(connect D12:1 D14:0
(points 5 565 180 570 180 570 130 610 130 620 145))
(connect D12:3 D15:1
(points 2 565 200 584 200))
(connect D13:1 D16:0
(points 5 565 270 570 270 570 230 610 230 620 235))
(connect D13:3 D17:1
(points 2 565 290 584 290))
(connect D15:2 D18:1
(points 2 716 210 728 210))
(connect D17:2 D19:1
(points 2 716 300 738 300))
(connect D18:1 D20:1
(points 6 811 210 840 210 840 350 510 350 510 370 532 370))
(connect D7:0 D20:2
(points 3 300 295 300 390 532 390))
(connect D19:1 D21:1
(points 6 821 300 820 300 820 340 500 340 500 420 532 420))
(connect D7:0 D21:2
(points 3 300 295 300 440 532 440))
(connect D20:1 D22:1
(points 4 647 380 650 380 650 390 674 390))
(connect D21:1 D22:2
(points 4 647 430 650 430 650 410 674 410))
(connect D22:1 D23:1
(points 2 725 400 738 400))
(connect D23:1 O1:1
(points 4 821 400 830 400 830 218 933 218)))
(stackingOrder 0 1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 7))))
(device 61 CONSTANT
(properties
(name "Bit duration [s]"))
(interface
(output 1
(name "Real")
(lock name constraints)))
(implementation
(value Real
(data 0.001))
(initValue Real
(data 0))))
(configuration
(connect I1:1 D0:1)
(connect D1:1 D0:2)
(connect D0:1 O1:1)))
(contextCarrier
(wndOrigin 22 22)
(wndState res)
(active detail)
(panel
(extent 145 51)
(widget 1 detail
(relativeOrigin 0 0)
(title on)
(borderStyle flat)
(extent 151 29)
(showFormat real)))
(detail
(extent 330 182)
(anchorPt 150 61)
(configuration
(devCarrierFor 60
(active icon)
(icon
(extent 57 25))
(terminals on)
(pinCenter 0 0))
(devCarrierFor 61
(active icon)
(icon
(extent 115 15))
(open
(extent 151 29)
(showFormat real))
(pinCenter -30 240))
(connect I1:1 D0:1
(points 4 -150 29 -140 29 -140 -10 -31 -10))
(connect D1:1 D0:2
(points 6 30 240 40 240 40 210 -50 210 -50 10 -31 10))
(connect D0:1 O1:1
(points 4 31 0 50 0 50 29 179 29)))
(stackingOrder 1 0))))
(configuration))
(contextCarrier
(wndOrigin 2 2)
(wndState res)
(active detail)
(detail
(extent 600 350)
(anchorPt 526 307)
(configuration
(devCarrierFor 0
(active icon)
(icon
(extent 88 25))
(open
(extent 145 51)
(carbonCopy))
(terminals on)
(bg "Light Blue Gray")
(pinCenter 0 0))))
(numberFormats
(realFormat standard)
(realSigDigits 4)
(realRadixSpec 4)
(integerBase decimal))))