mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Modified lefWrite with the odd trick of adding a zero to prevent
fprint from printing "negative zeros", which routinely happens in the ORIGIN output of LEF files with "lef write".
This commit is contained in:
+4
-2
@@ -1043,10 +1043,12 @@ lefWriteMacro(def, f, scale, hide)
|
||||
}
|
||||
|
||||
/* Write position and size information */
|
||||
/* Note: Using "0.0 - X" prevents fprintf from generating "negative */
|
||||
/* zeros" in the output. */
|
||||
|
||||
fprintf(f, IN0 "ORIGIN " POINT " ;\n",
|
||||
-lc.oscale * (float)boundary.r_xbot,
|
||||
-lc.oscale * (float)boundary.r_ybot);
|
||||
0.0 - lc.oscale * (float)boundary.r_xbot,
|
||||
0.0 - lc.oscale * (float)boundary.r_ybot);
|
||||
|
||||
fprintf(f, IN0 "SIZE " FP " BY " FP " ;\n",
|
||||
lc.oscale * (float)(boundary.r_xtop - boundary.r_xbot),
|
||||
|
||||
Reference in New Issue
Block a user