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)