From: Robert Jordens Date: Fri, 6 Dec 2013 10:49:44 +0000 (-0700) Subject: mibuild/xilinx_ise: use ngdbuild_opt also for xst case X-Git-Tag: 24jan2021_ls180~2099^2~396 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe0263bb9accd5023ecbd46ad427e9496b3dd8db;p=litex.git mibuild/xilinx_ise: use ngdbuild_opt also for xst case --- diff --git a/mibuild/xilinx_ise.py b/mibuild/xilinx_ise.py index bf5da731..37eb329c 100644 --- a/mibuild/xilinx_ise.py +++ b/mibuild/xilinx_ise.py @@ -134,20 +134,20 @@ def _run_ise(build_name, ise_path, source, mode, ngdbuild_opt, xilinx_settings_file = os.path.join(ise_path, tools_version, "ISE_DS", "settings32.sh") build_script_contents += "source " + xilinx_settings_file + "\n" if mode == "edif": - build_script_contents += """ -ngdbuild {ngdbuild_opt} -uc {build_name}.ucf {build_name}.edif {build_name}.ngd""" + ext = "edif" else: + ext = "ngc" build_script_contents += """ -xst -ifn {build_name}.xst -ngdbuild -uc {build_name}.ucf {build_name}.ngc {build_name}.ngd""" - +xst -ifn {build_name}.xst""" + build_script_contents += """ +ngdbuild {ngdbuild_opt} -uc {build_name}.ucf {build_name}.{ext} {build_name}.ngd map -ol high -w -o {build_name}_map.ncd {build_name}.ngd {build_name}.pcf par -ol high -w {build_name}_map.ncd {build_name}.ncd {build_name}.pcf bitgen {bitgen_opt} -w {build_name}.ncd {build_name}.bit """ build_script_contents = build_script_contents.format(build_name=build_name, - ngdbuild_opt=ngdbuild_opt, bitgen_opt=bitgen_opt) + ngdbuild_opt=ngdbuild_opt, bitgen_opt=bitgen_opt, ext=ext) build_script_contents += ise_commands.format(build_name=build_name) build_script_file = "build_" + build_name + ".sh" tools.write_to_file(build_script_file, build_script_contents)