From 05f4c62dc15fe51f3d7b3b7c732cc3c0b741bcec Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Tue, 22 Oct 2024 11:50:26 +0300 Subject: [PATCH] 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). --- config.py | 2 ++ shuttle.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/config.py b/config.py index 11d39b0..2f13baa 100644 --- a/config.py +++ b/config.py @@ -9,3 +9,5 @@ class Config(TypedDict): project_dir: str end_date: str top_level_macro: str + powered_netlists: bool + no_power_gating: bool diff --git a/shuttle.py b/shuttle.py index 15af6b3..ad3b698 100644 --- a/shuttle.py +++ b/shuttle.py @@ -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)