From 3d00b97e0a9f8e8eb2bc22a4c3464eef547fc68d Mon Sep 17 00:00:00 2001 From: Adrien Prost-Boucle Date: Tue, 1 Oct 2024 11:20:57 +0200 Subject: [PATCH] Himbaechel Xilinx : Support get_nets with braces around net name in XDC commands --- himbaechel/uarch/xilinx/xdc.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/himbaechel/uarch/xilinx/xdc.cc b/himbaechel/uarch/xilinx/xdc.cc index eaa2c513..8ae2d1ac 100644 --- a/himbaechel/uarch/xilinx/xdc.cc +++ b/himbaechel/uarch/xilinx/xdc.cc @@ -123,7 +123,10 @@ void XilinxImpl::parse_xdc(const std::string &filename) log_error("targets other than 'get_ports' or 'get_nets' are not supported (on line %d)\n", lineno); if (split.size() < 2) log_error("failed to parse target (on line %d)\n", lineno); - IdString netname = ctx->id(split.at(1)); + str = strip_quotes(split.at(1)); + if (str.empty()) + return tgt_nets; + IdString netname = ctx->id(str); NetInfo *maybe_net = ctx->getNetByAlias(netname); if (maybe_net != nullptr) tgt_nets.push_back(maybe_net);