feat: support for "power_gated" property in commit_id.json

This commit is contained in:
Uri Shaked
2023-10-27 19:44:47 +03:00
parent 1822432015
commit 765ae2df56
3 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -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"]
+2
View File
@@ -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
+1
View File
@@ -44,6 +44,7 @@ class ShuttleConfig:
"name": project.unprefixed_name,
"width": width,
"height": height,
"pg_vdd": True if project.power_gated else None,
}
)