From 825ec353b1bfc14132ff154192ca96f8844224c8 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 3 Dec 2020 14:22:09 -0500 Subject: [PATCH] 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. --- cif/CIFgen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cif/CIFgen.c b/cif/CIFgen.c index f5c4038f..5a3d18dc 100644 --- a/cif/CIFgen.c +++ b/cif/CIFgen.c @@ -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) {