proppy
02/14/2023, 7:29 AMport definition with explicit index in an extraction script?Luis Henrique Rodovalho
02/14/2023, 8:20 AMMitch Bailey
02/14/2023, 8:24 AM.SUBCKT TOP A B C D
...
.ENDS
Extacted netlist
.SUBCKT TOP D C A B
...
.ENDS
Like this you can’t swap the extracted netlist for the source netlist because the ports are in the wrong order.
However, if you rename the extracted netlist (e.g. TOP_ext) and use a wrapper, you can
.SUBCKT TOP_ext D C A B
...
.ENDS
.SUBCKT TOP A B C D
X0 D C A B TOP_ext
.ENDSproppy
02/14/2023, 8:28 AMport NAME index NUMBERproppy
02/14/2023, 8:28 AMproppy
02/14/2023, 8:28 AMTim Edwards
02/14/2023, 2:02 PMreadspice to make all the pins match a netlist. See the documentation:
http://opencircuitdesign.com/magic/commandref/readspice.htmlLuis Henrique Rodovalho
02/14/2023, 8:35 PMTim Edwards
02/14/2023, 9:37 PMLuis Henrique Rodovalho
02/14/2023, 10:14 PMTim Edwards
02/14/2023, 10:17 PM^. That will become the transistor instance name.Tim Edwards
02/14/2023, 10:18 PM20^ should generate device X20.Luis Henrique Rodovalho
02/14/2023, 10:22 PM