Pathan Rehman Ahmed khan-student
10/21/2024, 4:36 PMMitch Bailey
10/21/2024, 4:46 PMnetgen -batch lvs "magic_file.spice cellname" "xschem_file.spice cellname" sky130_setup.tcl
3. For LVS, you probably don’t want ext2sim
but probably should use ext2spice lvs
before ext2spice
.
4. Looks like the mag file is missing ports. Check the documentation on how to create ports (not just text). Without ports, the top layout is not extracted as a subckt.Pathan Rehman Ahmed khan-student
10/21/2024, 4:51 PMMitch Bailey
10/21/2024, 5:06 PMTim Edwards
10/21/2024, 6:38 PMext2spice lvs
before you do ext2spice
. Without doing that, you lose the hierarchy, the subcircuit wrapper, and you get an output that is SPICE-3 compatible, not ngspice compatible. You did not need to do ext2sim
, which has no bearing on LVS.Pathan Rehman Ahmed khan-student
10/22/2024, 1:58 AMMitch Bailey
10/22/2024, 5:03 AMSimulation
> LVS
> LVS netlist: top level is a .subckt
before generating the netlist.Pathan Rehman Ahmed khan-student
10/22/2024, 5:55 AMMitch Bailey
10/22/2024, 5:59 AMPathan Rehman Ahmed khan-student
10/22/2024, 6:59 AMPathan Rehman Ahmed khan-student
10/22/2024, 7:11 AMPathan Rehman Ahmed khan-student
10/22/2024, 7:12 AMMitch Bailey
10/22/2024, 1:30 PM.subckt inversor A VDD Q VSS
X0 Q A VSS a_754_n1038# sky130_fd_pr__nfet_01v8 ad=0.29 pd=2.58 as=0.29 ps=2.58 w=1 l=0.15
X1 Q A VDD w_708_114# sky130_fd_pr__pfet_01v8 ad=0.29 pd=2.58 as=0.29 ps=2.58 w=1 l=0.15
.ends
a_754_n1038#
should be VSS
and w_708_114#
should be VDD
.
Looks like the layout is missing viali
between the metal1
and locali
Pathan Rehman Ahmed khan-student
10/22/2024, 1:32 PMMitch Bailey
10/22/2024, 1:46 PMPathan Rehman Ahmed khan-student
10/22/2024, 1:51 PMMitch Bailey
10/22/2024, 1:54 PMFinal result: Circuits match uniquely.
What problems are you seeing?Pathan Rehman Ahmed khan-student
10/22/2024, 2:10 PMPathan Rehman Ahmed khan-student
10/22/2024, 2:12 PMMitch Bailey
10/22/2024, 2:49 PMa_1034_1715#
is not connected to anything that I can see. It is definitely not connected to the bulk of X8 and X10 which correspond to M1 and M2 in the schematic.
The M2 pfet with vin_p connected to the gate has net2 as output in the schematic, but the corresponding X8 in the layout has the output shorted to VGND.