From 7f33329fe14b19316f716e39aca0b1059ba3cadd Mon Sep 17 00:00:00 2001 From: Adrien Prost-Boucle Date: Tue, 1 Oct 2024 11:23:33 +0200 Subject: [PATCH] Himbaechel Xilinx : XDC commands : Also search nets with lowercase for better interoperability with other synthesis tools and RTL languages --- himbaechel/uarch/xilinx/xdc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/himbaechel/uarch/xilinx/xdc.cc b/himbaechel/uarch/xilinx/xdc.cc index 8ae2d1ac..b0f41922 100644 --- a/himbaechel/uarch/xilinx/xdc.cc +++ b/himbaechel/uarch/xilinx/xdc.cc @@ -128,6 +128,14 @@ void XilinxImpl::parse_xdc(const std::string &filename) return tgt_nets; IdString netname = ctx->id(str); NetInfo *maybe_net = ctx->getNetByAlias(netname); + if (maybe_net != nullptr) { + tgt_nets.push_back(maybe_net); + return tgt_nets; + } + // Also test the lowercase variant, for better interoperability with synthesis tools + boost::algorithm::to_lower(str); + netname = ctx->id(str); + maybe_net = ctx->getNetByAlias(netname); if (maybe_net != nullptr) tgt_nets.push_back(maybe_net); return tgt_nets;