Matt Venn
04/07/2024, 11:03 AMset project [lindex $argv $argc-1]
load $project.mag
flatten tt_um_flat
load tt_um_flat
select top cell
cellname delete $project
cellname rename tt_um_flat ${project}_parax
extract all
ext2sim labels on
ext2sim
extresist tolerance 10
extresist
ext2spice lvs
ext2spice cthresh 0
ext2spice extresist on
ext2spice
ext2spice -d -o $project.sim.spice
quit -noprompt
Matt Venn
04/07/2024, 11:03 AMMitch Bailey
04/07/2024, 11:24 AMMatt Venn
04/07/2024, 11:37 AMMatt Venn
04/07/2024, 11:38 AMMitch Bailey
04/07/2024, 11:44 AMTim Edwards
04/07/2024, 2:54 PMext2spice
twice. Also, the second time you are using -d
, which has been deprecated. I also wouldn't use "sim" in the name---you can simulate any valid netlist; I generally prefer "rcx" to be clear that the netlist has full R-C parasitics, although the way I actually do it is to just keep the default name and move it to a directory called "netlist/rcx". But anyway, following your style there, I would suggest ext2spice -o ${project}.sim.spice
and remove the line with ext2spice
by itself. Also, usually I go for a cthresh
value of 0.1 so that magic doesn't output a bunch of ridiculously tiny capacitors. The impact on simulation will be negligible.