aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/main.cc
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2021-11-04 18:55:00 +1000
committerYRabbit <rabbit@yrabbit.cyou>2021-11-04 18:55:00 +1000
commit0e8a2999bda012175c1734abbf4efb76b515746c (patch)
treec7935473f948d1659ee255094caea8fa89b89aad /gowin/main.cc
parent06d58e6eed90aa9c2d16d0fe6286ec59a2f880a2 (diff)
downloadnextpnr-0e8a2999bda012175c1734abbf4efb76b515746c.tar.gz
nextpnr-0e8a2999bda012175c1734abbf4efb76b515746c.tar.bz2
nextpnr-0e8a2999bda012175c1734abbf4efb76b515746c.zip
gowin: Add partnumbers and packages to the chipdb
Instead of parsing the partnumber with a regular expression, a simple table is used. This is done because the structure of the partnumber changes as new features appear (e.g., ES instead of C6/I5) This commit does not yet disable the very first regular expression check. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin/main.cc')
-rw-r--r--gowin/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gowin/main.cc b/gowin/main.cc
index a56cc8e8..51e65dfe 100644
--- a/gowin/main.cc
+++ b/gowin/main.cc
@@ -73,7 +73,7 @@ std::unique_ptr<Context> GowinCommandHandler::createContext(dict<std::string, Pr
snprintf(buf, 36, "GW1N-%s", match[3].str().c_str());
}
chipArgs.family = buf;
- chipArgs.package = match[5];
+ chipArgs.partnumber = match[0];
chipArgs.speed = match[6];
return std::unique_ptr<Context>(new Context(chipArgs));
}