From 635d1b4285bbdd5e514e1fd9417eabddf8ea2657 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 28 Mar 2026 14:57:59 +0200 Subject: [PATCH] fix(configure): skip power gate macro copy when no_power_gating is set --- shuttle.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/shuttle.py b/shuttle.py index c8e3c80..21df574 100644 --- a/shuttle.py +++ b/shuttle.py @@ -260,12 +260,13 @@ class ShuttleConfig: ) # Copy power gate / analog switch macros: - mux_macros = self.tech.mux_macros - if self.config.get("id") == "ttsky25a": - # Backward compatibility for ttsky25a shuttle mux with older pg macros - mux_macros = [m.replace("_hp_", "_") for m in mux_macros] - for mux_macro in mux_macros: - self.copy_mux_macro(mux_macro, os.path.basename(mux_macro)) + if not self.config.get("no_power_gating", False): + mux_macros = self.tech.mux_macros + if self.config.get("id") == "ttsky25a": + # Backward compatibility for ttsky25a shuttle mux with older pg macros + mux_macros = [m.replace("_hp_", "_") for m in mux_macros] + for mux_macro in mux_macros: + self.copy_mux_macro(mux_macro, os.path.basename(mux_macro)) # Copy logo & shuttle ID self.copy_logo_macro("tt_logo_top")