vendor.xilinx: avoid using `/` for hierarchy in ISE constraint files.
authorH-S-S-11 <52609833+H-S-S-11@users.noreply.github.com>
Sat, 25 Sep 2021 10:41:23 +0000 (11:41 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:31:33 +0000 (15:31 +0000)
nmigen/vendor/xilinx.py

index be8d3776cd55a3645bdf46598596f8990d0c596c..f332a93230fd3c853e93322f6c11207e0181d94b 100644 (file)
@@ -276,7 +276,7 @@ class XilinxPlatform(TemplatedPlatform):
             {% endfor %}
             {% for net_signal, port_signal, frequency in platform.iter_clock_constraints() -%}
                 NET "{{net_signal|hierarchy("/")}}" TNM_NET="PRD{{net_signal|hierarchy("/")}}";
-                TIMESPEC "TS{{net_signal|hierarchy("/")}}"=PERIOD "PRD{{net_signal|hierarchy("/")}}" {{1000000000/frequency}} ns HIGH 50%;
+                TIMESPEC "TS{{net_signal|hierarchy("__")}}"=PERIOD "PRD{{net_signal|hierarchy("/")}}" {{1000000000/frequency}} ns HIGH 50%;
             {% endfor %}
             {{get_override("add_constraints")|default("# (add_constraints placeholder)")}}
         """