aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/main.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-19 14:57:38 +0000
committerEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-19 14:57:38 +0000
commit6e7ba2a2be87bb1e0f323128283a87f59af596b7 (patch)
tree2c442484baa82bad58821887788485903a0f5e85 /ecp5/main.cc
parent7e6332735d12f2e5ab9128648ed444bc123df512 (diff)
parent79dc910b40b082c9d74d010557b7939fb18535fe (diff)
downloadnextpnr-6e7ba2a2be87bb1e0f323128283a87f59af596b7.tar.gz
nextpnr-6e7ba2a2be87bb1e0f323128283a87f59af596b7.tar.bz2
nextpnr-6e7ba2a2be87bb1e0f323128283a87f59af596b7.zip
Merge branch 'master' into 'master'
Master See merge request eddiehung/nextpnr!4
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r--ecp5/main.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc
index 7521b88c..5a4a900a 100644
--- a/ecp5/main.cc
+++ b/ecp5/main.cc
@@ -68,6 +68,8 @@ int main(int argc, char *argv[])
options.add_options()("45k", "set device type to LFE5U-45F");
options.add_options()("85k", "set device type to LFE5U-85F");
+ options.add_options()("package", po::value<std::string>(), "select device package (defaults to CABGA381)");
+
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");
@@ -123,8 +125,10 @@ int main(int argc, char *argv[])
args.type = ArchArgs::LFE5U_45F;
if (vm.count("85k"))
args.type = ArchArgs::LFE5U_85F;
-
- args.package = "CABGA381";
+ if (vm.count("package"))
+ args.package = vm["package"].as<std::string>();
+ else
+ args.package = "CABGA381";
args.speed = 6;
std::unique_ptr<Context> ctx = std::unique_ptr<Context>(new Context(args));