Skip to content

Commit

Permalink
remove redundant assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Kareem Farid <kareefardi@users.noreply.github.com>
  • Loading branch information
kareefardi committed Jan 9, 2025
1 parent 9dd1465 commit b2f42f0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions openlane/config/pdk_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def migrate_old_config(config: Mapping[str, Any]) -> Dict[str, Any]:
if "SYNTH_DRIVING_CELL_PIN" in new:
del new["SYNTH_DRIVING_CELL"]
del new["SYNTH_DRIVING_CELL_PIN"]
new["SYNTH_DRIVING_CELL"] = (
f"{config['SYNTH_DRIVING_CELL']}/{config['SYNTH_DRIVING_CELL_PIN']}"
)
new[
"SYNTH_DRIVING_CELL"
] = f"{config['SYNTH_DRIVING_CELL']}/{config['SYNTH_DRIVING_CELL_PIN']}"

# 2. Migrate SYNTH_TIE{HI,LO}_CELL
if "SYNTH_TIEHI_PORT" in new:
Expand Down Expand Up @@ -171,9 +171,9 @@ def migrate_old_config(config: Mapping[str, Any]) -> Dict[str, Any]:

del new["KLAYOUT_DRC_TECH_SCRIPT"]

new["SYNTH_CLK_DRIVING_CELL"] = (
f"{config['SYNTH_CLK_DRIVING_CELL']}/{config['SYNTH_DRIVING_CELL_PIN']}"
)
new[
"SYNTH_CLK_DRIVING_CELL"
] = f"{config['SYNTH_CLK_DRIVING_CELL']}/{config['SYNTH_DRIVING_CELL_PIN']}"

# x3. Timing Corners
lib_sta: Dict[str, List[str]] = {}
Expand Down Expand Up @@ -230,7 +230,6 @@ def process_sta(key: str):
new["DEFAULT_CORNER"] = f"nom_{default_pvt}"
new["TIMING_VIOLATION_CORNERS"] = ["*tt*"]
new["LIB"] = lib_sta
new["TIMING_VIOLATION_CORNERS"] = ["*tt*"]

# x4. Constraints (sky130/gf180mcu)
if new["PDK"].startswith("sky130") or new["PDK"].startswith("gf180mcu"):
Expand Down

0 comments on commit b2f42f0

Please sign in to comment.