From 7b3699839ece05913b474c80179ebdd630e3404b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 14 Apr 2016 21:48:52 +0200 Subject: [PATCH] build/xilinx/ise: use Tim's fix on add_period_constraint and add_false_path_constraint --- litex/build/xilinx/ise.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/litex/build/xilinx/ise.py b/litex/build/xilinx/ise.py index 65cf36bd..e8a80855 100644 --- a/litex/build/xilinx/ise.py +++ b/litex/build/xilinx/ise.py @@ -180,11 +180,21 @@ class XilinxISEToolchain: return vns def add_period_constraint(self, platform, clk, period): - platform.add_platform_command("""NET "{clk}" TNM_NET = "GRP{clk}"; -TIMESPEC "TS{clk}" = PERIOD "GRP{clk}" """ + str(period) + """ ns HIGH 50%;""", - clk=clk) + platform.add_platform_command( + """ +NET "{clk}" TNM_NET = "PRD{clk}"; +TIMESPEC "TS{clk}" = PERIOD "PRD{clk}" """ + str(period) + """ ns HIGH 50%; +""", + clk=clk, + ) def add_false_path_constraint(self, platform, from_, to): platform.add_platform_command( - """TIMESPEC "TS{from_}TO{to}" = FROM "GRP{from_}" TO "GRP{to}" TIG;""", - from_=from_, to=to) + """ +NET "{from_}" TNM_NET = "TIG{from_}"; +NET "{to}" TNM_NET = "TIG{to}"; +TIMESPEC "TS{from_}TO{to}" = FROM "TIG{from_}" TO "TIG{to}" TIG; +""", + from_=from_, + to=to, + ) -- 2.30.2