From 3894a36ddbbaf30494b77f0f108cfa359886807a Mon Sep 17 00:00:00 2001 From: YRabbit Date: Thu, 24 Feb 2022 13:35:22 +1000 Subject: gowin: recognize partnumbers of GW1NZ-1 The model should be recognized by the partnumber, --family is needed only if the same partnumbers belong to different models. This is done in order to automatically generate parameters for calling nextpnr from Gowin files without problems: there also only partnumber is used and only in some cases the model is specified with the -name parameter and GW1NZ-1 is not such a case. Signed-off-by: YRabbit --- gowin/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gowin/main.cc b/gowin/main.cc index 38a67fcd..1473f3e8 100644 --- a/gowin/main.cc +++ b/gowin/main.cc @@ -55,7 +55,7 @@ po::options_description GowinCommandHandler::getArchOptions() std::unique_ptr GowinCommandHandler::createContext(dict &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(); if (!std::regex_match(device, match, devicere)) { -- cgit v1.2.3