mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user