File: ringo_simple_same_device_classes.lvsdb.2

package info (click to toggle)
klayout 0.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292,204 kB
  • sloc: cpp: 2,068,428; ruby: 47,823; xml: 26,924; python: 14,404; sh: 1,812; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (910 lines) | stat: -rw-r--r-- 16,983 bytes parent folder | download
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
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
#%lvsdb-klayout

# Layout
layout(
 top(RINGO)
 unit(0.001)

 # Layer section
 # This section lists the mask layers (drawing or derived) and their connections.

 # Mask layers
 layer(l3 '1/0')
 layer(l5 '5/0')
 layer(l14 '8/0')
 layer(l17 '9/0')
 layer(l18 '10/0')
 layer(l19 '11/0')
 layer(l8)
 layer(l4)
 layer(l15)
 layer(l9)
 layer(l16)

 # Mask layer connectivity
 connect(l3 l3 l15)
 connect(l5 l5 l14)
 connect(l14 l5 l14 l17 l4 l15 l9 l16)
 connect(l17 l14 l17 l18)
 connect(l18 l17 l18 l19)
 connect(l19 l18 l19)
 connect(l8 l8)
 connect(l4 l14 l4)
 connect(l15 l3 l14 l15)
 connect(l9 l14 l9)
 connect(l16 l14 l16)

 # Global nets and connectivity
 global(l8 SUBSTRATE)
 global(l16 SUBSTRATE)

 # Device class section
 class(PM MOS4)
 class(NM MOS4)
 class(PMHV MOS4)
 class(NMHV MOS4)

 # Device abstracts section
 # Device abstracts list the pin shapes of the devices.
 device(D$PM PM
  terminal(S
   rect(l4 (-550 -750) (425 1500))
  )
  terminal(G
   rect(l5 (-125 -750) (250 1500))
  )
  terminal(D
   rect(l4 (125 -750) (450 1500))
  )
  terminal(B
   rect(l3 (-125 -750) (250 1500))
  )
 )
 device(D$PM$1 PM
  terminal(S
   rect(l4 (-575 -750) (450 1500))
  )
  terminal(G
   rect(l5 (-125 -750) (250 1500))
  )
  terminal(D
   rect(l4 (125 -750) (425 1500))
  )
  terminal(B
   rect(l3 (-125 -750) (250 1500))
  )
 )
 device(D$PM$2 PM
  terminal(S
   rect(l4 (-550 -750) (425 1500))
  )
  terminal(G
   rect(l5 (-125 -750) (250 1500))
  )
  terminal(D
   rect(l4 (125 -750) (425 1500))
  )
  terminal(B
   rect(l3 (-125 -750) (250 1500))
  )
 )
 device(D$NM NM
  terminal(S
   rect(l9 (-550 -475) (425 950))
  )
  terminal(G
   rect(l5 (-125 -475) (250 950))
  )
  terminal(D
   rect(l9 (125 -475) (450 950))
  )
  terminal(B
   rect(l8 (-125 -475) (250 950))
  )
 )
 device(D$NM$1 NM
  terminal(S
   rect(l9 (-575 -475) (450 950))
  )
  terminal(G
   rect(l5 (-125 -475) (250 950))
  )
  terminal(D
   rect(l9 (125 -475) (425 950))
  )
  terminal(B
   rect(l8 (-125 -475) (250 950))
  )
 )
 device(D$NM$2 NM
  terminal(S
   rect(l9 (-550 -475) (425 950))
  )
  terminal(G
   rect(l5 (-125 -475) (250 950))
  )
  terminal(D
   rect(l9 (125 -475) (425 950))
  )
  terminal(B
   rect(l8 (-125 -475) (250 950))
  )
 )

 # Circuit section
 # Circuits are the hierarchical building blocks of the netlist.
 circuit(ND2X1

  # Circuit boundary
  rect((-100 400) (2600 7600))

  # Nets with their geometries
  net(1 name(VDD)
   rect(l14 (1110 5160) (180 180))
   rect(l14 (-180 920) (180 180))
   rect(l14 (-180 -730) (180 180))
   rect(l17 (-240 -790) (300 1700))
   rect(l17 (-1350 0) (2400 800))
   rect(l17 (-1150 -400) (0 0))
   rect(l4 (-275 -2150) (425 1500))
   rect(l4 (-400 -1500) (425 1500))
  )
  net(2 name(OUT)
   rect(l14 (1810 1770) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l14 (-1580 3760) (180 180))
   rect(l14 (-180 -730) (180 180))
   rect(l14 (-180 -730) (180 180))
   rect(l14 (1220 920) (180 180))
   rect(l14 (-180 -1280) (180 180))
   rect(l14 (-180 370) (180 180))
   polygon(l17 (-240 -4180) (0 1390) (490 0) (0 -300) (-190 0) (0 -1090))
   rect(l17 (-110 1390) (300 1400))
   polygon(l17 (-1890 0) (0 600) (300 0) (0 -300) (1590 0) (0 -300))
   rect(l17 (-140 -500) (0 0))
   rect(l17 (-1750 1100) (300 1400))
   rect(l17 (1100 -1700) (300 300))
   rect(l17 (-300 0) (300 1400))
   rect(l4 (-375 -1450) (425 1500))
   rect(l4 (-1800 -1500) (425 1500))
   rect(l9 (950 -4890) (425 950))
  )
  net(3 name(VSS)
   rect(l14 (410 1770) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l17 (-240 -1300) (300 1360))
   rect(l17 (-650 -2160) (2400 800))
   rect(l17 (-1150 -400) (0 0))
   rect(l9 (-950 860) (425 950))
  )
  net(4
   rect(l3 (-100 4500) (2600 3500))
  )
  net(5 name(B)
   rect(l5 (1425 2860) (250 1940))
   rect(l5 (-345 -950) (300 300))
   rect(l5 (-205 650) (250 2000))
   rect(l5 (-250 -2000) (250 2000))
   rect(l5 (-250 -5390) (250 1450))
   rect(l14 (-285 1050) (180 180))
   rect(l17 (-70 -90) (0 0))
   rect(l17 (-170 -150) (300 300))
  )
  net(6 name(A)
   rect(l5 (725 2860) (250 1940))
   rect(l5 (-325 -1850) (300 300))
   rect(l5 (-225 1550) (250 2000))
   rect(l5 (-250 -2000) (250 2000))
   rect(l5 (-250 -5390) (250 1450))
   rect(l14 (-265 150) (180 180))
   rect(l17 (-90 -90) (0 0))
   rect(l17 (-150 -150) (300 300))
  )
  net(7 name(SUBSTRATE))
  net(8
   rect(l9 (975 1660) (425 950))
   rect(l9 (-400 -950) (425 950))
  )

  # Outgoing pins and their connections to nets
  pin(1 name(VDD))
  pin(2 name(OUT))
  pin(3 name(VSS))
  pin(4)
  pin(5 name(B))
  pin(6 name(A))
  pin(7 name(SUBSTRATE))

  # Devices and their connections
  device(1 D$PM
   location(850 5800)
   param(L 0.25)
   param(W 1.5)
   param(AS 0.6375)
   param(AD 0.3375)
   param(PS 3.85)
   param(PD 1.95)
   terminal(S 2)
   terminal(G 6)
   terminal(D 1)
   terminal(B 4)
  )
  device(2 D$PM$1
   location(1550 5800)
   param(L 0.25)
   param(W 1.5)
   param(AS 0.3375)
   param(AD 0.6375)
   param(PS 1.95)
   param(PD 3.85)
   terminal(S 1)
   terminal(G 5)
   terminal(D 2)
   terminal(B 4)
  )
  device(3 D$NM
   location(850 2135)
   param(L 0.25)
   param(W 0.95)
   param(AS 0.40375)
   param(AD 0.21375)
   param(PS 2.75)
   param(PD 1.4)
   terminal(S 3)
   terminal(G 6)
   terminal(D 8)
   terminal(B 7)
  )
  device(4 D$NM$1
   location(1550 2135)
   param(L 0.25)
   param(W 0.95)
   param(AS 0.21375)
   param(AD 0.40375)
   param(PS 1.4)
   param(PD 2.75)
   terminal(S 8)
   terminal(G 5)
   terminal(D 2)
   terminal(B 7)
  )

 )
 circuit(INVX1

  # Circuit boundary
  rect((-100 400) (2000 7600))

  # Nets with their geometries
  net(1 name(VDD)
   rect(l14 (410 6260) (180 180))
   rect(l14 (-180 -730) (180 180))
   rect(l14 (-180 -730) (180 180))
   rect(l17 (-240 -240) (300 1400))
   rect(l17 (-650 300) (1800 800))
   rect(l17 (-1450 -1100) (300 300))
   rect(l17 (300 400) (0 0))
   rect(l4 (-650 -2150) (425 1500))
  )
  net(2 name(OUT)
   rect(l14 (1110 5160) (180 180))
   rect(l14 (-180 920) (180 180))
   rect(l14 (-180 -730) (180 180))
   rect(l14 (-180 -4120) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l17 (-240 -790) (300 4790))
   rect(l17 (-150 -2500) (0 0))
   rect(l4 (-225 1050) (425 1500))
   rect(l9 (-425 -4890) (425 950))
  )
  net(3 name(VSS)
   rect(l14 (410 1770) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l17 (-240 -1300) (300 1360))
   rect(l17 (-650 -2160) (1800 800))
   rect(l17 (-850 -400) (0 0))
   rect(l9 (-650 860) (425 950))
  )
  net(4
   rect(l3 (-100 4500) (2000 3500))
  )
  net(5 name(IN)
   rect(l5 (725 2860) (250 1940))
   rect(l5 (-525 -1850) (300 300))
   rect(l5 (-25 1550) (250 2000))
   rect(l5 (-250 -2000) (250 2000))
   rect(l5 (-250 -5390) (250 1450))
   rect(l14 (-465 150) (180 180))
   rect(l17 (-90 -90) (0 0))
   rect(l17 (-150 -150) (300 300))
  )
  net(6 name(SUBSTRATE))

  # Outgoing pins and their connections to nets
  pin(1 name(VDD))
  pin(2 name(OUT))
  pin(3 name(VSS))
  pin(4)
  pin(5 name(IN))
  pin(6 name(SUBSTRATE))

  # Devices and their connections
  device(1 D$PM$2
   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 1)
   terminal(G 5)
   terminal(D 2)
   terminal(B 4)
  )
  device(2 D$NM$2
   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 3)
   terminal(G 5)
   terminal(D 2)
   terminal(B 6)
  )

 )
 circuit(RINGO

  # Circuit boundary
  rect((0 350) (25800 7650))

  # Nets with their geometries
  net(1
   rect(l17 (4040 2950) (610 300))
  )
  net(2
   rect(l17 (5550 2950) (900 300))
  )
  net(3
   rect(l17 (7350 2950) (900 300))
  )
  net(4
   rect(l17 (9150 2950) (900 300))
  )
  net(5
   rect(l17 (10950 2950) (900 300))
  )
  net(6
   rect(l17 (12750 2950) (900 300))
  )
  net(7
   rect(l17 (14550 2950) (900 300))
  )
  net(8
   rect(l17 (16350 2950) (900 300))
  )
  net(9
   rect(l17 (18150 2950) (900 300))
  )
  net(10
   rect(l17 (19950 2950) (900 300))
  )
  net(11 name(FB)
   rect(l17 (21750 2950) (900 300))
   rect(l17 (-19530 590) (320 320))
   rect(l17 (17820 -320) (320 320))
   rect(l18 (-18400 -260) (200 200))
   rect(l18 (17940 -200) (200 200))
   rect(l19 (-18040 -300) (17740 400))
   rect(l19 (-17920 -200) (0 0))
   rect(l19 (-220 -200) (400 400))
   rect(l19 (17740 -400) (400 400))
  )
  net(12 name(VDD)
   rect(l3 (500 4500) (1400 3500))
   rect(l3 (-1900 -3500) (600 3500))
   rect(l3 (23300 -3500) (1400 3500))
   rect(l3 (-100 -3500) (600 3500))
   rect(l14 (-24690 -1240) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l14 (-180 -1280) (180 180))
   rect(l14 (23220 370) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l14 (-180 -1280) (180 180))
   rect(l17 (-21740 860) (0 0))
   rect(l17 (-2350 -450) (1200 800))
   rect(l17 (-750 -1450) (300 1400))
   rect(l17 (-100 -350) (0 0))
   rect(l17 (-1250 -400) (600 800))
   rect(l17 (23400 -800) (1200 800))
   rect(l17 (-750 -1450) (300 1400))
   rect(l17 (-100 -350) (0 0))
   rect(l17 (550 -400) (600 800))
   rect(l15 (-24850 -1500) (500 1500))
   rect(l15 (22900 -1500) (500 1500))
  )
  net(13 name(OUT)
   rect(l17 (23440 3840) (320 320))
   rect(l18 (-260 -260) (200 200))
   rect(l19 (-100 -100) (0 0))
   rect(l19 (-200 -200) (400 400))
  )
  net(14 name(ENABLE)
   rect(l17 (2440 2940) (320 320))
   rect(l18 (-260 -260) (200 200))
   rect(l19 (-100 -100) (0 0))
   rect(l19 (-200 -200) (400 400))
  )
  net(15 name(VSS)
   rect(l14 (1110 1610) (180 180))
   rect(l14 (-180 -1280) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l14 (23220 370) (180 180))
   rect(l14 (-180 -1280) (180 180))
   rect(l14 (-180 370) (180 180))
   rect(l17 (-21740 -390) (0 0))
   rect(l17 (-1900 -400) (300 1400))
   rect(l17 (-750 -1450) (1200 800))
   rect(l17 (-550 -400) (0 0))
   rect(l17 (-1250 -400) (600 800))
   rect(l17 (23850 -750) (300 1400))
   rect(l17 (-750 -1450) (1200 800))
   rect(l17 (-550 -400) (0 0))
   rect(l17 (550 -400) (600 800))
   rect(l16 (-24850 -800) (500 1500))
   rect(l16 (22900 -1500) (500 1500))
  )

  # Outgoing pins and their connections to nets
  pin(11 name(FB))
  pin(12 name(VDD))
  pin(13 name(OUT))
  pin(14 name(ENABLE))
  pin(15 name(VSS))

  # Subcircuits and their connections
  circuit(1 ND2X1 location(1800 0)
   pin(0 12)
   pin(1 1)
   pin(2 15)
   pin(3 12)
   pin(4 11)
   pin(5 14)
   pin(6 15)
  )
  circuit(2 INVX1 location(4200 0)
   pin(0 12)
   pin(1 2)
   pin(2 15)
   pin(3 12)
   pin(4 1)
   pin(5 15)
  )
  circuit(3 INVX1 location(6000 0)
   pin(0 12)
   pin(1 3)
   pin(2 15)
   pin(3 12)
   pin(4 2)
   pin(5 15)
  )
  circuit(4 INVX1 location(7800 0)
   pin(0 12)
   pin(1 4)
   pin(2 15)
   pin(3 12)
   pin(4 3)
   pin(5 15)
  )
  circuit(5 INVX1 location(9600 0)
   pin(0 12)
   pin(1 5)
   pin(2 15)
   pin(3 12)
   pin(4 4)
   pin(5 15)
  )
  circuit(6 INVX1 location(11400 0)
   pin(0 12)
   pin(1 6)
   pin(2 15)
   pin(3 12)
   pin(4 5)
   pin(5 15)
  )
  circuit(7 INVX1 location(13200 0)
   pin(0 12)
   pin(1 7)
   pin(2 15)
   pin(3 12)
   pin(4 6)
   pin(5 15)
  )
  circuit(8 INVX1 location(15000 0)
   pin(0 12)
   pin(1 8)
   pin(2 15)
   pin(3 12)
   pin(4 7)
   pin(5 15)
  )
  circuit(9 INVX1 location(16800 0)
   pin(0 12)
   pin(1 9)
   pin(2 15)
   pin(3 12)
   pin(4 8)
   pin(5 15)
  )
  circuit(10 INVX1 location(18600 0)
   pin(0 12)
   pin(1 10)
   pin(2 15)
   pin(3 12)
   pin(4 9)
   pin(5 15)
  )
  circuit(11 INVX1 location(20400 0)
   pin(0 12)
   pin(1 11)
   pin(2 15)
   pin(3 12)
   pin(4 10)
   pin(5 15)
  )
  circuit(12 INVX1 location(22200 0)
   pin(0 12)
   pin(1 13)
   pin(2 15)
   pin(3 12)
   pin(4 11)
   pin(5 15)
  )

 )
)

# Reference netlist
reference(

 # Device class section
 class(PMOS MOS4)
 class(NMOS MOS4)

 # Circuit section
 # Circuits are the hierarchical building blocks of the netlist.
 circuit(ND2X1

  # Nets
  net(1 name(VDD))
  net(2 name(OUT))
  net(3 name(VSS))
  net(4 name(NWELL))
  net(5 name(B))
  net(6 name(A))
  net(7 name(BULK))
  net(8 name('1'))

  # Outgoing pins and their connections to nets
  pin(1 name(VDD))
  pin(2 name(OUT))
  pin(3 name(VSS))
  pin(4 name(NWELL))
  pin(5 name(B))
  pin(6 name(A))
  pin(7 name(BULK))

  # Devices and their connections
  device(1 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 1)
   terminal(G 6)
   terminal(D 2)
   terminal(B 4)
  )
  device(2 PMOS
   name($2)
   param(L 0.25)
   param(W 1.5)
   param(AS 0)
   param(AD 0)
   param(PS 0)
   param(PD 0)
   terminal(S 1)
   terminal(G 5)
   terminal(D 2)
   terminal(B 4)
  )
  device(3 NMOS
   name($3)
   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 6)
   terminal(D 8)
   terminal(B 7)
  )
  device(4 NMOS
   name($4)
   param(L 0.25)
   param(W 0.95)
   param(AS 0)
   param(AD 0)
   param(PS 0)
   param(PD 0)
   terminal(S 8)
   terminal(G 5)
   terminal(D 2)
   terminal(B 7)
  )

 )
 circuit(INVX1

  # Nets
  net(1 name(VDD))
  net(2 name(OUT))
  net(3 name(VSS))
  net(4 name(NWELL))
  net(5 name(IN))
  net(6 name(BULK))

  # Outgoing pins and their connections to nets
  pin(1 name(VDD))
  pin(2 name(OUT))
  pin(3 name(VSS))
  pin(4 name(NWELL))
  pin(5 name(IN))
  pin(6 name(BULK))

  # Devices and their connections
  device(1 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 1)
   terminal(G 5)
   terminal(D 2)
   terminal(B 4)
  )
  device(2 NMOS
   name($2)
   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 5)
   terminal(D 2)
   terminal(B 6)
  )

 )
 circuit(RINGO

  # Nets
  net(1 name(VSS))
  net(2 name(VDD))
  net(3 name(FB))
  net(4 name(ENABLE))
  net(5 name(OUT))
  net(6 name('1'))
  net(7 name('2'))
  net(8 name('3'))
  net(9 name('4'))
  net(10 name('5'))
  net(11 name('6'))
  net(12 name('7'))
  net(13 name('8'))
  net(14 name('9'))
  net(15 name('10'))

  # Outgoing pins and their connections to nets
  pin(1 name(VSS))
  pin(2 name(VDD))
  pin(3 name(FB))
  pin(4 name(ENABLE))
  pin(5 name(OUT))

  # Subcircuits and their connections
  circuit(1 ND2X1 name($1)
   pin(0 2)
   pin(1 6)
   pin(2 1)
   pin(3 2)
   pin(4 3)
   pin(5 4)
   pin(6 1)
  )
  circuit(2 INVX1 name($2)
   pin(0 2)
   pin(1 7)
   pin(2 1)
   pin(3 2)
   pin(4 6)
   pin(5 1)
  )
  circuit(3 INVX1 name($3)
   pin(0 2)
   pin(1 8)
   pin(2 1)
   pin(3 2)
   pin(4 7)
   pin(5 1)
  )
  circuit(4 INVX1 name($4)
   pin(0 2)
   pin(1 9)
   pin(2 1)
   pin(3 2)
   pin(4 8)
   pin(5 1)
  )
  circuit(5 INVX1 name($5)
   pin(0 2)
   pin(1 10)
   pin(2 1)
   pin(3 2)
   pin(4 9)
   pin(5 1)
  )
  circuit(6 INVX1 name($6)
   pin(0 2)
   pin(1 11)
   pin(2 1)
   pin(3 2)
   pin(4 10)
   pin(5 1)
  )
  circuit(7 INVX1 name($7)
   pin(0 2)
   pin(1 12)
   pin(2 1)
   pin(3 2)
   pin(4 11)
   pin(5 1)
  )
  circuit(8 INVX1 name($8)
   pin(0 2)
   pin(1 13)
   pin(2 1)
   pin(3 2)
   pin(4 12)
   pin(5 1)
  )
  circuit(9 INVX1 name($9)
   pin(0 2)
   pin(1 14)
   pin(2 1)
   pin(3 2)
   pin(4 13)
   pin(5 1)
  )
  circuit(10 INVX1 name($10)
   pin(0 2)
   pin(1 15)
   pin(2 1)
   pin(3 2)
   pin(4 14)
   pin(5 1)
  )
  circuit(11 INVX1 name($11)
   pin(0 2)
   pin(1 3)
   pin(2 1)
   pin(3 2)
   pin(4 15)
   pin(5 1)
  )
  circuit(12 INVX1 name($12)
   pin(0 2)
   pin(1 5)
   pin(2 1)
   pin(3 2)
   pin(4 3)
   pin(5 1)
  )

 )
)

# Cross reference
xref(
 circuit(INVX1 INVX1 match
  xref(
   net(4 4 match)
   net(5 5 match)
   net(2 2 match)
   net(6 6 match)
   net(1 1 match)
   net(3 3 match)
   pin(3 3 match)
   pin(4 4 match)
   pin(1 1 match)
   pin(5 5 match)
   pin(0 0 match)
   pin(2 2 match)
   device(2 2 match)
   device(1 1 match)
  )
 )
 circuit(ND2X1 ND2X1 match
  xref(
   net(8 8 match)
   net(4 4 match)
   net(6 6 match)
   net(5 5 match)
   net(2 2 match)
   net(7 7 match)
   net(1 1 match)
   net(3 3 match)
   pin(3 3 match)
   pin(5 5 match)
   pin(4 4 match)
   pin(1 1 match)
   pin(6 6 match)
   pin(0 0 match)
   pin(2 2 match)
   device(3 3 match)
   device(4 4 match)
   device(1 1 match)
   device(2 2 match)
  )
 )
 circuit(RINGO RINGO match
  xref(
   net(1 6 match)
   net(10 15 match)
   net(2 7 match)
   net(3 8 match)
   net(4 9 match)
   net(5 10 match)
   net(6 11 match)
   net(7 12 match)
   net(8 13 match)
   net(9 14 match)
   net(14 4 match)
   net(11 3 match)
   net(13 5 match)
   net(12 2 match)
   net(15 1 match)
   pin(3 3 match)
   pin(0 2 match)
   pin(2 4 match)
   pin(1 1 match)
   pin(4 0 match)
   circuit(2 2 match)
   circuit(3 3 match)
   circuit(4 4 match)
   circuit(5 5 match)
   circuit(6 6 match)
   circuit(7 7 match)
   circuit(8 8 match)
   circuit(9 9 match)
   circuit(10 10 match)
   circuit(11 11 match)
   circuit(12 12 match)
   circuit(1 1 match)
  )
 )
)