Skip to content

Commit fcf8b41

Browse files
authored
Merge pull request The-OpenROAD-Project#3270 from Pinata-Consulting/variables-better-docs-simpler-tcl
variables: move default value into variables.yaml
2 parents 2cf1711 + 038c91c commit fcf8b41

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

docs/user/FlowVariables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ configuration file.
107107
| <a name="CELL_PAD_IN_SITES_GLOBAL_PLACEMENT"></a>CELL_PAD_IN_SITES_GLOBAL_PLACEMENT| Cell padding on both sides in site widths to ease routability during global placement.| 0| |
108108
| <a name="CLKGATE_MAP_FILE"></a>CLKGATE_MAP_FILE| List of cells for gating clock treated as a black box by Yosys.| | |
109109
| <a name="CORE_AREA"></a>CORE_AREA| The core area specified as a list of lower-left and upper-right corners in microns (X1 Y1 X2 Y2).| | |
110-
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This value is ignored if `CORE_UTILIZATION` is undefined.| | |
111-
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is ignored if `CORE_UTILIZATION` is undefined.| | |
110+
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This value is ignored if `CORE_UTILIZATION` is undefined.| 1.0| |
111+
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is ignored if `CORE_UTILIZATION` is undefined.| 1.0| |
112112
| <a name="CORE_UTILIZATION"></a>CORE_UTILIZATION| The core utilization percentage (0-100).| | |
113113
| <a name="CORNER"></a>CORNER| PVT corner library selection. Only available for ASAP7 and GF180 PDKs.| | |
114114
| <a name="CTS_ARGS"></a>CTS_ARGS| Override `clock_tree_synthesis` arguments.| | |

flow/scripts/floorplan.tcl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,9 @@ if {$use_floorplan_def} {
7373
-site $::env(PLACE_SITE) \
7474
{*}$additional_args
7575
} elseif {$use_core_utilization} {
76-
set aspect_ratio 1.0
77-
if {[env_var_exists_and_non_empty "CORE_ASPECT_RATIO"]} {
78-
set aspect_ratio $::env(CORE_ASPECT_RATIO)
79-
}
80-
set core_margin 1.0
81-
if {[env_var_exists_and_non_empty "CORE_MARGIN"]} {
82-
set core_margin $::env(CORE_MARGIN)
83-
}
8476
initialize_floorplan -utilization $::env(CORE_UTILIZATION) \
85-
-aspect_ratio $aspect_ratio \
86-
-core_space $core_margin \
77+
-aspect_ratio $::env(CORE_ASPECT_RATIO) \
78+
-core_space $::env(CORE_MARGIN) \
8779
-site $::env(PLACE_SITE) \
8880
{*}$additional_args
8981
} else {

flow/scripts/variables.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ CORE_ASPECT_RATIO:
695695
`CORE_UTILIZATION` is undefined.
696696
stages:
697697
- floorplan
698+
default: 1.0
698699
tunable: 1
699700
CORE_MARGIN:
700701
description: >
@@ -705,6 +706,7 @@ CORE_MARGIN:
705706
is undefined.
706707
stages:
707708
- floorplan
709+
default: 1.0
708710
tunable: 1
709711
DIE_AREA:
710712
description: >

0 commit comments

Comments
 (0)