Pranav Lulu
11/21/2022, 12:49 PMMitch Bailey
11/21/2022, 2:49 PMcif see <layer>
and feedback clear
to erase.Tim Edwards
11/21/2022, 7:47 PMPranav Lulu
11/22/2022, 11:23 AMMitch Bailey
11/23/2022, 3:07 PMsky130-GDS.tech
because it’s a very limited set of rules related to GDS only layers.
The errors you’re seeing are caused by a hierarchy structure incompatible with magic. (for example, overlapping poly, diff and implants have to be at the same hierarchy level).
You can use the gds flatglob *$$*
command before reading the gds in magic. DRC after this is clean.
You could also flatten the *$$*
cells in the layout to give the same result.Pranav Lulu
11/23/2022, 4:38 PMgds flatglob *$$*
the errors are almost gone. Here's the corrected drc report.Mitch Bailey
11/23/2022, 5:07 PMPranav Lulu
11/24/2022, 5:08 AMgds flatglob *$$*
I am getting the Can't Overlap error there as well. I also observed that the errors are caused where there are met1-met4 connections. Here's the final drc report for the design and it's gds.Mitch Bailey
11/24/2022, 5:14 AMgds flatglob *CDNS*
gds flatglob VIA*
Pranav Lulu
11/24/2022, 5:46 AMgds flatglob *CDNS*
should have removed them. Here's the drc reportPranav Lulu
11/24/2022, 6:20 AMgds flatglob *capacitor_test_nf*
This removes all the overlap errors. Here's the final drc reportMitch Bailey
11/24/2022, 6:42 AMTim Edwards
11/24/2022, 3:05 PMPranav Lulu
11/24/2022, 4:41 PMPranav Lulu
11/25/2022, 11:56 AMMitch Bailey
11/25/2022, 11:58 AMextresist
etc.Tim Edwards
11/25/2022, 9:24 PMext2spice lvs
to set "sane" options and then adjust the options I want, e.g., ext2spice cthresh 0
to extract all parasitic capacitances. For full R-C extraction, you want to flatten the design into a new cell and extract from that using extresist
.Pranav Lulu
11/26/2022, 3:48 PMPranav Lulu
12/02/2022, 12:13 PMgds read 6_final.gds
load ldoInst
select top cell
flatten ldoInst_flat
load ldoInst_flat
select top cell
extract do local
extract all
ext2sim labels on
ext2sim
extresist tolerance 10
extresist
ext2spice lvs
ext2spice cthresh 0
ext2spice extresist on
ext2spice -o ./EXTRACT_PEX/$2_pex.spice
After the extresist command magic hangs at below pointPranav Lulu
12/02/2022, 12:14 PMPranav Lulu
12/05/2022, 11:20 AMMitch Bailey
12/05/2022, 12:43 PMmehdi
12/05/2022, 1:31 PMPranav Lulu
12/05/2022, 1:40 PMTim Edwards
12/05/2022, 1:46 PMflatglob *$$*
before reading in the GDS. I have not yet determined if that is what causes magic to hang in the middle of full R-C extraction, but I doubt it (likely, though, it will produce an incorrect netlist). Note, however, that this is a huge layout containing both digital and analog parts. Full R-C extraction is a brute-force method, and is generally not applied to a massive layout like this. I doubt magic is "hanging" so much as just taking days to do the full R-C extraction. It is likely that it stopped displaying output when it hit one of the power supplies. The usual way to handle this kind of a circuit is to cleanly separate the digital and analog parts, run full R-C extraction only on the analog part, and convert the digital part to xspice format. It is doubtful that you would ever be able to simulate the full R-C extracted layout in any reasonable time, assuming that you waited long enough for it to finish the extraction.Pranav Lulu
12/05/2022, 2:49 PM