Repository navigation
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces PDK-aware global placement parameters, including documentation, default configurations, platform-specific settings, and an OpenROAD patch to support them. However, several critical issues were identified in the review: a mismatch in command-line option names in global_place.tcl prevents the parameters from being applied; the wirelengthPenalty variable is defined but unused in the placement algorithm; a potential division-by-zero error exists in timingBase.cpp when the timing weight span is zero; the clock period is hardcoded to 1.0f instead of using the actual design clock; and defaults.py lacks a type check, which could cause a crash if the platform configuration is not a dictionary.
| if { [info exists ::env(GPL_WIRELENGTH_PENALTY)] } { | ||
| lappend global_placement_args -init_wirelength_coef $::env(GPL_WIRELENGTH_PENALTY) | ||
| } | ||
|
|
||
| if { [info exists ::env(GPL_TIMING_SPAN_CLOCK_PERCENT)] } { | ||
| lappend global_placement_args -virtual_cts_max_skew_fraction $::env(GPL_TIMING_SPAN_CLOCK_PERCENT) | ||
| } |
There was a problem hiding this comment.
The option names passed to global_placement in this script (-init_wirelength_coef and -virtual_cts_max_skew_fraction) do not match the new option names introduced in the OpenROAD patch (-wirelength_penalty and -timing_weight_span_clock_percent). This mismatch means the new PDK-aware parameters will be completely ignored by the global placement engine, and the feature will not function as intended.
if { [info exists ::env(GPL_WIRELENGTH_PENALTY)] } {
lappend global_placement_args -wirelength_penalty $::env(GPL_WIRELENGTH_PENALTY)
}
if { [info exists ::env(GPL_TIMING_SPAN_CLOCK_PERCENT)] } {
lappend global_placement_args -timing_weight_span_clock_percent $::env(GPL_TIMING_SPAN_CLOCK_PERCENT)
}
- Expose OpenROAD global placement tuning parameters (-init_wirelength_coef and -virtual_cts_max_skew_fraction) in variables.yaml and global_place.tcl. - Provide OpenROAD patch 0001-Add-PDK-aware-GPL-parameters.patch to enable these features. - Set optimized default values for these variables in sky130hd and asap7 config.json files. - Update variables.json and FlowVariables.md via generation scripts. - Update defaults.py to correctly inject these variables. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
aa99ff7 to
71876a0
Compare
Motivation
This Draft PR is a spin-off of #4418. While #4418 acts as scaffolding to study large discrepancies in Place vs. Detailed Route correlation (for which a reproducer is still being built), this PR extracts the PDK-aware global placement parameter tuning components which independently improve the baseline timing.
Description
This PR wires up configuration parameters to expose OpenROAD's
-init_wirelength_coefand-virtual_cts_max_skew_fractionglobal placement arguments, allowing us to specify optimal defaults per PDK.Note: The
tools/OpenROADsubmodule pointer is intentionally NOT updated in this PR. We've included the OpenROAD patch (patches/openroad/0001-Add-PDK-aware-GPL-parameters.patch) which applies locally during a Bazel build, but upstream ORFS will need the corresponding OpenROAD commit first.Question for Maintainers:
Does this approach for exposing and tuning PDK-specific global placement parameters (
GPL_WIRELENGTH_PENALTYandGPL_TIMING_SPAN_CLOCK_PERCENT) make sense for ORFS? Attached are the tuned numbers forsky130hdandasap7for evaluation.