-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpl: activate revert if diverge for nangate45/bp_be #2700
gpl: activate revert if diverge for nangate45/bp_be #2700
Conversation
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add GPL_ALLOW_REVERT_IF_DIVERGE to scripts/variables.yaml
flow/scripts/global_place.tcl
Outdated
@@ -9,6 +9,10 @@ fast_route | |||
|
|||
set global_placement_args {} | |||
|
|||
if {[info exists ::env(GPL_ALLOW_REVERT_IF_DIVERGE)] && $::env(GPL_ALLOW_REVERT_IF_DIVERGE)} { | |||
lappend global_placement_args {-allow_revert_if_diverge} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use append_env_var for consistency and to avoid repeating tiny bugs
{*}$::env(GLOBAL_PLACEMENT_ARGS) | ||
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)] \ | ||
$global_placement_args] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use append_env_var here
@@ -5,10 +5,20 @@ load_design 2_floorplan.odb 2_floorplan.sdc | |||
if { [env_var_exists_and_non_empty FLOORPLAN_DEF] } { | |||
puts "FLOORPLAN_DEF is set. Skipping global placement without IOs" | |||
} else { | |||
log_cmd global_placement -skip_io -density [place_density_with_lb_addon] \ | |||
|
|||
set global_placement_args {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to introduce new var, just use append_env_var after set all_args below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would not need the "global_placement_args" in global_place.tcl too if we move the setting of all parameters inside of do_placement, right?
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
Signed-off-by: Augusto Berndt <[email protected]>
flow/scripts/variables.yaml
Outdated
@@ -379,6 +379,12 @@ DPO_MAX_DISPLACEMENT: | |||
description: > | |||
Specifies how far an instance can be moved when optimizing. | |||
default: 5 1 | |||
GPL_ALLOW_REVERT_IF_DIVERGE: | |||
description: > | |||
Enable reverting to saved snapshot if a divergence is detected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could do with a bit of elaboration. When would the user use this?
Also, isn't this a stopgap feature? Worth mentioning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Signed-off-by: Augusto Berndt <[email protected]>
I am going to close this PR because in OR PR we decided to maintain the "revert if diverge" as default behavior, so we don't need to activate it for a specific designs anymore. |
This PR activates the new option implemented in PR The-OpenROAD-Project/OpenROAD#6561 for nangate45/bp_be, and solves the issue in The-OpenROAD-Project/OpenROAD#6542.