Vicente Osorio

02/03/2023, 9:14 PM
Hello @Tim Edwards, I wanted to make the parasitic extraction for my layout so I can make a post layout simulation, but there are some things I don't know how to do. The command lines I've entered are the ones below:
extract all
ext2sim labels on
extresist tolerance 10
ext2spice extresist on
ext2spice rthresh 1
My main problem is how to extract resistors from the layout to SPICE. I don't understand from the documentation how does the tolerance work. Also, when I do extresist I receive the message
"Bad Device Location at ... "
various times. With those lines, I don't get any resistance at the output SPICE file. If you need any of the files, let me know 😄.

Tim Edwards

02/04/2023, 1:50 AM
Take a look at the script from user JC a couple of posts up. That script is what you want to use. You will get the "Bad Device" errors if you don't flatten the circuit. Also, you want to set option "cthresh" to zero (to capture all parasitic capacitances) but not "rthresh" (which is a mostly misunderstood option that doesn't extract resistances in any way meaningful to ngspice or any other SPICE simulator).
😲 1

Vicente Osorio

02/06/2023, 12:21 PM
Thank you very much, it worked! If it doesn't extract anything meaningful for SPICE, what does
👍 1