From 765ae2df569bf7d9461937e8564daae85a529559 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Fri, 27 Oct 2023 19:44:47 +0300 Subject: [PATCH] feat: support for "power_gated" property in commit_id.json --- configure.py | 7 ++++++- project.py | 2 ++ shuttle.py | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 18f9b98..8d13999 100755 --- a/configure.py +++ b/configure.py @@ -56,7 +56,12 @@ class Projects: continue project = Project( - index, commit_id_data["repo"], project_dir, args, is_user_project=False + index, + commit_id_data["repo"], + project_dir, + args, + is_user_project=False, + power_gated=commit_id_data.get("power_gate", False), ) project.commit_id = commit_id_data["commit"] project.sort_id = commit_id_data["sort_id"] diff --git a/project.py b/project.py index ed1e9ff..1ed541b 100644 --- a/project.py +++ b/project.py @@ -43,12 +43,14 @@ class Project: local_dir: str, args: Args, is_user_project: bool, + power_gated: bool, ): self.git_url = git_url self.args = args self.index = index self.local_dir = local_dir self.is_user_project = is_user_project + self.power_gated = power_gated self.src_dir = ( os.path.join(self.local_dir, "src") if self.is_user_project diff --git a/shuttle.py b/shuttle.py index 090c1a1..1d978ce 100644 --- a/shuttle.py +++ b/shuttle.py @@ -44,6 +44,7 @@ class ShuttleConfig: "name": project.unprefixed_name, "width": width, "height": height, + "pg_vdd": True if project.power_gated else None, } )