Skip to content

Commit b23fa6a

Browse files
authored
Merge pull request #8561 from AcKoucher/mpl-unused-variable
mpl: remove unused argument/variable for pin access
2 parents 6dbed3d + 3df6484 commit b23fa6a

File tree

7 files changed

+2
-24
lines changed

7 files changed

+2
-24
lines changed

src/mpl/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ rtl_macro_placer
4141
[-boundary_weight boundary_weight]
4242
[-notch_weight notch_weight]
4343
[-macro_blockage_weight macro_blockage_weight]
44-
[-pin_access_th pin_access_th]
4544
[-target_util target_util]
4645
[-target_dead_space target_dead_space]
4746
[-min_ar min_ar]
@@ -62,7 +61,6 @@ rtl_macro_placer
6261
| `-signature_net_threshold` | Minimum number of connections between two clusters to be identified as connected. The default value is `50`, and the allowed values are integers `[0, MAX_INT]`. |
6362
| `-halo_width` | Horizontal/vertical halo around macros (microns). The allowed values are floats, and the default value is `0.0`. |
6463
| `-fence_lx`, `-fence_ly`, `-fence_ux`, `-fence_uy` | Defines the global fence bounding box coordinates. The default values are the core area coordinates). |
65-
| `-pin_access_th` | Specifies the pin access threshold value of macros. The default value is `0.0`, and the allowed values are floats [0,1]. |
6664
| `-target_util` | Specifies the target utilization of `MixedCluster` and has higher priority than target_dead_space. The allowed values are floats, and the default value is `0.25`. |
6765
| `-target_dead_space` | Specifies the target dead space percentage, which influences the utilization of `StandardCellCluster`. The allowed values are floats, and the default value is `0.05`. |
6866
| `-min_ar` | Specifies the minimum aspect ratio $a$, or the ratio of its width to height of a `StandardCellCluster` from $[a, \frac{1}{a}]$. The allowed values are floats, and the default value is `0.33`. |

src/mpl/include/mpl/rtl_mp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class MacroPlacer
6666
float boundary_weight,
6767
float notch_weight,
6868
float macro_blockage_weight,
69-
float pin_access_th,
7069
float target_util,
7170
float target_dead_space,
7271
float min_ar,

src/mpl/src/hier_rtlmp.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,6 @@ void HierRTLMP::setSignatureNetThreshold(int signature_net_threshold)
161161
tree_->min_net_count_for_connection = signature_net_threshold;
162162
}
163163

164-
void HierRTLMP::setPinAccessThreshold(float pin_access_th)
165-
{
166-
pin_access_th_ = pin_access_th;
167-
pin_access_th_orig_ = pin_access_th;
168-
}
169-
170164
void HierRTLMP::setTargetUtil(float target_util)
171165
{
172166
target_util_ = target_util;

src/mpl/src/hier_rtlmp.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ class HierRTLMP
101101
void setBoundaryWeight(float boundary_weight);
102102
void setNotchWeight(float notch_weight);
103103
void setMacroBlockageWeight(float macro_blockage_weight);
104-
void setPinAccessThreshold(float pin_access_th);
105104
void setTargetUtil(float target_util);
106105
void setTargetDeadSpace(float target_dead_space);
107106
void setMinAR(float min_ar);
@@ -273,8 +272,6 @@ class HierRTLMP
273272
float min_ar_ = 0.3; // the aspect ratio range for StdCellCluster (min_ar_, 1
274273
// / min_ar_)
275274

276-
float pin_access_th_ = 0.1; // each pin access is modeled as a SoftMacro
277-
float pin_access_th_orig_ = 0.1;
278275
float notch_v_th_ = 10.0;
279276
float notch_h_th_ = 10.0;
280277

src/mpl/src/mpl.i

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ bool rtl_macro_placer_cmd(const int max_num_macro,
4949
const float boundary_weight,
5050
const float notch_weight,
5151
const float macro_blockage_weight,
52-
const float pin_access_th,
5352
const float target_util,
5453
const float target_dead_space,
5554
const float min_ar,
@@ -81,7 +80,6 @@ bool rtl_macro_placer_cmd(const int max_num_macro,
8180
boundary_weight,
8281
notch_weight,
8382
macro_blockage_weight,
84-
pin_access_th,
8583
target_util,
8684
target_dead_space,
8785
min_ar,

src/mpl/src/mpl.tcl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ sta::define_cmd_args "rtl_macro_placer" { -max_num_macro max_num_macro \
2424
-boundary_weight boundary_weight \
2525
-notch_weight notch_weight \
2626
-macro_blockage_weight macro_blockage_weight \
27-
-pin_access_th pin_access_th \
2827
-target_util target_util \
2928
-target_dead_space target_dead_space \
3029
-min_ar min_ar \
@@ -38,8 +37,8 @@ proc rtl_macro_placer { args } {
3837
-signature_net_threshold -halo_width -halo_height \
3938
-fence_lx -fence_ly -fence_ux -fence_uy \
4039
-area_weight -outline_weight -wirelength_weight -guidance_weight -fence_weight \
41-
-boundary_weight -notch_weight -macro_blockage_weight \
42-
-pin_access_th -target_util \
40+
-boundary_weight -notch_weight \
41+
-macro_blockage_weight -target_util \
4342
-target_dead_space -min_ar \
4443
-report_directory \
4544
-write_macro_placement } \
@@ -79,7 +78,6 @@ proc rtl_macro_placer { args } {
7978
set boundary_weight 50.0
8079
set notch_weight 10.0
8180
set macro_blockage_weight 10.0
82-
set pin_access_th 0.00
8381
set target_util 0.25
8482
set target_dead_space 0.05
8583
set min_ar 0.33
@@ -162,9 +160,6 @@ proc rtl_macro_placer { args } {
162160
if { [info exists keys(-macro_blockage_weight)] } {
163161
set macro_blockage_weight $keys(-macro_blockage_weight)
164162
}
165-
if { [info exists keys(-pin_access_th)] } {
166-
set pin_access_th $keys(-pin_access_th)
167-
}
168163
if { [info exists keys(-target_util)] } {
169164
set target_util $keys(-target_util)
170165
}
@@ -200,7 +195,6 @@ proc rtl_macro_placer { args } {
200195
$area_weight $outline_weight $wirelength_weight \
201196
$guidance_weight $fence_weight $boundary_weight \
202197
$notch_weight $macro_blockage_weight \
203-
$pin_access_th \
204198
$target_util \
205199
$target_dead_space \
206200
$min_ar \

src/mpl/src/rtl_mp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ bool MacroPlacer::place(const int num_threads,
5656
const float boundary_weight,
5757
const float notch_weight,
5858
const float macro_blockage_weight,
59-
const float pin_access_th,
6059
const float target_util,
6160
const float target_dead_space,
6261
const float min_ar,
@@ -80,7 +79,6 @@ bool MacroPlacer::place(const int num_threads,
8079
hier_rtlmp_->setBoundaryWeight(boundary_weight);
8180
hier_rtlmp_->setNotchWeight(notch_weight);
8281
hier_rtlmp_->setMacroBlockageWeight(macro_blockage_weight);
83-
hier_rtlmp_->setPinAccessThreshold(pin_access_th);
8482
hier_rtlmp_->setTargetUtil(target_util);
8583
hier_rtlmp_->setTargetDeadSpace(target_dead_space);
8684
hier_rtlmp_->setMinAR(min_ar);

0 commit comments

Comments
 (0)