Skip to content

Commit

Permalink
symbiflow: Avoid SyntaxWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed May 10, 2021
1 parent afa69e8 commit 13b7028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edalize/symbiflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def configure_nextpnr(self):
target_family = family
break

if target_family is None and arch is "fpga_interchange":
if target_family is None and arch == "fpga_interchange":
logger.error("Couldn't find family for part: {}. Available families: {}".format(part, ", ".join(getattr(self, "fpga_interchange_families"))))

chipdb = None
Expand All @@ -151,7 +151,7 @@ def configure_nextpnr(self):
if placement_constraints == []:
logger.error("Missing required XDC file(s)")

if device is None and arch is "fpga_interchange":
if device is None and arch == "fpga_interchange":
logger.error('Missing required ".device" file for "fpga_interchange" arch')

nextpnr_options = self.tool_options.get("nextpnr_options", "")
Expand Down

0 comments on commit 13b7028

Please sign in to comment.