-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSAR_3bit.asc
188 lines (188 loc) · 4.17 KB
/
SAR_3bit.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
Version 4
SHEET 1 1368 988
WIRE 320 128 224 128
WIRE 896 144 816 144
WIRE 896 176 848 176
WIRE 976 176 960 176
WIRE 1184 176 1184 160
WIRE 1104 208 1088 208
WIRE 1280 208 1264 208
WIRE 320 224 320 128
WIRE 400 224 320 224
WIRE 512 224 400 224
WIRE 624 224 512 224
WIRE 688 224 624 224
WIRE 704 224 688 224
WIRE 976 224 976 176
WIRE 976 224 864 224
WIRE 1104 224 1088 224
WIRE 1280 224 1264 224
WIRE 400 240 320 240
WIRE 512 240 400 240
WIRE 624 240 512 240
WIRE 672 240 624 240
WIRE 688 240 672 240
WIRE 816 240 816 144
WIRE 816 240 768 240
WIRE 848 240 848 176
WIRE 976 240 848 240
WIRE 1104 240 1088 240
WIRE 1280 240 1264 240
WIRE 688 256 688 240
WIRE 704 256 688 256
WIRE 1280 256 1264 256
WIRE 976 288 976 240
WIRE 1184 288 1184 272
WIRE 864 304 864 224
WIRE 896 304 864 304
WIRE 320 336 320 240
WIRE 320 336 224 336
WIRE 816 336 816 240
WIRE 832 336 816 336
WIRE 976 336 976 288
WIRE 976 336 960 336
WIRE 352 560 336 560
WIRE 432 560 416 560
WIRE 448 560 432 560
WIRE 656 560 640 560
WIRE 752 560 720 560
FLAG 736 208 0
FLAG 144 128 INP
FLAG 624 160 VDD
FLAG 624 304 VDD
FLAG 160 608 0
FLAG 160 528 VDD
FLAG 1088 208 COMP
FLAG 976 288 COMP
FLAG 1088 224 CLK
FLAG 1088 240 RST
FLAG 1184 160 VDD
FLAG 1184 288 VSS
FLAG 400 96 P<2>
FLAG 512 96 P<1>
FLAG 400 368 N<2>
FLAG 512 368 N<1>
FLAG 208 384 SWCHB
FLAG 432 560 SWCHB
FLAG 512 560 SWCH2
FLAG 640 560 CLK
FLAG 816 560 CLKD
FLAG 1280 208 CLKC<2:0>
FLAG 1280 224 N<2:1>
FLAG 1280 240 P<2:0>
FLAG 1280 256 SWCH
FLAG -128 608 0
FLAG -128 528 CLK
FLAG 256 784 0
FLAG 368 784 0
FLAG 368 704 VSS
FLAG -112 176 0
FLAG -112 96 INN
FLAG -112 368 0
FLAG -112 288 INP
FLAG 688 224 INP2
FLAG 672 240 INN2
FLAG 256 640 RST
FLAG 144 336 INN
FLAG 160 384 0
FLAG 160 176 0
FLAG 208 176 SWCHB
FLAG 272 560 SWCH
FLAG 736 272 VDD
SYMBOL Digital\\inv 464 96 R90
SYMATTR InstName A1
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL Digital\\inv 576 96 R90
SYMATTR InstName A2
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL Digital\\inv 336 368 R270
SYMATTR InstName A3
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL Digital\\inv 448 368 R270
SYMATTR InstName A4
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL cap 384 160 R0
SYMATTR InstName C1
SYMATTR Value 1.23p
SYMBOL cap 496 160 R0
SYMATTR InstName C2
SYMATTR Value 614f
SYMBOL cap 608 160 R0
SYMATTR InstName C3
SYMATTR Value 614f
SYMBOL cap 384 240 R0
SYMATTR InstName C4
SYMATTR Value 1.23p
SYMBOL cap 496 240 R0
SYMATTR InstName C5
SYMATTR Value 614f
SYMBOL cap 608 240 R0
SYMATTR InstName C6
SYMATTR Value 614f
SYMBOL Digital\\or 928 96 R0
SYMATTR InstName A5
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL Digital\\or 928 256 R0
SYMATTR InstName A6
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL Comparators\\LT1017 736 240 M180
SYMATTR InstName U1
SYMBOL voltage 160 512 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 1
SYMBOL Digital\\inv 832 272 R0
SYMATTR InstName A7
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL 3bit_SAR_logic 1184 224 R0
SYMATTR InstName X1
SYMBOL Digital\\inv 352 496 R0
SYMATTR InstName A8
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL Digital\\inv 448 496 R0
SYMATTR InstName A9
SYMATTR SpiceLine Trise 1n Tfall 1n
SYMBOL Digital\\inv 656 496 R0
SYMATTR InstName A10
SYMBOL Digital\\inv 752 496 R0
SYMATTR InstName A11
SYMBOL voltage -128 512 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(0 1 0.1u 20n 1p 0.05u 0.1u)
SYMBOL voltage 256 688 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value PULSE(1 0 0 1p 1p 0.1u 50u)
SYMBOL voltage 368 688 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V5
SYMATTR Value 0
SYMBOL voltage -112 80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V6
SYMATTR Value PWL(0 1.1 10u -0.1)
SYMBOL voltage -112 272 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V7
SYMATTR Value PWL(0 -0.1 10u 1.1)
SYMBOL Digital\\inv 192 704 R270
SYMATTR InstName A12
SYMATTR SpiceLine Trise 10n Tfall 10n
SYMBOL sw 128 128 R270
SYMATTR InstName S1
SYMBOL sw 128 336 R270
SYMATTR InstName S2
SYMBOL Digital\\inv 272 496 R0
SYMATTR InstName A14
SYMATTR SpiceLine Trise 1n Tfall 1n
TEXT -136 448 Left 2 !.include tsmc018.lib
TEXT 656 392 Left 2 !;tran 10
TEXT 160 48 Left 2 !.model SW SW(Vt=0.5)
TEXT 176 8 Left 2 !.tran 10u