1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-04 15:53:20 +00:00

Merge pull request #923 from yrabbit/partnumber-re

gowin: recognize partnumbers of GW1NZ-1
This commit is contained in:
gatecat
2022-02-24 11:13:39 +00:00
committed by GitHub

View File

@@ -55,7 +55,7 @@ po::options_description GowinCommandHandler::getArchOptions()
std::unique_ptr<Context> GowinCommandHandler::createContext(dict<std::string, Property> &values)
{
std::regex devicere = std::regex("GW1N(S?)[A-Z]*-(LV|UV|UX)([0-9])(C?).*");
std::regex devicere = std::regex("GW1N([SZ]?)[A-Z]*-(LV|UV|UX)([0-9])(C?).*");
std::smatch match;
std::string device = vm["device"].as<std::string>();
if (!std::regex_match(device, match, devicere)) {