Hello, I was facing some lvs issues regarding mism...
# magic
s
Hello, I was facing some lvs issues regarding mismatch in number of devices in a custom analog block. I used multiple fingers for nmos and pmos transistors, but netgen does not seem to merge the devices correctly, specifically in the netlist generated from magic layout. Could it be be due to permute in source and drain of transistors not happening properly?
m
Could you post the command you use to run netgen lvs?
And the command you use to extract the layout. Your extracted top subcircuit is strange
Copy code
.subckt x/Volumes/export/isn/soumil/ReRAM_sky130_files/col_driver_1x2
Your top xschem subckt is commented out, too.
Copy code
**.subckt col_driver_1x2
s
for netgen I use “netgen -batch lvs col_driver_1x2_magic.spice col_driver_1x2_xschem.spice”
for extracting layout it’s “extract all ext2spice hierarchy on ext2spice scale off ext2spice”
the path for sub circuit ideally is /Volumes/… ideally, not sure what to the x is
m
For extraction, can you add
ext2spice lvs
like this
Copy code
extract all
ext2spice hierarchy on
ext2spice scale off
ext2spice lvs
ext2spice
For lvs, you'll need the setup file for mos source/drain permutability. This also requires a top level subckt named
col_driver_1x2
in both netlists.
Copy code
netgen -batch lvs "col_driver_1x2_magic.spice col_driver_1x2" "col_driver_1x2_xschem.spice col_driver_1x2" $PDK_ROOT/sky130A/libs.tech/netgen/sky130A_setup.tcl
1
s
Thanks @Mitch Bailey, I attached the spice files from those commands. The magic netlist however does not have the top level subckt named 'col_driver_1x2'. The netgen command complains about that so I tried -
Copy code
netgen -batch lvs col_driver_1x2_magic.spice col_driver_1x2_xschem.spice $PDK_ROOT/sky130B/libs.tech/netgen/sky130B_setup.tcl
which gives property errors (as, ad, ps, .. not present in magic netlist). Also I was using sky130B.
m
I don't know why your layout top cell is being extracted as
x/Volumes/export/isn/soumil/ReRAM_sky130_files/col_driver_1x2
but try this
Copy code
netgen -batch lvs "col_driver_1x2_magic.spice x/Volumes/export/isn/soumil/ReRAM_sky130_files/col_driver_1x2" "col_driver_1x2_xschem.spice col_driver_1x2" $PDK_ROOT/sky130B/libs.tech/netgen/sky130B_setup.tcl
1
s
ok that worked! Thank you still unsure why the top cell is being extracted that way.
🎉 1