Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vdb path for Efinity 2024.2 #2127

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions litex/build/efinix/efinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ def run_script(self, script):
if r != 0:
raise OSError("Error occurred during efx_map execution.")


vdbfile = f"work_syn/{self._build_name}.vdb"
if not os.path.exists(vdbfile):
vdbfile = f"outflow/{self._build_name}.vdb"

r = tools.subprocess_call_filtered([self.efinity_path + "/bin/efx_pnr",
"--circuit", f"{self._build_name}",
Expand All @@ -401,7 +403,7 @@ def run_script(self, script):
"--pack",
"--place",
"--route",
"--vdb_file", f"work_syn/{self._build_name}.vdb",
"--vdb_file", vdbfile,
"--use_vdb_file", "on",
"--place_file", f"outflow/{self._build_name}.place",
"--route_file", f"outflow/{self._build_name}.route",
Expand Down
Loading