From 36207ad12b391b66665ab5b40d7d86cadbe9c49b Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 3 May 2023 00:28:55 +0200 Subject: [PATCH] update test_mosgen.sch --- xschem_library/generators/test_mosgen.sch | 118 +++++++++++++++++----- 1 file changed, 92 insertions(+), 26 deletions(-) diff --git a/xschem_library/generators/test_mosgen.sch b/xschem_library/generators/test_mosgen.sch index 10070499..cd6975a8 100644 --- a/xschem_library/generators/test_mosgen.sch +++ b/xschem_library/generators/test_mosgen.sch @@ -5,39 +5,105 @@ K {} V {} S {} E {} -N 500 -140 610 -140 { -lab=#net1} N 500 -230 500 -170 { -lab=#net2} +lab=#net1} N 390 -140 460 -140 { -lab=#net3} +lab=IN} N 500 -110 500 -50 { -lab=#net4} -N 790 -140 900 -140 { -lab=#net5} +lab=GND} N 790 -230 790 -170 { -lab=#net6} +lab=OUT} N 680 -140 750 -140 { -lab=#net7} +lab=#net1} N 790 -110 790 -50 { -lab=#net8} -N 500 -260 610 -260 { -lab=#net9} +lab=GND} N 390 -260 460 -260 { -lab=#net10} -N 790 -260 900 -260 { -lab=#net11} +lab=IN} N 680 -260 750 -260 { -lab=#net12} +lab=#net1} N 500 -350 500 -290 { -lab=#net13} +lab=VDD} N 790 -350 790 -290 { -lab=#net14} -C {mosgen(@model)} 480 -140 0 0 {name=x1 -model=nfet_01v8} -C {mosgen(@model)} 770 -140 0 0 {name=x2 -model=nfet_g5v0d10v5} -C {mosgen(@model)} 480 -260 0 0 {name=x3 -model=pfet_01v8} -C {mosgen(@model)} 770 -260 0 0 {name=x4 -model=pfet_g5v0d10v5} +lab=VDD} +N 790 -140 790 -110 { +lab=GND} +N 500 -140 500 -110 { +lab=GND} +N 500 -290 500 -260 { +lab=VDD} +N 790 -290 790 -260 { +lab=VDD} +N 680 -260 680 -140 { +lab=#net1} +N 500 -200 680 -200 { +lab=#net1} +N 390 -260 390 -140 { +lab=IN} +N 500 -50 790 -50 { +lab=GND} +N 500 -350 790 -350 { +lab=VDD} +N 340 -200 390 -200 { +lab=IN} +N 790 -200 900 -200 { +lab=OUT} +C {xschem-repo/trunk/xschem_library/devices/ipin.sym} 340 -200 0 0 {name=p1 lab=IN} +C {xschem-repo/trunk/xschem_library/devices/opin.sym} 900 -200 0 0 {name=p2 lab=OUT} +C {xschem-repo/trunk/xschem_library/devices/vdd.sym} 640 -350 0 0 {name=l1 lab=VDD} +C {xschem-repo/trunk/xschem_library/devices/gnd.sym} 640 -50 0 0 {name=l2 lab=GND} +C {mosgen(@model\\)} 480 -260 0 0 {name=M1 +L=0.15 +W=1 +nf=1 +mult=1 +ad="'int((nf+1)/2) * W/nf * 0.29'" +pd="'2*int((nf+1)/2) * (W/nf + 0.29)'" +as="'int((nf+2)/2) * W/nf * 0.29'" +ps="'2*int((nf+2)/2) * (W/nf + 0.29)'" +nrd="'0.29 / W'" nrs="'0.29 / W'" +sa=0 sb=0 sd=0 +model=pfet_01v8 +spiceprefix=X +} +C {mosgen(@model\\)} 480 -140 0 0 {name=M2 +L=0.15 +W=1 +nf=1 +mult=1 +ad="'int((nf+1)/2) * W/nf * 0.29'" +pd="'2*int((nf+1)/2) * (W/nf + 0.29)'" +as="'int((nf+2)/2) * W/nf * 0.29'" +ps="'2*int((nf+2)/2) * (W/nf + 0.29)'" +nrd="'0.29 / W'" nrs="'0.29 / W'" +sa=0 sb=0 sd=0 +model=nfet_01v8 +spiceprefix=X +} +C {mosgen(@model\\)} 770 -260 0 0 {name=M3 +L=0.15 +W=1 +nf=1 +mult=1 +ad="'int((nf+1)/2) * W/nf * 0.29'" +pd="'2*int((nf+1)/2) * (W/nf + 0.29)'" +as="'int((nf+2)/2) * W/nf * 0.29'" +ps="'2*int((nf+2)/2) * (W/nf + 0.29)'" +nrd="'0.29 / W'" nrs="'0.29 / W'" +sa=0 sb=0 sd=0 +model=pfet_g5v0d10v5 +spiceprefix=X +} +C {mosgen(@model\\)} 770 -140 0 0 {name=M4 +L=0.15 +W=1 +nf=1 +mult=1 +ad="'int((nf+1)/2) * W/nf * 0.29'" +pd="'2*int((nf+1)/2) * (W/nf + 0.29)'" +as="'int((nf+2)/2) * W/nf * 0.29'" +ps="'2*int((nf+2)/2) * (W/nf + 0.29)'" +nrd="'0.29 / W'" nrs="'0.29 / W'" +sa=0 sb=0 sd=0 +model=nfet_g5v0d10v5 +spiceprefix=X +}