Modified "lef write" so that if a cell has a bounding box declared

by FIXED_BBOX derived from GDS and the new "boundary" cif input
rule, then the bbox property values take precedence over the
extent-of-geometry bounding box.
This commit is contained in:
Tim Edwards 2019-11-13 15:10:01 -05:00
parent 8e22b1504e
commit 5007f3f602
1 changed files with 14 additions and 0 deletions

View File

@ -778,6 +778,20 @@ lefWriteMacro(def, f, scale, hide)
else
boundary = def->cd_bbox;
/* If a bounding box has been declared with the FIXED_BBOX property */
/* then it takes precedence over def->cd_bbox. */
if (def->cd_flags & CDFIXEDBBOX)
{
char *propvalue;
bool found;
propvalue = (char *)DBPropGet(def, "FIXED_BBOX", &found);
if (found)
sscanf(propvalue, "%d %d %d %d", &boundary.r_xbot,
&boundary.r_ybot, &boundary.r_xtop, &boundary.r_ytop);
}
/* Write position and size information */
fprintf(f, " ORIGIN %.4f %.4f ;\n",