Skip to content

Commit e601537

Browse files
authored
Merge pull request #3680 from luarss/topic/gpl-tunable
Add `gpl` min/max phi coefficients
2 parents b627bd4 + 5eb5e34 commit e601537

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,13 @@ configuration file.
171171
| <a name="MACRO_WRAPPERS"></a>MACRO_WRAPPERS| The wrapper file that replaces existing macros with their wrapped version.| |
172172
| <a name="MAKE_TRACKS"></a>MAKE_TRACKS| Tcl file that defines add routing tracks to a floorplan.| |
173173
| <a name="MATCH_CELL_FOOTPRINT"></a>MATCH_CELL_FOOTPRINT| Enforce sizing operations to only swap cells that have the same layout boundary.| 0|
174+
| <a name="MAX_PLACE_STEP_COEF"></a>MAX_PLACE_STEP_COEF| Sets the maximum phi coefficient (pcof_max / µ_k Upper Bound) for global placement optimization. This parameter controls the step size upper bound in the RePlAce Nesterov optimization algorithm. Higher values allow more aggressive optimization but may risk divergence. Valid range: 1.00-1.20| 1.05|
174175
| <a name="MAX_REPAIR_ANTENNAS_ITER_DRT"></a>MAX_REPAIR_ANTENNAS_ITER_DRT| Defines the maximum number of iterations post-detailed routing repair antennas will run.| 5|
175176
| <a name="MAX_REPAIR_ANTENNAS_ITER_GRT"></a>MAX_REPAIR_ANTENNAS_ITER_GRT| Defines the maximum number of iterations post global routing repair antennas will run.| 5|
176177
| <a name="MAX_REPAIR_TIMING_ITER"></a>MAX_REPAIR_TIMING_ITER| Maximum number of iterations for repair setup and repair hold.| |
177178
| <a name="MAX_ROUTING_LAYER"></a>MAX_ROUTING_LAYER| The highest metal layer name to be used in routing.| |
178179
| <a name="MIN_BUF_CELL_AND_PORTS"></a>MIN_BUF_CELL_AND_PORTS| Used to insert a buffer cell to pass through wires. Used in synthesis.| |
180+
| <a name="MIN_PLACE_STEP_COEF"></a>MIN_PLACE_STEP_COEF| Sets the minimum phi coefficient (pcof_min / µ_k Lower Bound) for global placement optimization. This parameter controls the step size lower bound in the RePlAce Nesterov optimization algorithm. Lower values may improve convergence but can increase runtime. Valid range: 0.95-1.05| 0.95|
179181
| <a name="MIN_ROUTING_LAYER"></a>MIN_ROUTING_LAYER| The lowest metal layer name to be used in routing.| |
180182
| <a name="NUM_CORES"></a>NUM_CORES| Passed to `openroad -threads $(NUM_CORES)`, defaults to numbers of cores in system as determined by system specific code in Makefile, `nproc` is tried first. OpenROAD does not limit itself to this number of cores across OpenROAD running instances, which can lead to overprovisioning in contexts such as bazel-orfs where there could be many routing, or place jobs running at the same time.| |
181183
| <a name="OPENROAD_HIERARCHICAL"></a>OPENROAD_HIERARCHICAL| Feature toggle to enable to run OpenROAD in hierarchical mode, otherwise considered flat. Will eventually be the default and this option will be retired.| 0|
@@ -386,8 +388,10 @@ configuration file.
386388
- [IO_PLACER_H](#IO_PLACER_H)
387389
- [IO_PLACER_V](#IO_PLACER_V)
388390
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
391+
- [MAX_PLACE_STEP_COEF](#MAX_PLACE_STEP_COEF)
389392
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
390393
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
394+
- [MIN_PLACE_STEP_COEF](#MIN_PLACE_STEP_COEF)
391395
- [MIN_ROUTING_LAYER](#MIN_ROUTING_LAYER)
392396
- [PLACE_DENSITY](#PLACE_DENSITY)
393397
- [PLACE_DENSITY_LB_ADDON](#PLACE_DENSITY_LB_ADDON)

‎flow/scripts/global_place.tcl‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ if { $::env(GPL_TIMING_DRIVEN) } {
3333
}
3434
}
3535

36+
# Parameters for phi coefficients in global placement
37+
set min_phi $::env(MIN_PLACE_STEP_COEF)
38+
set max_phi $::env(MAX_PLACE_STEP_COEF)
39+
40+
if { $min_phi > $max_phi } {
41+
utl::error GPL 200 \
42+
"MIN_PLACE_STEP_COEF ($min_phi) cannot be greater than \
43+
MAX_PLACE_STEP_COEF ($max_phi)"
44+
}
45+
46+
lappend global_placement_args -min_phi_coef $::env(MIN_PLACE_STEP_COEF)
47+
lappend global_placement_args -max_phi_coef $::env(MAX_PLACE_STEP_COEF)
48+
3649
proc do_placement { global_placement_args } {
3750
set all_args [concat [list -density [place_density_with_lb_addon] \
3851
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \

‎flow/scripts/variables.yaml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,30 @@ GPL_ROUTABILITY_DRIVEN:
583583
stages:
584584
- place
585585
default: 1
586+
MIN_PLACE_STEP_COEF:
587+
description: >
588+
Sets the minimum phi coefficient (pcof_min / µ_k Lower Bound) for global
589+
placement optimization. This parameter controls the step size lower bound
590+
in the RePlAce Nesterov optimization algorithm. Lower values may improve
591+
convergence but can increase runtime.
592+
Valid range: 0.95-1.05
593+
default: 0.95
594+
stages:
595+
- place
596+
tunable: 1
597+
type: float
598+
MAX_PLACE_STEP_COEF:
599+
description: >
600+
Sets the maximum phi coefficient (pcof_max / µ_k Upper Bound) for global
601+
placement optimization. This parameter controls the step size upper bound
602+
in the RePlAce Nesterov optimization algorithm. Higher values allow more
603+
aggressive optimization but may risk divergence.
604+
Valid range: 1.00-1.20
605+
default: 1.05
606+
stages:
607+
- place
608+
tunable: 1
609+
type: float
586610
CAP_MARGIN:
587611
description: >
588612
Specifies a capacitance margin when fixing max capacitance violations. This

0 commit comments

Comments
 (0)