Added missing brackets around a phrase in the "close" operator that

was causing false positive errors in DRC checks involving CIF rules
using the "close" operator, such as the minimum hole size in the
sky130A PDK.
This commit is contained in:
Tim Edwards 2020-12-03 14:22:09 -05:00
parent 0d10b7f785
commit 825ec353b1
1 changed files with 6 additions and 0 deletions

View File

@ -1947,9 +1947,13 @@ cifCloseFunc(tile, plane)
/* tile areas into the destination plane. */
if ((atotal != INFINITY) && (atotal < growDistance))
{
cifGatherFunc(tile, &atotal, CLOSE_FILL);
}
else
{
cifGatherFunc(tile, &atotal, CLOSE_DONE);
}
return 0;
}
@ -1985,6 +1989,7 @@ cifGatherFunc(tile, atotal, mode)
if (mode == CLOSE_SEARCH)
{
if ((*atotal != INFINITY) && (*atotal < growDistance))
{
locarea = (dlong)(area.r_xtop - area.r_xbot)
* (dlong)(area.r_ytop - area.r_ybot);
if (IsSplit(tile)) locarea /= 2;
@ -1992,6 +1997,7 @@ cifGatherFunc(tile, atotal, mode)
*atotal = INFINITY;
else
*atotal += (int)locarea;
}
}
else if (mode == CLOSE_FILL)
{