Skip to content

Commit 0154439

Browse files
mooperdrobtaylor
authored andcommitted
Check for CHIPFLOW_BACKEND_VERSION env var and add to data if exists
1 parent 776aa43 commit 0154439

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

chipflow_lib/steps/silicon.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,18 @@ def submit(self, rtlil_path, *, dry_run=False):
128128
dep_versions[package] = importlib.metadata.version(package)
129129
except importlib.metadata.PackageNotFoundError:
130130
dep_versions[package] = None
131+
131132
data = {
132133
"projectId": self.project_name,
133134
"name": submission_name,
134135
}
135136

137+
# Dev only var to select specifc backend version
138+
# Check if CHIPFLOW_BACKEND_VERSION exists in the environment and add it to the data dictionary
139+
chipflow_backend_version = os.environ.get("CHIPFLOW_BACKEND_VERSION")
140+
if chipflow_backend_version:
141+
data["chipflow_backend_version"] = chipflow_backend_version
142+
136143
pads = {}
137144
for iface, port in self.platform._ports.items():
138145
width = len(port.pins)

0 commit comments

Comments
 (0)