Skip to content

Commit

Permalink
Himbaechel xilinx : Fix regex to parse Zynq device names
Browse files Browse the repository at this point in the history
  • Loading branch information
marzoul authored and Ravenslofty committed Aug 19, 2024
1 parent 0d5d329 commit fa55e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion himbaechel/uarch/xilinx/xilinx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ void XilinxImpl::init_database(Arch *arch)
{
const ArchArgs &args = arch->args;
init_uarch_constids(arch);
std::regex devicere = std::regex("(xc7[azkv]\\d+t)([a-z0-9]+)-(\\dL?)");
std::smatch match;
std::regex devicere = std::regex("(xc7[azkv]\\d+t?)([a-z0-9]+)-(\\dL?)");
if (!std::regex_match(args.device, match, devicere)) {
log_error("Invalid device %s\n", args.device.c_str());
}
Expand Down

0 comments on commit fa55e93

Please sign in to comment.