From 8e07e1a099e086acfeadfbabbd6ccfdbcb4aee3d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 19 Nov 2018 08:06:29 +0100 Subject: [PATCH] build/microsemi/libero_soc: associate .pdc to place and route tool. For constraint to be applied, we also to associate them with the tool that will use it. --- litex/build/microsemi/libero_soc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litex/build/microsemi/libero_soc.py b/litex/build/microsemi/libero_soc.py index acef2c4d4..32fa40939 100644 --- a/litex/build/microsemi/libero_soc.py +++ b/litex/build/microsemi/libero_soc.py @@ -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}")