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
|
#%lvsdb-klayout
# Layout
layout(
top(TOP)
unit(0.001)
# Layer section
# This section lists the mask layers (drawing or derived) and their connections.
# Mask layers
layer(l3 '1/0')
layer(l4 '5/0')
layer(l8 '8/0')
layer(l11 '9/0')
layer(l12)
layer(l13)
layer(l7)
layer(l2)
layer(l9)
layer(l6)
layer(l10)
# Mask layer connectivity
connect(l3 l3 l9)
connect(l4 l4 l8)
connect(l8 l4 l8 l11 l2 l9 l6 l10)
connect(l11 l8 l11 l12)
connect(l12 l11 l12 l13)
connect(l13 l12 l13)
connect(l7 l7)
connect(l2 l8 l2)
connect(l9 l3 l8 l9)
connect(l6 l8 l6)
connect(l10 l8 l10)
# Global nets and connectivity
global(l7 SUBSTRATE)
global(l10 SUBSTRATE)
# Device class section
class(PMOS MOS4)
class(NMOS MOS4)
# Device abstracts section
# Device abstracts list the pin shapes of the devices.
device(D$PMOS PMOS
terminal(S
rect(l2 (-550 -750) (425 1500))
)
terminal(G
rect(l4 (-125 -750) (250 1500))
)
terminal(D
rect(l2 (125 -750) (425 1500))
)
terminal(B
rect(l3 (-125 -750) (250 1500))
)
)
device(D$NMOS NMOS
terminal(S
rect(l6 (-550 -475) (425 950))
)
terminal(G
rect(l4 (-125 -475) (250 950))
)
terminal(D
rect(l6 (125 -475) (425 950))
)
terminal(B
rect(l7 (-125 -475) (250 950))
)
)
# Circuit section
# Circuits are the hierarchical building blocks of the netlist.
circuit(INVX1
# Circuit boundary
rect((-100 400) (2000 7600))
# Nets with their geometries
net(1 name(OUT)
rect(l8 (1110 5160) (180 180))
rect(l8 (-180 920) (180 180))
rect(l8 (-180 -730) (180 180))
rect(l8 (-180 -4120) (180 180))
rect(l8 (-180 370) (180 180))
rect(l11 (-240 -790) (300 4790))
rect(l11 (-150 -2500) (0 0))
rect(l2 (-225 1050) (425 1500))
rect(l6 (-425 -4890) (425 950))
)
net(2 name(VDD)
rect(l3 (-100 4500) (2000 3500))
rect(l8 (-1090 -890) (180 180))
rect(l8 (-580 -1030) (180 180))
rect(l8 (-180 -730) (180 180))
rect(l8 (-180 -730) (180 180))
rect(l11 (-590 1460) (1800 800))
rect(l11 (-1050 -550) (300 300))
rect(l11 (-700 -850) (300 300))
rect(l11 (300 500) (0 0))
rect(l11 (-600 -2200) (300 1400))
rect(l2 (-350 -1450) (425 1500))
rect(l9 (-75 450) (500 500))
)
net(3 name(IN)
rect(l4 (725 2860) (250 1940))
rect(l4 (-525 -1850) (300 300))
rect(l4 (-25 -1840) (250 1450))
rect(l4 (-250 1940) (250 2000))
rect(l4 (-250 -2000) (250 2000))
rect(l8 (-465 -3790) (180 180))
rect(l11 (-90 -90) (0 0))
rect(l11 (-150 -150) (300 300))
)
net(4 name(VSS)
rect(l8 (810 710) (180 180))
rect(l8 (-580 880) (180 180))
rect(l8 (-180 370) (180 180))
rect(l11 (-590 -2100) (1800 800))
rect(l11 (-1050 -550) (300 300))
rect(l11 (-100 -150) (0 0))
rect(l11 (-600 400) (300 1360))
rect(l6 (-350 -900) (425 950))
rect(l10 (-75 -2010) (500 400))
)
# Outgoing pins and their connections to nets
pin(1 name(OUT))
pin(2 name(VDD))
pin(3 name(IN))
pin(4 name(VSS))
# Devices and their connections
device(1 D$PMOS
location(850 5800)
param(L 0.25)
param(W 1.5)
param(AS 0.6375)
param(AD 0.6375)
param(PS 3.85)
param(PD 3.85)
terminal(S 2)
terminal(G 3)
terminal(D 1)
terminal(B 2)
)
device(2 D$NMOS
location(850 2135)
param(L 0.25)
param(W 0.95)
param(AS 0.40375)
param(AD 0.40375)
param(PS 2.75)
param(PD 2.75)
terminal(S 4)
terminal(G 3)
terminal(D 1)
terminal(B 4)
)
)
circuit(DINV
# Circuit boundary
rect((-100 400) (3800 7600))
# Nets with their geometries
net(1 name('A<1>')
rect(l11 (600 3100) (0 0))
)
net(2 name('A<2>')
rect(l11 (2400 3100) (0 0))
)
net(3 name('B<2>')
rect(l11 (3000 4000) (0 0))
)
net(4 name('B<1>')
rect(l11 (1200 4000) (0 0))
)
net(5 name(VDD)
rect(l11 (1800 7200) (0 0))
)
net(6 name(VSS)
rect(l11 (1800 800) (0 0))
)
# Outgoing pins and their connections to nets
pin(1 name('A<1>'))
pin(2 name('A<2>'))
pin(3 name('B<2>'))
pin(5 name(VDD))
pin(6 name(VSS))
# Subcircuits and their connections
circuit(1 INVX1 location(0 0)
pin(0 4)
pin(1 5)
pin(2 1)
pin(3 6)
)
circuit(2 INVX1 location(1800 0)
pin(0 3)
pin(1 5)
pin(2 2)
pin(3 6)
)
)
circuit(TOP
# Circuit boundary
rect((-100 400) (5600 7600))
# Nets with their geometries
net(1
rect(l11 (3100 2950) (950 300))
)
net(2 name(A)
rect(l11 (600 3100) (0 0))
)
net(3 name(C)
rect(l11 (2400 3100) (0 0))
)
net(4 name(SUBSTRATE))
net(5)
net(6)
# Outgoing pins and their connections to nets
pin(2 name(A))
pin(3 name(C))
pin(4 name(SUBSTRATE))
# Subcircuits and their connections
circuit(1 DINV location(0 0)
pin(0 2)
pin(1 3)
pin(2 1)
pin(3 6)
pin(4 4)
)
circuit(2 INVX1 location(3600 0)
pin(0 5)
pin(1 6)
pin(2 1)
pin(3 4)
)
)
)
# Reference netlist
reference(
# Device class section
class(NMOS MOS4)
class(PMOS MOS4)
# Circuit section
# Circuits are the hierarchical building blocks of the netlist.
circuit(INVX1
# Nets
net(1 name(A))
net(2 name(Z))
net(3 name(VSS))
net(4 name(VDD))
# Outgoing pins and their connections to nets
pin(1 name(A))
pin(2 name(Z))
pin(4 name(VDD))
pin(3 name(VSS))
# Devices and their connections
device(1 NMOS
name('0')
param(L 0.25)
param(W 0.95)
param(AS 0)
param(AD 0)
param(PS 0)
param(PD 0)
terminal(S 3)
terminal(G 1)
terminal(D 2)
terminal(B 3)
)
device(2 PMOS
name('1')
param(L 0.25)
param(W 1.5)
param(AS 0)
param(AD 0)
param(PS 0)
param(PD 0)
terminal(S 4)
terminal(G 1)
terminal(D 2)
terminal(B 4)
)
)
circuit(DINV
# Nets
net(1 name('A<1>'))
net(2 name('A<2>'))
net(3 name('B<1>'))
net(4 name('B<2>'))
net(5 name(VDD))
net(6 name(VSS))
# Outgoing pins and their connections to nets
pin(1 name('A<1>'))
pin(2 name('A<2>'))
pin(3 name('B<1>'))
pin(4 name('B<2>'))
pin(5 name(VDD))
pin(6 name(VSS))
# Subcircuits and their connections
circuit(1 INVX1 name(A)
pin(0 1)
pin(1 3)
pin(2 5)
pin(3 6)
)
circuit(2 INVX1 name(B)
pin(0 2)
pin(1 4)
pin(2 5)
pin(3 6)
)
)
circuit(TOP
# Nets
net(1 name(A))
net(2 name(C))
net(3 name(D))
net(4 name(B))
net(5 name(E))
net(6 name(VDD))
net(7 name(VSS))
# Outgoing pins and their connections to nets
pin(1 name(A))
pin(2 name(C))
pin(3 name(D))
pin(6 name(VDD))
pin(7 name(VSS))
# Subcircuits and their connections
circuit(1 DINV name('0')
pin(0 1)
pin(1 2)
pin(2 4)
pin(3 5)
pin(4 6)
pin(5 7)
)
circuit(2 INVX1 name('1')
pin(0 5)
pin(1 3)
pin(2 6)
pin(3 7)
)
)
)
# Cross reference
xref(
circuit(DINV DINV match
log(
entry(warning description('Matching nets B<1> from an ambiguous group of nets'))
entry(warning description('Matching nets B<2> from an ambiguous group of nets'))
entry(info description('Matching nets A<1> following an ambiguous match'))
entry(info description('Matching nets A<2> following an ambiguous match'))
)
xref(
net(1 1 match)
net(2 2 match)
net(4 3 warning)
net(3 4 warning)
net(5 5 match)
net(6 6 match)
pin(() 2 match)
pin(0 0 match)
pin(1 1 match)
pin(2 3 match)
pin(3 4 match)
pin(4 5 match)
circuit(1 1 match)
circuit(2 2 match)
)
)
circuit(INVX1 INVX1 match
xref(
net(3 1 match)
net(1 2 match)
net(2 4 match)
net(4 3 match)
pin(2 0 match)
pin(0 1 match)
pin(1 2 match)
pin(3 3 match)
device(2 1 match)
device(1 2 match)
)
)
circuit(TOP TOP match
xref(
net(5 3 match)
net(1 5 match)
net(6 6 match)
net(2 1 match)
net(3 2 match)
net(4 7 match)
pin(() 2 match)
pin(() 3 match)
pin(0 0 match)
pin(1 1 match)
pin(2 4 match)
circuit(1 1 match)
circuit(2 2 match)
)
)
)
|