Skip to content

Commit

Permalink
fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hansfbaier committed Oct 24, 2023
1 parent 468375b commit 8d0f08a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litex/build/xilinx/yosys_nextpnr.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def finalize(self):
if prjxray_db_dir is None or prjxray_db_dir == "":
prjxray_db_dir = '/snap/openxc7/current/opt/nextpnr-xilinx/external/prjxray-db/'
else:
prjxray_db_dir = f"/usr/share/nextpnr/prjxray-db/
prjxray_db_dir = "/usr/share/nextpnr/prjxray-db/"

if not os.path.isdir(prjxray_db_dir):
print(f"{prjxray_db_dir} does not exist on your system. \n" + \
Expand All @@ -126,7 +126,7 @@ def finalize(self):
exit(1)

# pre packer options
self._pre_packer_opts[self._pre_packer_cmd] = "--part {part} --db-root {db_root} {top}.fasm > {top}.frames".format(
self._pre_packer_opts[self._pre_packer_cmd[0]] = "--part {part} --db-root {db_root} {top}.fasm > {top}.frames".format(
part = self.platform.device,
db_root = os.path.join(prjxray_db_dir, self._xc7family),
top = self._build_name
Expand Down

0 comments on commit 8d0f08a

Please sign in to comment.