Harald Pretl
11/09/2023, 9:50 AMTim Edwards
11/09/2023, 2:00 PMreadspice to read in the netlist while you have the layout loaded, and the pins in the layout will be matched to the netlist and the ports ordered to match. There are similar methods to annotate layouts from other formats; doing a lef read on top of a layout will annotate the ports with LEF pin properties like use and direction.Tim Edwards
11/09/2023, 2:01 PMreadspice should work with nothing more than a black-box entry for the subcircuit.Harald Pretl
11/09/2023, 5:52 PMOL2?Harald Pretl
11/09/2023, 5:53 PMTim Edwards
11/09/2023, 5:53 PMdonn
11/09/2023, 6:28 PMHarald Pretl
11/09/2023, 6:46 PMxschem testbench.Mitch Bailey
11/09/2023, 11:35 PMX0 instances.
.subckt test_circuitA
X0 A B C D circuitA_wrapper
.ends
.subckt circuitA_wrapper A B C D
X0 A B C D circuitA_xschem
*X0 D C B A circuitA_extracted
.ends
.subckt circuitA_xschem A B C D
...
.ends
.subckt circuitA_extracted D C B A
...
.ends
Or you could wrap the extracted circuit so it looks like a the source and switch includes
.include xschem/circuitA.spice
* .include ext/circuitA.spice
where ext/circuitA.spice is
.subckt circuitA .....
* pin order the same as xschem
X0 ..... CircuitA_ext
* pin order from extracted file
.ends
.include ext/CircuitA_ext.spiceTim Edwards
11/10/2023, 12:56 AMMitch Bailey
11/10/2023, 1:04 AMHarald Pretl
11/10/2023, 6:07 AM