feat(configure): add no_power_gating configuration

When set, it configures all user projects with `pg_vdd: false`. This is for ihp0p2 shuttle, which doesn't have power gating yet (tt-multiplexer defaults to enable the pg when `pg_vdd` is not explicitly specified).
This commit is contained in:
Uri Shaked
2024-10-22 11:50:26 +03:00
parent d1e8e31569
commit 05f4c62dc1
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -77,6 +77,9 @@ class ShuttleConfig:
"pg_vaa": project.info.uses_3v3,
}
module_config["modules"].append(module_entry)
if self.config.get("no_power_gating", False):
for module in module_config["modules"]:
module["pg_vdd"] = False
with open("tt-multiplexer/cfg/modules.yaml", "w") as mux_modules_file:
yaml.dump(module_config, mux_modules_file)