build/xilinx/ise: fix top name

This commit is contained in:
Florent Kermarrec 2016-06-29 23:22:57 +02:00
parent 3bb2bc35e2
commit 9499147bd4
1 changed files with 2 additions and 1 deletions

View File

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