xilinx_ise: run tools like Project Navigator does to avoid weird bitgen behavior
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 4 Jul 2013 21:49:12 +0000 (23:49 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 4 Jul 2013 21:49:12 +0000 (23:49 +0200)
mibuild/xilinx_ise.py

index 69306f5aeffbde940f3cc1eeb5317fba909ffff8..ad26c7520c3d722365f5fd12b4cc3dd4a7229b2d 100644 (file)
@@ -108,10 +108,10 @@ def _run_ise(build_name, ise_path, source):
 
        build_script_contents += """
 xst -ifn {build_name}.xst
-ngdbuild -uc {build_name}.ucf {build_name}.ngc
-map -ol high -w {build_name}.ngd
-par -ol high -w {build_name}.ncd {build_name}-routed.ncd
-bitgen -g LCK_cycle:6 -g Binary:Yes -w {build_name}-routed.ncd {build_name}.bit
+ngdbuild -uc {build_name}.ucf {build_name}.ngc {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 -g LCK_cycle:6 -g Binary:Yes -w {build_name}.ncd {build_name}.bit
 """.format(build_name=build_name)
        build_script_file = "build_" + build_name + ".sh"
        tools.write_to_file(build_script_file, build_script_contents)