Skip to content

Commit

Permalink
Merge pull request #2127 from VOGL-electronic/efinity-path-fix
Browse files Browse the repository at this point in the history
Fix vdb path for Efinity 2024.2
  • Loading branch information
trabucayre authored Nov 27, 2024
2 parents 29c5a1d + 1ac1c83 commit 76829aa
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 76829aa

Please sign in to comment.