-
Notifications
You must be signed in to change notification settings - Fork 0
/
tb_count4.asc
191 lines (191 loc) · 4.29 KB
/
tb_count4.asc
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
Version 4
SHEET 1 4164 944
WIRE 384 -912 384 -928
WIRE 384 -880 384 -912
WIRE 384 -768 384 -800
WIRE -496 -704 -544 -704
WIRE -384 -704 -416 -704
WIRE -64 -704 -384 -704
WIRE -544 -688 -544 -704
WIRE -64 -672 -144 -672
WIRE 32 -672 0 -672
WIRE 48 -672 32 -672
WIRE -64 -640 -112 -640
WIRE -112 -608 -112 -640
WIRE 592 -608 -112 -608
WIRE -544 -592 -544 -608
WIRE -496 -544 -544 -544
WIRE -384 -544 -416 -544
WIRE -64 -544 -384 -544
WIRE 464 -544 0 -544
WIRE -544 -528 -544 -544
WIRE -144 -512 -144 -672
WIRE -64 -512 -144 -512
WIRE 112 -512 0 -512
WIRE 464 -512 144 -512
WIRE -64 -480 -112 -480
WIRE 16 -480 0 -480
WIRE 48 -480 16 -480
WIRE 464 -480 176 -480
WIRE 112 -448 112 -512
WIRE 464 -448 112 -448
WIRE 592 -448 592 -608
WIRE 592 -448 560 -448
WIRE -544 -432 -544 -448
WIRE 464 -416 208 -416
WIRE 464 -384 240 -384
WIRE 464 -352 432 -352
WIRE -112 -304 -112 -480
WIRE 592 -304 -112 -304
WIRE 112 -240 16 -240
WIRE 144 -240 144 -512
WIRE 144 -240 112 -240
WIRE 464 -240 272 -240
WIRE -496 -208 -544 -208
WIRE -384 -208 -416 -208
WIRE -80 -208 -384 -208
WIRE 144 -208 16 -208
WIRE 272 -208 272 -240
WIRE 272 -208 144 -208
WIRE 464 -208 304 -208
WIRE -544 -192 -544 -208
WIRE -144 -176 -144 -512
WIRE -80 -176 -144 -176
WIRE 144 -176 16 -176
WIRE 208 -176 208 -416
WIRE 208 -176 144 -176
WIRE 464 -176 336 -176
WIRE 592 -176 592 -304
WIRE 592 -176 560 -176
WIRE -80 -144 -112 -144
WIRE 144 -144 16 -144
WIRE 336 -144 336 -176
WIRE 336 -144 144 -144
WIRE 464 -144 368 -144
WIRE 32 -112 16 -112
WIRE 64 -112 32 -112
WIRE 432 -112 432 -352
WIRE 464 -112 432 -112
WIRE -544 -96 -544 -112
WIRE -112 -64 -112 -144
WIRE 592 -64 -112 -64
WIRE 144 0 16 0
WIRE 176 0 176 -480
WIRE 176 0 144 0
WIRE 432 0 432 -112
WIRE 464 0 432 0
WIRE 432 16 432 0
WIRE 144 32 16 32
WIRE 304 32 304 -208
WIRE 304 32 144 32
WIRE 464 32 400 32
WIRE 592 32 592 -64
WIRE 592 32 560 32
WIRE -496 64 -544 64
WIRE -384 64 -416 64
WIRE -80 64 -384 64
WIRE 144 64 16 64
WIRE 400 64 400 32
WIRE 400 64 144 64
WIRE 464 64 432 64
WIRE -544 80 -544 64
WIRE -208 96 -240 96
WIRE -80 96 -208 96
WIRE 144 96 16 96
WIRE 240 96 240 -384
WIRE 240 96 144 96
WIRE -352 128 -384 128
WIRE -240 128 -240 96
WIRE -240 128 -272 128
WIRE -144 128 -144 -176
WIRE -80 128 -144 128
WIRE 144 128 16 128
WIRE 368 128 368 -144
WIRE 368 128 144 128
WIRE -384 144 -384 128
WIRE -144 160 -144 128
WIRE 144 160 16 160
WIRE 432 160 432 64
WIRE 432 160 144 160
WIRE -544 176 -544 160
WIRE 32 192 16 192
WIRE 64 192 32 192
FLAG 384 -768 0
FLAG 384 -912 VDD
FLAG -544 176 0
FLAG -544 -96 0
FLAG -544 -432 0
FLAG 432 16 0
FLAG -144 160 0
FLAG 32 192 S0
FLAG 32 -112 S1
FLAG 16 -480 S2
FLAG 592 32 CO1
FLAG 592 -176 CO2
FLAG 32 -672 S3
FLAG 592 -448 CO3
FLAG -544 -592 0
FLAG -384 -704 A3
FLAG -384 -544 A2
FLAG -384 -208 A1
FLAG -384 64 A0
FLAG 144 96 P0_1
FLAG 144 128 P0_2
FLAG 144 160 P0_3
FLAG 144 64 G0_3
FLAG 144 32 G0_2
FLAG 144 0 G0_1
FLAG 112 -240 G1_1
FLAG 144 -208 G1_2
FLAG 144 -176 P1_1
FLAG 144 -144 P1_2
FLAG -208 96 B0
FLAG -384 144 0
SYMBOL voltage 384 -896 R0
SYMATTR InstName VDD
SYMATTR Value {VDD}
SYMBOL voltage -544 64 M0
SYMATTR InstName VA0
SYMATTR Value PULSE({VDD} 0 {t1} 100n 100n {t1 - 100n} {2 * t1})
SYMBOL voltage -544 -208 M0
SYMATTR InstName VA1
SYMATTR Value PULSE({VDD} 0 {2 * t1} 100n 100n {2 * t1 - 100n} {4 * t1})
SYMBOL voltage -544 -544 M0
SYMATTR InstName VA2
SYMATTR Value PULSE({VDD} 0 {4 * t1} 100n 100n {4 * t1 - 100n} {8 * t1})
SYMBOL iilout 80 -112 R0
SYMATTR InstName X6
SYMBOL iilout 80 192 R0
SYMATTR InstName X7
SYMBOL fag3p3 -32 96 R0
SYMATTR InstName X1
SYMBOL cla3 512 -448 R0
SYMATTR InstName X2
SYMBOL cla2 512 -176 R0
SYMATTR InstName X3
SYMBOL cla1 512 32 R0
SYMATTR InstName X4
SYMBOL fag2p2 -32 -176 R0
SYMATTR InstName X5
SYMBOL fag1p1 -32 -512 R0
SYMATTR InstName X8
SYMBOL iilout 64 -480 R0
SYMATTR InstName X9
SYMBOL iilout 64 -672 R0
SYMATTR InstName X10
SYMBOL fag0p0 -32 -672 R0
SYMATTR InstName X11
SYMBOL voltage -544 -704 M0
SYMATTR InstName VA3
SYMATTR Value PULSE({VDD} 0 {8 * t1} 100n 100n {8 * t1 - 100n} {16 * t1})
SYMBOL iilin1 -464 -704 R0
SYMATTR InstName X12
SYMBOL iilin1 -464 -544 R0
SYMATTR InstName X13
SYMBOL iilin1 -464 -208 R0
SYMATTR InstName X14
SYMBOL iilin1 -464 64 R0
SYMATTR InstName X15
SYMBOL iilin1 -320 128 R0
SYMATTR InstName X16
TEXT -48 -912 Left 2 !.global VDD\n.param VDD=5V\n.param IB=100u\n.param RB={(VDD - 0.65) / IB}\n.param t1=10us\n.tran {17 * t1}