build/microsemi/libero_soc: associate .pdc to place and route tool.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 19 Nov 2018 07:06:29 +0000 (08:06 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 19 Nov 2018 07:07:36 +0000 (08:07 +0100)
For constraint to be applied, we also to associate them with the tool that will use it.

litex/build/microsemi/libero_soc.py

index acef2c4d436f65b663bf8c97a18386d14f73a1f0..32fa40939eb6028e9cc33b16cffa0d500354d0fa 100644 (file)
@@ -104,6 +104,12 @@ def _build_tcl(platform, sources, build_dir, build_name):
 
     # import constraints
     tcl.append("import_files -io_pdc {{{}}}".format(build_name + ".pdc"))
+    tcl.append(" ".join(["organize_tool_files",
+        "-tool {PLACEROUTE}",
+        "-file impl/constraint/io/{}.pdc".format(build_name),
+        "-module {}".format(build_name),
+        "-input_type {constraint}"
+    ]))
 
     # build flow
     tcl.append("run_tool -name {CONSTRAINT_MANAGEMENT}")