Skip to content

flow: platforms: {gf180,sky130}: allow PDK path overrides via weak assignment#4146

Merged
maliberty merged 2 commits intoThe-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/platform-weak-assignment
Apr 14, 2026
Merged

flow: platforms: {gf180,sky130}: allow PDK path overrides via weak assignment#4146
maliberty merged 2 commits intoThe-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/platform-weak-assignment

Conversation

@dnltz
Copy link
Copy Markdown
Contributor

@dnltz dnltz commented Apr 14, 2026

Convert TECH_LEF, SC_LEF, LIB_FILES, and GDS_FILES from strong (=) to weak (?=) assignment so users can substitute a custom PDK version by setting these variables before including the platform config, without modifying ORFS-provided files.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the configuration files for gf180, sky130hd, and sky130hs platforms to use weak assignments (?=) for various variables, enabling easier user overrides. However, several review comments point out a significant issue: using weak assignments for GDS_FILES and LIB_FILES while including ADDITIONAL_GDS or ADDITIONAL_LIBS in the same line causes those additional variables to be lost if the main variable is overridden. The feedback suggests separating the default path assignment from the addition of user-specified files to ensure both can coexist correctly.

dnltz added 2 commits April 14, 2026 15:42
Convert TECH_LEF, GDS_FILES, and all timing corner variables
(BC/WC/TC lib files, temperatures, voltages) from strong (`=`) to
weak (`?=`) assignment so users can substitute a custom PDK version
without modifying ORFS-provided files.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
Convert TECH_LEF, SC_LEF, LIB_FILES, and GDS_FILES from strong (`=`)
to weak (`?=`) assignment so users can substitute a custom PDK version
by setting these variables before including the platform config, without
modifying ORFS-provided files.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
@dnltz dnltz force-pushed the WIP/dnltz/platform-weak-assignment branch from 3532a90 to f9ebc9a Compare April 14, 2026 13:42
@maliberty maliberty enabled auto-merge April 14, 2026 14:33
@maliberty maliberty merged commit c60345b into The-OpenROAD-Project:master Apr 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants