Commit 3a84a8bf authored by whitequark's avatar whitequark
Browse files

build/lattice/diamond: only run Jedecgen for MachXO.

It does not exist for e.g. ECP.
parent 966781bc
......@@ -14,6 +14,10 @@ from migen.build import tools
from migen.build.lattice import common
def _produces_jedec(device):
return device.startswith("LCMX")
def _format_constraint(c):
if isinstance(c, Pins):
return ("LOCATE COMP ", " SITE " + "\"" + c.identifiers[0] + "\"")
......@@ -57,7 +61,8 @@ def _build_files(device, sources, vincpaths, build_name):
tcl.append("prj_run Map -impl implementation")
tcl.append("prj_run PAR -impl implementation")
tcl.append("prj_run Export -impl implementation -task Bitgen")
tcl.append("prj_run Export -impl implementation -task Jedecgen")
if _produces_jedec(device):
tcl.append("prj_run Export -impl implementation -task Jedecgen")
tools.write_to_file(build_name + ".tcl", "\n".join(tcl))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment