Skip to content

Commit

Permalink
feat(configure): add no_power_gating configuration
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
urish committed Oct 22, 2024
1 parent d1e8e31 commit 05f4c62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ class Config(TypedDict):
project_dir: str
end_date: str
top_level_macro: str
powered_netlists: bool
no_power_gating: bool
3 changes: 3 additions & 0 deletions shuttle.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def configure_mux(self):
"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)
Expand Down

0 comments on commit 05f4c62

Please sign in to comment.