From c746a4b2e79b7d102d90e55c9832fa334a8d34e4 Mon Sep 17 00:00:00 2001 From: H-S-S-11 <52609833+H-S-S-11@users.noreply.github.com> Date: Sat, 25 Sep 2021 11:41:23 +0100 Subject: [PATCH] vendor.xilinx: avoid using `/` for hierarchy in ISE constraint files. --- nmigen/vendor/xilinx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)")}} """ -- 2.30.2