File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,26 @@ proc do_dpl { } {
1818
1919 if { $::env(ENABLE_DPO) } {
2020 set dpo_args {}
21- if { [env_var_truthy ORFS_ENABLE_NEW_OPENROAD] } {
21+ set enable_extra_dpl [env_var_truthy ORFS_ENABLE_NEW_OPENROAD]
22+ if { $enable_extra_dpl } {
2223 lappend dpo_args -enable_extra_dpl 1
2324 }
25+
26+ set max_displacement " "
2427 if { [env_var_exists_and_non_empty DPO_MAX_DISPLACEMENT] } {
25- improve_placement -max_displacement $::env(DPO_MAX_DISPLACEMENT) {*}$dpo_args
28+ set max_displacement $::env(DPO_MAX_DISPLACEMENT)
29+ if { $enable_extra_dpl } {
30+ set trimmed [string trim $max_displacement ]
31+ # The default displacement is tuned for legacy DPO; use a smaller
32+ # default for the extra-DPL path unless explicitly overridden.
33+ if { $trimmed eq " 5 1" || $trimmed eq " 5" } {
34+ set max_displacement 1
35+ }
36+ }
37+ }
38+
39+ if { $max_displacement ne " " } {
40+ improve_placement -max_displacement $max_displacement {*}$dpo_args
2641 } else {
2742 improve_placement {*}$dpo_args
2843 }
You can’t perform that action at this time.
0 commit comments