diff --git a/npm/examples/extract.tcl b/npm/examples/extract.tcl index 925cca8c..1ae72204 100644 --- a/npm/examples/extract.tcl +++ b/npm/examples/extract.tcl @@ -12,14 +12,25 @@ tech load __TECH__ load /work/__CELL__ -# Write all intermediate files to /work/ so ext2spice can find __CELL__.res.ext -extract do resistance +# Write all intermediate files to /work/ extract path /work + +# Enable resistance extraction +extract do resistance + +# Generate __CELL__.ext extract all -# extresist requires a valid box cursor; span the full layout to be safe +# extresist requires a valid selection/box select top cell + +# Generate __CELL__.res.ext +extresist all + +# SPICE generation settings ext2spice format ngspice ext2spice extresist on ext2spice cthresh 0 -ext2spice /work/__CELL__ + +# Generate __CELL__.spice +ext2spice /work/__CELL__ \ No newline at end of file