Andalib Nizam
11/05/2022, 3:52 AMMitch Bailey
11/05/2022, 5:18 AMexport NETGEN_COLUMNS=80
before running LVS will give you wider columns that might be easier to debug.
Looks like connectivity to your pnp collector is not being extracted. magic doesn’t see it as a port so there are no connections to higher hierarchies. Check that the pdif in the center has licon, li, mcon, met1, and via.Andalib Nizam
11/05/2022, 12:27 PMTim Edwards
11/05/2022, 1:28 PMMitch Bailey
11/05/2022, 1:34 PMTim Edwards
11/05/2022, 1:35 PMTim Edwards
11/05/2022, 1:35 PMMitch Bailey
11/05/2022, 1:38 PMMitch Bailey
11/05/2022, 1:49 PMC B E
though, right? The magic extraction rule is
device msubcircuit sky130_fd_pr__pnp_05v5_W0p68L0p68 pnp *pdiff pwell,space/w +pnp0p68
Wouldn’t this extract in the *pdiff
pnp
pwell,space/w
order? msubcircuit
extracts the gate (first) layer as the second terminal, right?Andalib Nizam
11/05/2022, 5:10 PMTim Edwards
11/05/2022, 7:38 PMsky130_fd_pr__rf_pnp_05v5_W0p68L0p68
(with the _rf_
in the name). It is the exact same layout, and the same device model. The difference is that it has ports marked for the collector, emitter, and base, and is marked with a property that tells magic to extract it as the specific device model equal to the subcircuit name. Otherwise, it will not extract correctly and it will fail LVS (and maybe simulation).Andalib Nizam
11/05/2022, 11:21 PMAndalib Nizam
11/07/2022, 3:20 PMMitch Bailey
11/07/2022, 3:27 PMtar czf bgr.tgz mag xschem
There’s not enough information for me to check your results.Andalib Nizam
11/07/2022, 4:27 PMTim Edwards
11/07/2022, 4:55 PMTim Edwards
11/07/2022, 5:05 PMMitch Bailey
11/07/2022, 5:20 PMsky130_fd_pr__pnp_05v5_W0p68L0p68
in the layout and sky130_fd_pr__pnp_05v5_W3p40L3p40
in the schematic. The these are considered separate device types and cause LVS mismatch.Mitch Bailey
11/07/2022, 5:38 PM*.mag
files.Andalib Nizam
11/07/2022, 8:14 PMMitch Bailey
11/08/2022, 4:35 AM* NGSPICE file created from BGR1.ext - technology: sky130A
.subckt sky130_fd_pr__rf_pnp_05v5_W0p68L0p68 Base Collector Emitter m=1
X0 Collector Base Emitter sky130_fd_pr__pnp_05v5_W0p68L0p68
.ends
...
.subckt sky130_fd_pr__rf_pnp_05v5_W3p40L3p40 Emitter Collector Base m=1
X0 Collector Base Emitter sky130_fd_pr__pnp_05v5_W3p40L3p40
.ends
So you may not need to change the setup file.
@Andalib Nizam Can you check that the pnp model names match between the layout and the schematic? If the schematic is correct, you might try changing the layout to sky130_fd_pr__rf_pnp_05v5_W3p40L3p40
Andalib Nizam
11/08/2022, 2:22 PMMitch Bailey
11/08/2022, 3:08 PMli
and met1
overlapping, probably intended to reduce resistance, but the met1
is not attached to ground.