mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Fix vdb path for Efinity 2024.2
With Efinity 2024.2, the path of the vdb file has changed from `work_syn` to `outflow`. To fix this, first check if the file exists in `work_syn`. If it doesn't `outflow` is used. Signed-off-by: Matthias Breithaupt <m.breithaupt@vogl-electronic.com>
This commit is contained in:
parent
10dcc73676
commit
1ac1c83b51
1 changed files with 4 additions and 2 deletions
|
@ -391,7 +391,9 @@ class EfinityToolchain(GenericToolchain):
|
|||
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}",
|
||||
|
@ -401,7 +403,7 @@ class EfinityToolchain(GenericToolchain):
|
|||
"--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",
|
||||
|
|
Loading…
Reference in a new issue