Juan Andres
07/11/2022, 3:12 PMRana Muhammad Shahid Jamil
07/11/2022, 3:17 PMTim Edwards
07/11/2022, 7:59 PMport make
and port index
commands) so that the order of ports matches between the schematic and the layout. Otherwise, you will get a random order of pins that works for LVS (because all pins have the correct names in both netlists) but not for simulation (because the port order is different when the cell is instantiated).
The other way to do it is just to check what the port order is in the layout netlist and rearrange the ports in the simulation testbench to match it.Mitch Bailey
07/11/2022, 10:55 PM.subckt top A B C D E F
...
.ends
extracted netlist
.subckt top B C A F D E
...
.ends
test bench spice
Xtop_wrapper A B C D E F top_wrapper
* .include xschem/top.spice
.include extracted/top.spice
.subckt top_wrapper A B C D E F
* xschem simulation
*Xtop A B C D E F top
* extracted simulation
Xtop B C A F D E top
.ends