Skip to content

Commit

Permalink
Coded around an issue where the antenna violation checker comes up
Browse files Browse the repository at this point in the history
with zero gate error (and was reporting an infinite antenna ratio).
For now, just ignoring the zero-area case.  However, since the
procedure is supposed to be looping through nets connected to
specific devices in the .ext file, then every entry is supposed to
have non-zero area, so there is some underlying problem here that
needs to be fixed.
  • Loading branch information
RTimothyEdwards committed Nov 7, 2024
1 parent a35993a commit 22c2222
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3.498
8.3.499
11 changes: 8 additions & 3 deletions extflat/EFantenna.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ antennacheckVisit(dev, hc, scale, trans, editUse)
DBTreeCopyConnect(&scx, &DBConnectTbl[t], 0,
DBConnectTbl, &TiPlaneRect, SEL_NO_LABELS, extPathUse);

/* Search planes of tie types and accumulate all tiedown areas */
/* Search planes of tile types and accumulate all tiedown areas */
gdas.accum = (dlong)0;
for (p = 0; p < DBNumPlanes; p++)
{
Expand Down Expand Up @@ -584,7 +584,12 @@ antennacheckVisit(dev, hc, scale, trans, editUse)
saveRatio = ExtCurStyle->exts_antennaRatio[i].ratioGate;
}

if (anttotal > (double)gatearea)
/* gatearea == 0 indicates that something went wrong---No device
* of type "t" was found connected to this net. This should be
* reported as an error. Avoid generating an antenna error with
* infinite area ratio.
*/
if ((gatearea > 0) && (anttotal > (double)gatearea))
{
antennaError = TRUE;
if (efAntennaDebug == TRUE)
Expand All @@ -606,7 +611,7 @@ antennacheckVisit(dev, hc, scale, trans, editUse)
aas.r.r_xtop, aas.r.r_ytop);
}
}
if (conttotal > (double)gatearea)
if ((gatearea > 0) && (conttotal > (double)gatearea))
{
antennaError = TRUE;
if (efAntennaDebug == TRUE)
Expand Down

0 comments on commit 22c2222

Please sign in to comment.