Skip to content

Commit

Permalink
feat: expose -keep_resize_below_overflow with PL_KEEP_RESIZE_BELOW_OV…
Browse files Browse the repository at this point in the history
…ERFLOW (#655)

depends on: efabless/openlane2-ci-designs#37

---------

Signed-off-by: Kareem Farid <[email protected]>
Co-authored-by: Mohamed Gaber <[email protected]>
  • Loading branch information
kareefardi and donn authored Feb 13, 2025
1 parent 53f5e7d commit 2473cd0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup_env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
- name: Check if publishing branch
shell: bash
run: |
if [[ "$BRANCH_NAME" == "main" || "$BRANCH_NAME" == version* ]]; then
if [[ "$BRANCH_NAME" == "main" || "$BRANCH_NAME" == "dev" || "$BRANCH_NAME" == version* ]]; then
echo "PUBLISHING_BRANCH=1" >> $GITHUB_ENV
fi
Expand Down
2 changes: 2 additions & 0 deletions .github/test_sets/test_sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
- io_placer
- test_sram_macro
- manual_macro_placement_test
- name: regs_analog_ctrl_APB
config_file: config.yaml
- name: aes_user_project_wrapper
test_name: aes_upw_new
config_file: config.json
Expand Down
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
* `OpenROAD.GlobalPlacement`

* Added optional variable `PL_ROUTABILITY_MAX_DENSITY_PCT`
* Added optional variable `PL_KEEP_RESIZE_BELOW_OVERFLOW`

* Corrected `GPL_CELL_PADDING` to be an integer.

Expand Down
1 change: 1 addition & 0 deletions openlane/scripts/openroad/gpl.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ set cell_pad_side [expr $::env(GPL_CELL_PADDING) / 2]
lappend arg_list -pad_right $cell_pad_side
lappend arg_list -pad_left $cell_pad_side
lappend arg_list -init_wirelength_coef $::env(PL_WIRE_LENGTH_COEF)
append_if_exists_argument arg_list PL_KEEP_RESIZE_BELOW_OVERFLOW -keep_resize_below_overflow

log_cmd global_placement {*}$arg_list

Expand Down
5 changes: 5 additions & 0 deletions openlane/steps/openroad.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,11 @@ class _GlobalPlacement(OpenROADStep):
units="sites",
pdk=True,
),
Variable(
"PL_KEEP_RESIZE_BELOW_OVERFLOW",
Optional[Decimal],
"Only applicable when PL_TIME_DRIVEN is enabled. When the overflow is below the set value, timing-driven iterations will retain the resizer changes instead of reverting them. Allowed values are 0 to 1. If not set, a nonzero default value from OpenROAD will be used",
),
]
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openlane"
version = "3.0.0.dev13"
version = "3.0.0.dev14"
description = "An infrastructure for implementing chip design flows"
authors = ["Efabless Corporation and Contributors <[email protected]>"]
readme = "Readme.md"
Expand Down

0 comments on commit 2473cd0

Please sign in to comment.