build/microsemi/libero_soc: pass timing constraints to synthesis, place & route and...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 19 Nov 2018 11:50:07 +0000 (12:50 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 19 Nov 2018 11:50:07 +0000 (12:50 +0100)
litex/build/microsemi/libero_soc.py

index 6e561c4d67efe68f476b4c893a2e3adfb644073b..779e6983477e77cf8f521ae8043a6df1e83b48ee 100644 (file)
@@ -113,12 +113,13 @@ def _build_tcl(platform, sources, build_dir, build_name):
 
     # import timing constraints
     tcl.append("import_files -convert_EDN_to_HDL 0 -sdc {{{}}}".format(build_name + ".sdc"))
-    tcl.append(" ".join(["organize_tool_files",
-        "-tool {VERIFYTIMING}",
-        "-file impl/constraint/{}.sdc".format(build_name),
-        "-module {}".format(build_name),
-        "-input_type {constraint}"
-    ]))
+    for tool in ["{SYNTHESIZE}", "{PLACEROUTE}", "{VERIFYTIMING}"]:
+        tcl.append(" ".join(["organize_tool_files",
+            "-tool " + tool,
+            "-file impl/constraint/{}.sdc".format(build_name),
+            "-module {}".format(build_name),
+            "-input_type {constraint}"
+        ]))
 
     # build flow
     tcl.append("run_tool -name {CONSTRAINT_MANAGEMENT}")