Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 62839

Forum Post: RE: Skill code to delete duplicate pin

$
0
0
Hi Duc Loc, This is quite simple, here is an example: ;; Browse all nets ( foreach net ( geGetEditCellView ) -> nets ;; Delete pins on the same net ;; Pins are sorted by layerNum and first one is skipped ( foreach pin_fig ( cdr ( sort net -> pins ~> fig ( lambda (fig0 fig1) ( greaterp fig0 -> layerNum fig1 -> layerNum) ))) ( dbDeleteObject pin_fig) )) Please note that I sort the pins by layerNum to find the higher metal (this should work fine for metals with most DKs) With my code I have no idea of which pin is deleted in case duplicated pins have the same layer and no warning will be printed as well Cheers, Aurélien

Viewing all articles
Browse latest Browse all 62839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>