-
Notifications
You must be signed in to change notification settings - Fork 0
/
aureo.il
224 lines (175 loc) · 6.59 KB
/
aureo.il
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
(defun split_soi ()
; Splits the SOI1 and SOI2 layers up by performing a NOT operation
; between SOI1 and SOIHOLE1 and using the result as the new SOI1 layer.
cv = geGetEditCellView()
abeInit(cv)
a2 = abeLayerFromCellView("SOI1")
a3 = abeLayerFromCellView("SOIHOLE1")
a4 = abeNewLayer()
;a4 = abeLayerFromCellView("SOI2")
abeLayerAndNot(a2 a3 a4)
foreach(object setof(shapes cv~>shapes shapes~>layerName == "SOI1")
dbDeleteObject(object))
abeLayerToCellView(a4 "SOI1")
a5 = abeLayerFromCellView("SOI2")
a6 = abeLayerFromCellView("SOIHOLE2")
a7 = abeNewLayer()
abeLayerAndNot(a5 a6 a7)
foreach(object setof(shapes cv~>shapes shapes~>layerName == "SOI2")
dbDeleteObject(object))
abeLayerToCellView(a7 "SOI2")
abeDone()
)
(defun merge_soi ()
; Merges the SOI1 and SOI2 layers by performing an OR operation on the layers
; and using the result as the new SOI1 and SOI2 layers
cv = geGetEditCellView()
abeInit(cv)
a2 = abeLayerFromCellView("SOI1")
a3 = abeNewLayer()
abeLayerOr(a2 a3)
foreach(object setof(shapes cv~>shapes shapes~>layerName == "SOI1")
dbDeleteObject(object))
abeLayerToCellView(a3 "SOI1")
a4 = abeLayerFromCellView("SOI2")
a5 = abeNewLayer()
abeLayerOr(a4 a5)
foreach(object setof(shapes cv~>shapes shapes~>layerName == "SOI2")
dbDeleteObject(object))
abeLayerToCellView(a5 "SOI2")
abeDone()
)
procedure( pcCFfingerl( )
prog(()
if( (cdfgData->maskLayoutViewName->value ==
cdfgData->maskLayoutViewName->defValue)
; Do this only if maskLayoutViewName is
; layout. Otherwise, mosLayout sets it.
then
tmp = cdfgData->Finger_Length->value
if( (tmp < cdfgData->Finger_Length->defValue)
then
error("Finger length value is less than
minimum (4u). Set to default." )
cdfgData->Finger_Length->value = cdfgData->Finger_Length->defValue
return(nil)
)
grid = round(tmp/0.1)
newwidth = grid*0.10
if( (newwidth != tmp)
then
error("Finger Length is set to nearest value
on 0.10 micron pitch.")
cdfgData->Finger_Length->value = (newwidth * 1e-6)
)
c_float = cdfgData->Multiplier->value * ((((tmp * 1e-6) - (cdfgData->End_Gap->value * 1e-6)) * 40e-6) / (cdfgData->Finger_Gap->value * 1e-6)) * 8.85e-12
cdfgData->C->value = sprintf(s "%g" c_float)
)
)
)
procedure( pcCFmult( )
prog(()
if( (cdfgData->maskLayoutViewName->value ==
cdfgData->maskLayoutViewName->defValue)
; Do this only if maskLayoutViewName is
; layout. Otherwise, mosLayout sets it.
then
tmp = cdfgData->Multiplier->value
if( (tmp < cdfgData->Multiplier->defValue)
then
error("Multiplier value is less than
minimum (1). Set to default." )
cdfgData->Multiplier->value = cdfgData->Multiplier->defValue
return(nil)
)
c_float = tmp * ((((cdfgData->Finger_Length->value * 1e-6) - (cdfgData->End_Gap->value * 1e-6)) * 40e-6) / (cdfgData->Finger_Gap->value * 1e-6)) * 8.85e-12
cdfgData->C->value = sprintf(s "%g" c_float)
)
)
)
procedure( pcSpringL( )
prog(()
k_float = 170e9 * cdfgData->Width->value * cdfgData->Width->value * cdfgData->Width->value * 40e-6 / (4* cdfgData->Length->value * cdfgData->Length->value * cdfgData->Length->value)
cdfgData->K->value = sprintf(s "%g" k_float)
)
)
procedure( pcSpringW( )
prog(()
k_float = 170e9 * cdfgData->Width->value * cdfgData->Width->value * cdfgData->Width->value * 40e-6 / (4* cdfgData->Length->value * cdfgData->Length->value * cdfgData->Length->value)
cdfgData->K->value = sprintf(s "%g" k_float)
)
)
procedure( pcSerpSpringL( )
prog(()
;cdfgData->Multiplier->value *
k_float = 170e9 * cdfgData->Width->value * cdfgData->Width->value * cdfgData->Width->value * 40e-6 / (2 * 4 * cdfgData->Length->value * cdfgData->Length->value * cdfgData->Length->value)
cdfgData->K->value = sprintf(s "%g" k_float)
)
)
procedure( pcSerpSpringW( )
prog(()
;cdfgData->Multiplier->value *
k_float = 170e9 * cdfgData->Width->value * cdfgData->Width->value * cdfgData->Width->value * 40e-6 / (2 * 4 * cdfgData->Length->value * cdfgData->Length->value * cdfgData->Length->value)
cdfgData->K->value = sprintf(s "%g" k_float)
)
)
procedure( pcSerpSpringmult( )
prog(()
if( (cdfgData->maskLayoutViewName->value ==
cdfgData->maskLayoutViewName->defValue)
; Do this only if maskLayoutViewName is
; layout. Otherwise, mosLayout sets it.
then
tmp = cdfgData->Multiplier->value
if( (tmp < cdfgData->Multiplier->defValue)
then
error("Multiplier value is less than
minimum (1). Set to default." )
cdfgData->Multiplier->value = cdfgData->Multiplier->defValue
return(nil)
)
k_float = tmp* 170e9 * cdfgData->Width->value * cdfgData->Width->value * cdfgData->Width->value * 40e-6 / (2 * 4 * cdfgData->Length->value * cdfgData->Length->value * cdfgData->Length->value)
cdfgData->K->value = sprintf(s "%g" k_float)
)
)
)
procedure( pcContactFlip( )
prog(()
if( (cdfgData->flip->value == t)
then
cdfgData->SOI1?->value = "SOI2"
cdfgData->SOI2?->value = "SOI1"
cdfgData->POLY1?->value = "POLY2"
cdfgData->POLY2?->value = "POLY1"
cdfgData->HIGHMETAL1?->value = "HIGHMETAL2"
cdfgData->HIGHMETAL2?->value = "HIGHMETAL1"
cdfgData->LOWMETAL1?->value = "LOWMETAL2"
cdfgData->LOWMETAL2?->value = "LOWMETAL1"
)
if( (cdfgData->flip->value == nil)
then
cdfgData->SOI1?->value = "SOI1"
cdfgData->SOI2?->value = "SOI2"
cdfgData->POLY1?->value = "POLY1"
cdfgData->POLY2?->value = "POLY2"
cdfgData->HIGHMETAL1?->value = "HIGHMETAL1"
cdfgData->HIGHMETAL2?->value = "HIGHMETAL2"
cdfgData->LOWMETAL1?->value = "LOWMETAL1"
cdfgData->LOWMETAL2?->value = "LOWMETAL2"
)
)
)
procedure( pcSOIflip( )
prog(()
if( (cdfgData->flip->value == t)
then
cdfgData->SOI1?->value = "SOI2"
cdfgData->SOI2?->value = "SOI1"
)
if( (cdfgData->flip->value == nil)
then
cdfgData->SOI1?->value = "SOI1"
cdfgData->SOI2?->value = "SOI2"
)
)
)