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:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user