From: H-S-S-11 <52609833+H-S-S-11@users.noreply.github.com> Date: Sat, 25 Sep 2021 10:41:23 +0000 (+0100) Subject: vendor.xilinx: avoid using `/` for hierarchy in ISE constraint files. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c746a4b2e79b7d102d90e55c9832fa334a8d34e4;p=nmigen.git vendor.xilinx: avoid using `/` for hierarchy in ISE constraint files. --- diff --git a/nmigen/vendor/xilinx.py b/nmigen/vendor/xilinx.py index be8d377..f332a93 100644 --- a/nmigen/vendor/xilinx.py +++ b/nmigen/vendor/xilinx.py @@ -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)")}} """