aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-06-14 08:55:11 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-06-14 08:55:11 +0200
commitca7e944d7a58bc305f0efce4da757520a6a86041 (patch)
treea7bd34f65e28bddc7b501443ef4bcca69761ccbf /generic
parentc6057abd00fc4d1538f066324188bd04d6b4cfc7 (diff)
downloadnextpnr-ca7e944d7a58bc305f0efce4da757520a6a86041.tar.gz
nextpnr-ca7e944d7a58bc305f0efce4da757520a6a86041.tar.bz2
nextpnr-ca7e944d7a58bc305f0efce4da757520a6a86041.zip
restore arch info for ecp5
Diffstat (limited to 'generic')
-rw-r--r--generic/main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/main.cc b/generic/main.cc
index 8ab3b0e8..f0070e92 100644
--- a/generic/main.cc
+++ b/generic/main.cc
@@ -53,6 +53,11 @@ void GenericCommandHandler::customBitstream(Context *ctx) {}
std::unique_ptr<Context> GenericCommandHandler::createContext(std::unordered_map<std::string,Property> &values)
{
+ if (values.find("arch.name")!=values.end()) {
+ std::string arch_name = values["arch.name"].str;
+ if (arch_name != "generic")
+ log_error("Unsuported architecture '%s'.\n", arch_name.c_str());
+ }
return std::unique_ptr<Context>(new Context(chipArgs));
}