diff --git a/gowin/main.cc b/gowin/main.cc index 343d922b..38a67fcd 100644 --- a/gowin/main.cc +++ b/gowin/main.cc @@ -64,14 +64,14 @@ std::unique_ptr GowinCommandHandler::createContext(dict(); + chipArgs.family = vm["family"].as(); } else { - char buf[36]; - // GW1N and GW1NR variants share the same database. - // Most Gowin devices are a System in Package with some SDRAM wirebonded to a GPIO bank. - // However, it appears that the S series with embedded ARM core are unique silicon. - snprintf(buf, 36, "GW1N%s-%s", match[1].str().c_str(), match[3].str().c_str()); - chipArgs.family = buf; + char buf[36]; + // GW1N and GW1NR variants share the same database. + // Most Gowin devices are a System in Package with some SDRAM wirebonded to a GPIO bank. + // However, it appears that the S series with embedded ARM core are unique silicon. + snprintf(buf, 36, "GW1N%s-%s", match[1].str().c_str(), match[3].str().c_str()); + chipArgs.family = buf; } chipArgs.partnumber = match[0]; return std::unique_ptr(new Context(chipArgs));