Skip to content

Commit

Permalink
xilinx/ise: set build_name as top name
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Nov 12, 2018
1 parent 2dc085d commit f71b4a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migen/build/xilinx/ise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -177,7 +177,7 @@ def build(self, platform, fragment, build_dir="build", build_name="top",
os.chdir(build_dir)
try:
if mode in ("xst", "yosys", "cpld"):
v_output = platform.get_verilog(fragment)
v_output = platform.get_verilog(fragment, name=build_name)
vns = v_output.ns
named_sc, named_pc = platform.resolve_signals(vns)
v_file = build_name + ".v"
Expand Down

0 comments on commit f71b4a8

Please sign in to comment.