From be0c90337efbee8cc435e7503e41664bc781bcbd Mon Sep 17 00:00:00 2001 From: Enno Schnackenberg <41478036+Intubun@users.noreply.github.com> Date: Thu, 7 May 2026 07:17:45 +0200 Subject: [PATCH] Update extract.tcl --- npm/examples/extract.tcl | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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