Skip to content

Commit 16cf3d3

Browse files
committed
mpl: initialize global fence in cpp to allow changing ORFS defaults
Signed-off-by: Arthur Koucher <[email protected]>
1 parent b160876 commit 16cf3d3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/mpl/src/hier_rtlmp.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ void HierRTLMP::setGlobalFence(float fence_lx,
106106
float fence_ux,
107107
float fence_uy)
108108
{
109-
tree_->global_fence = Rect(fence_lx, fence_ly, fence_ux, fence_uy);
109+
const float x_max
110+
= fence_ux == 0.0 ? std::numeric_limits<float>::max() : fence_ux;
111+
const float y_max
112+
= fence_uy == 0.0 ? std::numeric_limits<float>::max() : fence_uy;
113+
tree_->global_fence = Rect(fence_lx, fence_ly, x_max, y_max);
110114
}
111115

112116
void HierRTLMP::setHaloWidth(float halo_width)

src/mpl/src/mpl.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ proc rtl_macro_placer { args } {
6666
set halo_height 0.0
6767
set fence_lx 0.0
6868
set fence_ly 0.0
69-
set fence_ux 100000000.0
70-
set fence_uy 100000000.0
69+
set fence_ux 0.0
70+
set fence_uy 0.0
7171

7272
set area_weight 0.1
7373
set outline_weight 100.0

0 commit comments

Comments
 (0)