build/xilinx/ise: use Tim's fix on add_period_constraint and add_false_path_constraint
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 14 Apr 2016 19:48:52 +0000 (21:48 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 14 Apr 2016 19:48:52 +0000 (21:48 +0200)
litex/build/xilinx/ise.py

index 65cf36bd73e3077a5bdb85f97ae0e0687cdf26bd..e8a808552defaad1e0c9b66ece30e0e622a4a266 100644 (file)
@@ -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,
+            )