diff --git a/gowin/main.cc b/gowin/main.cc index cbd62ed9..66de26aa 100644 --- a/gowin/main.cc +++ b/gowin/main.cc @@ -54,7 +54,7 @@ po::options_description GowinCommandHandler::getArchOptions() std::unique_ptr GowinCommandHandler::createContext(dict &values) { - std::regex devicere = std::regex("GW1N([A-Z]*)-(LV|UV|UX)([0-9])(C?).*"); + std::regex devicere = std::regex("GW1N(S?)[A-Z]*-(LV|UV|UX)([0-9])(C?).*"); std::smatch match; std::string device = vm["device"].as(); if (!std::regex_match(device, match, devicere)) { @@ -65,11 +65,7 @@ std::unique_ptr GowinCommandHandler::createContext(dict(new Context(chipArgs));