Open d-m-bailey opened 1 year ago
This is a confounding example and I will need to spend more time looking into it.
As far as I can tell, the issue with "VGND_uq0" is superficial and has nothing to do with the other errors. Maybe. In addition to the "VGND_uq0" problem, I was confused as to why "VPWR_uq0" is created in exactly the same way but does not appear in the netlist.
I corrected the "VGND_uq0" in a way that I don't really like, by identifying during "extract all" that it is shorted to "VGND" and therefore not unique, and reverting the unique node label back to the original. But this is wrong for many reasons. I don't like the entire "extract unique" method to begin with. There should be no method that alters labels inside the layout. The labels should be handled "behind the scenes" during extraction, leaving the layout itself unchanged. "extract unique" should set a flag for use during "extract". That will take a bit of work to do properly.
However, assuming that the code change I made is doing the correct thing by reverting "VGND_uq0" back to "VGND" in the layout, this does not change the "Port number. . . greater than number of ports" error or any of the other problems that show up during LVS. So I haven't gotten to the bottom of the basic problem with "extract short".
@d-m-bailey : See my comments where you left an issue in the issue tracker for Magic. I looked at the two netlists being created in "analog" and "digital" and they only differ in the zero-valued resistor in "analog". The zero-valued resistor connects to a port that is itself not connected to anything, so these netlists should be equivalent. I made a correction to netgen to fix the problem, which is unrelated to the "extract unique" problem in Magic discussed above.
With
ext2spice short resistor
, MPW-3 slot-019 extracts with 2 shorts inAW_RD_analog_mux
.EN1
toENB1
is a true error, butVGND_uq0
andVGND
are connected through metal2 in subcells.Flattened view
Top only
Comparing the 2 netlists with netgen gives
The
Port number ?? greater than number of ports 10
may indicate an inconsistency with the internal netlist because the top results give the following disconnected ports along with many mismatched nets. Note, this is the same layout being extracted with 2 different options - one would expect a match (or near match).To duplicate
test.tgz
This will extract with the option
ext2spice short resistor
toext.analog
and without the option toext.digital
. The results are then compared.Maybe this is a case where the ports should not be altered to match.