Skip to content

Commit a1639d6

Browse files
Vivado Tool: Allow for "none" option for synth (#505)
Summary In the case in which the synth and pnr are set to none, use the post_build as the target for the vivado runner Reasoning The vivado tool currently fails to run any of the post_build scripts if synth is set to none. This allows custom user injection of post_build scripts which can run custom tcls, etc. to allow a broader use of vivado features while still leveraging project mode through fusesoc's project make target.
1 parent b0e45b3 commit a1639d6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

edalize/vivado.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,14 @@ def build_main(self):
111111
if "pnr" in self.tool_options:
112112
if self.tool_options["pnr"] == "vivado":
113113
pass
114-
elif self.tool_options["pnr"] == "none":
114+
elif (
115+
self.tool_options["pnr"] == "none"
116+
and self.tool_options["synth"] != "none"
117+
):
115118
args.append("synth")
119+
else:
120+
args.append("post_build")
121+
116122
self._run_tool("make", args)
117123

118124
def run_main(self):

0 commit comments

Comments
 (0)