From f3ee0d51a9546afe77a31d2a1e98a0bbee4659fa Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 16 Feb 2022 13:32:53 +0000 Subject: [PATCH] clangformat Signed-off-by: gatecat --- gowin/main.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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));