From: Florent Kermarrec Date: Sat, 18 Feb 2017 16:32:01 +0000 (+0100) Subject: build/lattice/diamond: add jedec file generation X-Git-Tag: 24jan2021_ls180~1886 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60f7e9c14f197c00d865803d647acd1d0f180a94;p=litex.git build/lattice/diamond: add jedec file generation --- diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index 52ff58c1..fad525f3 100644 --- a/litex/build/lattice/diamond.py +++ b/litex/build/lattice/diamond.py @@ -56,6 +56,7 @@ 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") tools.write_to_file(build_name + ".tcl", "\n".join(tcl)) @@ -67,6 +68,7 @@ def _run_diamond(build_name, source, ver=None): tools.write_to_file(build_script_file, build_script_contents) r = subprocess.call([build_script_file]) shutil.copy(os.path.join("implementation", build_name + "_implementation.bit"), build_name + ".bit") + shutil.copy(os.path.join("implementation", build_name + "_implementation.jed"), build_name + ".jed") else: raise NotImplementedError