From: Mariusz Glebocki Date: Sat, 23 May 2020 10:57:55 +0000 (+0200) Subject: build/xilinx: do not assume build name is "top" X-Git-Tag: 24jan2021_ls180~248^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4e8323485120d0fa51c1926acb3a036a2b98ee9;p=litex.git build/xilinx: do not assume build name is "top" --- diff --git a/litex/build/xilinx/common.py b/litex/build/xilinx/common.py index a36b8af4..40fbda32 100644 --- a/litex/build/xilinx/common.py +++ b/litex/build/xilinx/common.py @@ -374,7 +374,7 @@ def _run_yosys(device, sources, vincpaths, build_name): ys_contents += "read_{}{} {}\n".format(language, incflags, filename) ys_contents += """\ -hierarchy -top top +hierarchy -top {build_name} # FIXME: Are these needed? # proc; memory; opt; fsm; opt @@ -401,7 +401,7 @@ log select -list a:async_reg=true setattr -set keep 1 a:async_reg=true -synth_xilinx -top top +synth_xilinx -top {build_name} write_edif -pvector bra -attrprop {build_name}.edif """.format(build_name=build_name)