mibuild/xilinx/ise: update synthesis with yosis
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 18 Aug 2015 23:09:54 +0000 (01:09 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 18 Aug 2015 23:12:05 +0000 (01:12 +0200)
mibuild/xilinx/ise.py

index d440839e1a655758926e08d324190b26d43de10c..92f37517d6f897ff34a765bc7d86d50b0d233585 100644 (file)
@@ -69,24 +69,12 @@ def _run_yosys(device, sources, vincpaths, build_name):
     incflags = ""
     for path in vincpaths:
         incflags += " -I" + path
-    for filename, language in sources:
+    for filename, language, library in sources:
         ys_contents += "read_{}{} {}\n".format(language, incflags, filename)
 
-    if device[:2] == "xc":
-        archcode = device[2:4]
-    else:
-        archcode = device[0:2]
-    arch = {
-        "6s": "spartan6",
-        "7a": "artix7",
-        "7k": "kintex7",
-        "7v": "virtex7",
-        "7z": "zynq7000"
-    }[archcode]
-
     ys_contents += """hierarchy -check -top top
 proc; memory; opt; fsm; opt
-synth_xilinx -arch {arch} -top top -edif {build_name}.edif""".format(arch=arch, build_name=build_name)
+synth_xilinx -top top -edif {build_name}.edif""".format(build_name=build_name)
 
     ys_name = build_name + ".ys"
     tools.write_to_file(ys_name, ys_contents)