mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-08 04:08:14 +02:00
WIP: bug fixing, new test cases
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
|
||||
* recursive expansion of parametrized subcircuits
|
||||
|
||||
Xsub1a a b c sub1 w=1.5 l=0.15
|
||||
Xsub1b a b c sub1 w=3.0 l=0.25
|
||||
|
||||
.subckt sub1 n1 n2 n3 w=1.0 l=0.5
|
||||
Xsub2a n1 n2 n3 sub2 w l m=1
|
||||
Xsub2b n1 n2 n3 sub2 w l m=2
|
||||
.ends
|
||||
|
||||
.subckt sub2 n1 n2 n3 w=0.0 l=0.0 m=0
|
||||
Mnmos n1 n2 n3 n1 nmos w=w l=l m=m
|
||||
.ends
|
||||
|
||||
Vendored
+59
@@ -0,0 +1,59 @@
|
||||
** sch_path:
|
||||
*+ /home/matthias/dev/bag/mosaic_bag/opensource_db_template/inverter1_generated_sky130_fd_pr/inverter1/inverter1.sch
|
||||
**.subckt inverter1 I Q VDD VSS
|
||||
*.ipin I
|
||||
*.opin Q
|
||||
*.iopin VDD
|
||||
*.iopin VSS
|
||||
XXpmos Q I VDD VDD pmos4_standard w=1.5u l=150n nf=4
|
||||
XXnmos Q I VSS VSS nmos4_standard w=1.5u l=150n nf=4
|
||||
XXDUMMY0 VSS VSS VSS VSS nmos4_standard w=1.5u l=150n nf=2
|
||||
XXDUMMY1 VSS VSS VSS VSS nmos4_standard w=1.5u l=150n nf=2
|
||||
XXDUMMY2 VDD VDD VDD VDD pmos4_standard w=1.5u l=150n nf=2
|
||||
XXDUMMY3 VDD VDD VDD VDD pmos4_standard w=1.5u l=150n nf=2
|
||||
**.ends
|
||||
|
||||
* expanding symbol: BAG_prim/pmos4_standard/pmos4_standard.sym # of pins=4
|
||||
** sym_path:
|
||||
*+ /home/matthias/dev/bag/mosaic_bag/opensource_db_template/BAG2_technology_definition/BAG_prim/pmos4_standard/pmos4_standard.sym
|
||||
** sch_path:
|
||||
*+ /home/matthias/dev/bag/mosaic_bag/opensource_db_template/BAG2_technology_definition/BAG_prim/pmos4_standard/pmos4_standard.sch
|
||||
.subckt pmos4_standard D G S B model w l nf
|
||||
w=100n
|
||||
l=18n
|
||||
nf=4
|
||||
model=pmos4_standard
|
||||
spiceprefix=X
|
||||
|
||||
*.iopin D
|
||||
*.iopin G
|
||||
*.iopin S
|
||||
*.iopin B
|
||||
MM1 D G S B sky130_fd_pr__pfet_01v8 L=l W=w ad='int((nf+1)/2) * W/nf * 0.29u' as='int((nf+2)/2) * W/nf * 0.29u'
|
||||
+ pd='2*int((nf+1)/2) * (W + 0.29u)/nf' ps='2*int((nf+2)/2) * (W + 0.29u)/nf' nrd='0.29u / W' nrs='0.29u / W'
|
||||
+ sa=0 sb=0 sd=0 mult=1 m=nf
|
||||
.ends
|
||||
|
||||
|
||||
* expanding symbol: BAG_prim/nmos4_standard/nmos4_standard.sym # of pins=4
|
||||
** sym_path:
|
||||
*+ /home/matthias/dev/bag/mosaic_bag/opensource_db_template/BAG2_technology_definition/BAG_prim/nmos4_standard/nmos4_standard.sym
|
||||
** sch_path:
|
||||
*+ /home/matthias/dev/bag/mosaic_bag/opensource_db_template/BAG2_technology_definition/BAG_prim/nmos4_standard/nmos4_standard.sch
|
||||
.subckt nmos4_standard D G S B model w l nf
|
||||
w=100n
|
||||
l=18n
|
||||
nf=4
|
||||
model=nmos4_standard
|
||||
spiceprefix=X
|
||||
|
||||
*.iopin D
|
||||
*.iopin G
|
||||
*.iopin S
|
||||
*.iopin B
|
||||
MM1 D G S B sky130_fd_pr__nfet_01v8 L=l W=w ad='int((nf+1)/2) * W/nf * 0.29u' as='int((nf+2)/2) * W/nf * 0.29u'
|
||||
+ pd='2*int((nf+1)/2) * (W + 0.29u)/nf' ps='2*int((nf+2)/2) * (W + 0.29u)/nf' nrd='0.29u / W' nrs='0.29u / W'
|
||||
+ sa=0 sb=0 sd=0 mult=1 m=nf
|
||||
.ends
|
||||
|
||||
.end
|
||||
Reference in New Issue
Block a user