Juan Andres
03/10/2023, 3:37 AMMitch Bailey
03/10/2023, 8:22 AMX. ) There is no subckt definition for these devices, so netgen compares them as black boxes - the device names and the terminal connections must match. This is normal behavior.
The equate elements: no current cell is worrisome, though. Can you post your inverter_mag.spice, inverter_spice, and netgen command?Tim Edwards
03/10/2023, 2:31 PMequate elements output suggests that the equate elements command has been added to the setup file, probably in error. equate elements and equate nodes are very obscure, low-level commands that can only be used in the middle of running a comparison. They cannot be used in a setup file because the circuits have not yet been partitioned into nodes and elements.Juan Andres
03/10/2023, 2:33 PMTim Edwards
03/10/2023, 2:36 PM-batch, not -bash.
You also need to specify the netgen setup file, such as /usr/share/pdk/sky130A/libs.tech/netgen/sky130A_setup.tcl.Juan Andres
03/10/2023, 2:38 PMTim Edwards
03/10/2023, 2:39 PMcomp.out output file?Juan Andres
03/10/2023, 2:58 PMJuan Andres
03/10/2023, 3:01 PMTim Edwards
03/10/2023, 4:04 PM** from the .subckt and .ends lines). Then, run the LVS with the name of the subcircuit declared:
netgen -batch lvs "inverter_mag.spice inverter" "inverter.spice inverter" /usr/share/pdk/sky130A/libs.tech/netgen/sky130A_setup.tclTim Edwards
03/10/2023, 4:05 PMMitch Bailey
03/10/2023, 4:22 PMSimulation -> LVS netlist: Top level is a .subcktJuan Andres
03/10/2023, 5:37 PMJuan Andres
03/10/2023, 5:39 PMJuan Andres
03/10/2023, 5:41 PMTim Edwards
03/10/2023, 6:37 PMTop level is a .subckt is set, and then click on Netlist as usual; then your netlist should have uncommented .subckt and .ends lines in it. It really is doing nothing more than just not writing the comment characters in front of those lines. Otherwise, the netlister is behaving exactly the same.Juan Andres
03/10/2023, 6:40 PMTim Edwards
03/10/2023, 6:43 PMJuan Andres
03/10/2023, 6:46 PMMitch Bailey
03/10/2023, 7:46 PMnetgen -batch lvs "inverter_mag.spice inverter" "inverter.spice inverter" $PDK_ROOT/$PDK/libs.tech/netgen/${PDK}_setup.tcl