Weston Braun
05/08/2021, 5:43 AMX0 vss.t54 m1_n4941_3600.t20 m1_n6489_502.t23 vss sky130_fd_pr__nfet_g5v0d10v5 ad=0p pd=0u as=0p ps=0u w=0u l=0u
Diego Hernando
05/18/2021, 4:26 PMextresist
. If I don't extract resistance, there are no zero sized devices.
The full extractions command i'm using are:
extract all
ext2sim labels on
ext2sim
extresist tolerance 10
extresist all
ext2spice lvs
ext2spice hierarchy on
ext2spice subcircuit on
ext2spice scale off
ext2spice cthresh 0.01
ext2spice extresist on
ext2spice
Weston Braun
05/18/2021, 6:41 PMload folded_cascode_n_in
box 0 0 0 0
flatten folded_cascode_n_in_extracted
load folded_cascode_n_in_extracted
box -100um -100um 100um 100um
port ibias index 1
port in_m index 2
port in_p index 3
port out index 4
port vdd index 5
port vss index 6
extract all
ext2spice lvs
ext2spice -o folded_cascode_n_lvs.spice
extract all
ext2sim labels on
ext2sim
extresist tolerance 10
extresist
ext2spice lvs
ext2spice cthresh 0.01
ext2spice -o folded_cascode_n_pex.spice
ext2spice extresist on
ext2spice -o folded_cascode_n_w_res_pex.spice
Tim Edwards
05/19/2021, 7:07 PMWeston Braun
05/19/2021, 7:21 PMDon't ever flatten a design unless you have to, as it makes everything so much more complicated.
Diego Hernando
05/19/2021, 8:11 PMflatten
before the extraction. This also solves the floatting parasitics.Tim Edwards
05/20/2021, 1:24 AMDiego Hernando
05/20/2021, 7:34 PMextresist
command makes magic crash (segmentation fault) as the desing gets more complex. I've tried this with and without flattening the design, and in both cases magic crashes,
The C extraction works fine everytime i run it.Tim Edwards
05/20/2021, 8:55 PMextresist
has not been tested on nearly as many cases as the standard extraction. If you have a crash condition, please tarball up the example so I can look into it.Diego Hernando
05/20/2021, 9:34 PMpex_commands.txt
files with the several cases i have tested in orden to get a PEX.
After a couple of more runs, i think the issue is between the ports and the extresist command. If i don't generate ports (port make ...) the extraction works with falttening (there are no zero-sized devices) and without flattening (there are zero-sized devices). However without ports it's complicated to run simulations in ngspice of the extracted devices.
Thanks for your help.Fredy Solis
05/26/2021, 7:01 PMTim Edwards
05/26/2021, 7:06 PMFredy Solis
05/27/2021, 8:05 PM