Skip to content

Commit

Permalink
Himbaechel Xilinx : XDC commands : Also search nets with lowercase fo…
Browse files Browse the repository at this point in the history
…r better interoperability with other synthesis tools and RTL languages
  • Loading branch information
marzoul authored and gatecat committed Oct 1, 2024
1 parent 3d00b97 commit 7f33329
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions himbaechel/uarch/xilinx/xdc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f33329

Please sign in to comment.