build/xilinx/ise: fix top name
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 29 Jun 2016 21:22:57 +0000 (23:22 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 29 Jun 2016 21:22:57 +0000 (23:22 +0200)
litex/build/xilinx/ise.py

index e8a808552defaad1e0c9b66ece30e0e622a4a266..48d7ded6b406ba988533f9bc54e0f9d2245bee70 100644 (file)
@@ -52,7 +52,7 @@ def _build_xst_files(device, sources, vincpaths, build_name, xst_opt):
 
     xst_contents = """run
 -ifn {build_name}.prj
--top top
+-top {build_name}
 {xst_opt}
 -ofn {build_name}.ngc
 -p {device}
@@ -134,6 +134,7 @@ class XilinxISEToolchain:
 
     def build(self, platform, fragment, build_dir="build", build_name="top",
             toolchain_path=None, source=None, run=True, mode="xst", **kwargs):
+        print(source)
         if not isinstance(fragment, _Fragment):
             fragment = fragment.get_fragment()
         if toolchain_path is None: