clangformat
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
a9228095ee
commit
f3ee0d51a9
@ -64,14 +64,14 @@ std::unique_ptr<Context> GowinCommandHandler::createContext(dict<std::string, Pr
|
|||||||
ArchArgs chipArgs;
|
ArchArgs chipArgs;
|
||||||
chipArgs.gui = vm.count("gui") != 0;
|
chipArgs.gui = vm.count("gui") != 0;
|
||||||
if (vm.count("family")) {
|
if (vm.count("family")) {
|
||||||
chipArgs.family = vm["family"].as<std::string>();
|
chipArgs.family = vm["family"].as<std::string>();
|
||||||
} else {
|
} else {
|
||||||
char buf[36];
|
char buf[36];
|
||||||
// GW1N and GW1NR variants share the same database.
|
// GW1N and GW1NR variants share the same database.
|
||||||
// Most Gowin devices are a System in Package with some SDRAM wirebonded to a GPIO bank.
|
// 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.
|
// 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());
|
snprintf(buf, 36, "GW1N%s-%s", match[1].str().c_str(), match[3].str().c_str());
|
||||||
chipArgs.family = buf;
|
chipArgs.family = buf;
|
||||||
}
|
}
|
||||||
chipArgs.partnumber = match[0];
|
chipArgs.partnumber = match[0];
|
||||||
return std::unique_ptr<Context>(new Context(chipArgs));
|
return std::unique_ptr<Context>(new Context(chipArgs));
|
||||||
|
Loading…
Reference in New Issue
Block a user