Corrected 'def write' location of components. It was using the boundaries on the parent without taking into account the internal cell origin point

This commit is contained in:
Maximo
2021-11-17 09:10:00 -05:00
committed by Tim Edwards
parent cf47772278
commit 7c13915205
+4 -4
View File
@@ -1982,10 +1982,10 @@ defComponentFunc(cellUse, defdata)
nameroot = cellUse->cu_def->cd_name;
fprintf(f, " - %s %s\n + PLACED ( %.10g %.10g ) %s ;\n",
cellUse->cu_id, nameroot,
(float)cellUse->cu_bbox.r_xbot * oscale,
(float)cellUse->cu_bbox.r_ybot * oscale,
defTransPos(&cellUse->cu_transform));
cellUse->cu_id, nameroot,
(float)(cellUse->cu_bbox.r_xbot - cellUse->cu_def->cd_bbox.r_ll.p_x) * oscale,
(float)(cellUse->cu_bbox.r_ybot - cellUse->cu_def->cd_bbox.r_ll.p_y) * oscale,
defTransPos(&cellUse->cu_transform));
return 0; /* Keep the search going */
}