aboutsummaryrefslogtreecommitdiffstats
path: root/gowin
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-02-16 13:32:53 +0000
committergatecat <gatecat@ds0.me>2022-02-16 13:32:53 +0000
commitf3ee0d51a9546afe77a31d2a1e98a0bbee4659fa (patch)
treec0dd3994ffce65dca88a336d7ab73875c5416d0c /gowin
parenta9228095ee78747eb49359814a4722a648808cc4 (diff)
downloadnextpnr-f3ee0d51a9546afe77a31d2a1e98a0bbee4659fa.tar.gz
nextpnr-f3ee0d51a9546afe77a31d2a1e98a0bbee4659fa.tar.bz2
nextpnr-f3ee0d51a9546afe77a31d2a1e98a0bbee4659fa.zip
clangformat
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'gowin')
-rw-r--r--gowin/main.cc14
1 files 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<Context> GowinCommandHandler::createContext(dict<std::string, Pr
ArchArgs chipArgs;
chipArgs.gui = vm.count("gui") != 0;
if (vm.count("family")) {
- chipArgs.family = vm["family"].as<std::string>();
+ chipArgs.family = vm["family"].as<std::string>();
} 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<Context>(new Context(chipArgs));