aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/main.cc
diff options
context:
space:
mode:
authorSerge Bazanski <serge@bazanski.pl>2018-07-17 16:03:48 +0100
committerSerge Bazanski <serge@bazanski.pl>2018-07-17 16:03:48 +0100
commit498bef3f3e82ed214daf44ada83eb22a21159993 (patch)
treeb5d982452b972df13c20cabc0c2b2b73256a285d /ecp5/main.cc
parentf3c6c76fff90d89dd65af2c02124c098dab63892 (diff)
parent2eb783d626a9a17baf70d2f7750be3c11623d5bc (diff)
downloadnextpnr-498bef3f3e82ed214daf44ada83eb22a21159993.tar.gz
nextpnr-498bef3f3e82ed214daf44ada83eb22a21159993.tar.bz2
nextpnr-498bef3f3e82ed214daf44ada83eb22a21159993.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr into q3k/lock-2-electric-boogaloo
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r--ecp5/main.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc
index 4cb2f10d..7521b88c 100644
--- a/ecp5/main.cc
+++ b/ecp5/main.cc
@@ -63,6 +63,11 @@ int main(int argc, char *argv[])
#ifndef NO_GUI
options.add_options()("gui", "start gui");
#endif
+
+ options.add_options()("25k", "set device type to LFE5U-25F");
+ options.add_options()("45k", "set device type to LFE5U-45F");
+ options.add_options()("85k", "set device type to LFE5U-85F");
+
options.add_options()("json", po::value<std::string>(), "JSON design file to ingest");
options.add_options()("seed", po::value<int>(), "seed value for random number generator");
@@ -111,6 +116,14 @@ int main(int argc, char *argv[])
ArchArgs args;
args.type = ArchArgs::LFE5U_45F;
+
+ if (vm.count("25k"))
+ args.type = ArchArgs::LFE5U_25F;
+ if (vm.count("45k"))
+ args.type = ArchArgs::LFE5U_45F;
+ if (vm.count("85k"))
+ args.type = ArchArgs::LFE5U_85F;
+
args.package = "CABGA381";
args.speed = 6;
std::unique_ptr<Context> ctx = std::unique_ptr<Context>(new Context(args));