Nelson Rodriguez
04/22/2023, 12:24 PMStefan Schippers
04/23/2023, 7:10 AMStefan Schippers
04/23/2023, 7:18 AMtype=subcircuit
and add the following attribute at the end:
spice_sym_def="
.subckt inverter A Y VPWR VGND
...
...
...
.ends
"
that is copy the thesis_inv text into it.
Alternatively you can do:
spice_sym_def=".include /path/to/thesis_inv.ext'
when generating the netlist ensure the pin order of the inverter
symbol matches your extracted netlist.
If the pin order does not match change the order in the text file above.
You see above i have renamed thesis_inv
to inverter
since this is the name of the xschem symbol.z-a-p-k-i-n-g
04/25/2023, 2:15 AMz-a-p-k-i-n-g
04/25/2023, 2:53 AMStefan Schippers
04/25/2023, 7:21 AMspice_sym_def
is properly quoted. If there are double quotes inside the (quoted) text these must be escaped (\"
)
spice_sym_def="...
...
...
..."
z-a-p-k-i-n-g
04/25/2023, 7:27 AMStefan Schippers
04/25/2023, 7:30 AMxschem
? this feature was added end of september 2022. if not try to update and rebuild. the spice_sym_def attribute must be placed in the symbol. Descend into the symbol, press 'q' and add the spice_sym_def attribute.z-a-p-k-i-n-g
04/25/2023, 7:33 AMz-a-p-k-i-n-g
04/25/2023, 8:24 AM