aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/main.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-06-21 18:06:01 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-06-21 18:06:01 +0200
commit9affcf82d969bf34aae449a28391451a4f4fdfd8 (patch)
tree68a6b00cf092db6110ceded1813b2e330f43c135 /ecp5/main.cc
parent0c3093fe49d9ba14577b38bd5032081699e05680 (diff)
downloadnextpnr-9affcf82d969bf34aae449a28391451a4f4fdfd8.tar.gz
nextpnr-9affcf82d969bf34aae449a28391451a4f4fdfd8.tar.bz2
nextpnr-9affcf82d969bf34aae449a28391451a4f4fdfd8.zip
default for 5G is speed 8
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r--ecp5/main.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc
index 9917e217..fa0783e1 100644
--- a/ecp5/main.cc
+++ b/ecp5/main.cc
@@ -151,7 +151,11 @@ std::unique_ptr<Context> ECP5CommandHandler::createContext(std::unordered_map<st
log_error("Unsupported speed grade '%d'\n", speed);
}
} else {
- chipArgs.speed = ArchArgs::SPEED_6;
+ if (chipArgs.type == ArchArgs::LFE5UM5G_25F || chipArgs.type == ArchArgs::LFE5UM5G_45F ||
+ chipArgs.type == ArchArgs::LFE5UM5G_85F) {
+ chipArgs.speed = ArchArgs::SPEED_8;
+ } else
+ chipArgs.speed = ArchArgs::SPEED_6;
}
if (values.find("arch.name")!=values.end()) {
std::string arch_name = values["arch.name"].str;