Skip to content

Commit

Permalink
Restore Vivado run_main method
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickerich authored and olofk committed Jul 6, 2022
1 parent 40be77f commit b936a1b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions edalize/vivado.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ def __init__(self, edam=None, work_root=None, eda_api=None, verbose=True):
def configure_main(self):
self.vivado.configure()

def run_main(self):
"""
Program the FPGA.
For programming the FPGA a vivado tcl script is written that searches for the
correct FPGA board and then downloads the bitstream. The tcl script is then
executed in Vivado's batch mode.
"""
if "pnr" in self.tool_options:
if self.tool_options["pnr"] == "vivado":
pass
elif self.tool_options["pnr"] == "none":
return

self._run_tool("make", ["pgm"])

def build_pre(self):
pass

Expand Down

0 comments on commit b936a1b

Please sign in to comment.