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
+2
View File
@@ -9,3 +9,5 @@ class Config(TypedDict):
project_dir: str project_dir: str
end_date: str end_date: str
top_level_macro: str top_level_macro: str
powered_netlists: bool
no_power_gating: bool
+3
View File
@@ -77,6 +77,9 @@ class ShuttleConfig:
"pg_vaa": project.info.uses_3v3, "pg_vaa": project.info.uses_3v3,
} }
module_config["modules"].append(module_entry) 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: with open("tt-multiplexer/cfg/modules.yaml", "w") as mux_modules_file:
yaml.dump(module_config, mux_modules_file) yaml.dump(module_config, mux_modules_file)