From: Florent Kermarrec Date: Thu, 14 Apr 2016 19:48:52 +0000 (+0200) Subject: build/xilinx/ise: use Tim's fix on add_period_constraint and add_false_path_constraint X-Git-Tag: 24jan2021_ls180~1975^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b3699839ece05913b474c80179ebdd630e3404b;p=litex.git build/xilinx/ise: use Tim's fix on add_period_constraint and add_false_path_constraint --- 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, + )