diff options
author | David Shah <dave@ds0.me> | 2020-03-25 09:46:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 09:46:21 +0000 |
commit | a3ede0293a50c910e7d96319b2084d50f2501a6b (patch) | |
tree | e634116a5f69ef009ee25b31b527fa1279929450 /ecp5/main.cc | |
parent | 4b54253c24e6d1bae4dc25e95c25ef95d8d07086 (diff) | |
parent | 3b49c20f4345f05bb92e6fc0a8dfa4c87c9cfa46 (diff) | |
download | nextpnr-a3ede0293a50c910e7d96319b2084d50f2501a6b.tar.gz nextpnr-a3ede0293a50c910e7d96319b2084d50f2501a6b.tar.bz2 nextpnr-a3ede0293a50c910e7d96319b2084d50f2501a6b.zip |
Merge pull request #410 from YosysHQ/ecp5-12k
ecp5: Proper support for '12k' device
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r-- | ecp5/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc index 24a98df4..a24011db 100644 --- a/ecp5/main.cc +++ b/ecp5/main.cc @@ -49,6 +49,7 @@ ECP5CommandHandler::ECP5CommandHandler(int argc, char **argv) : CommandHandler(a po::options_description ECP5CommandHandler::getArchOptions() { po::options_description specific("Architecture specific options"); + specific.add_options()("12k", "set device type to LFE5U-12F"); specific.add_options()("25k", "set device type to LFE5U-25F"); specific.add_options()("45k", "set device type to LFE5U-45F"); specific.add_options()("85k", "set device type to LFE5U-85F"); @@ -125,7 +126,8 @@ std::unique_ptr<Context> ECP5CommandHandler::createContext(std::unordered_map<st { ArchArgs chipArgs; chipArgs.type = ArchArgs::NONE; - + if (vm.count("12k")) + chipArgs.type = ArchArgs::LFE5U_12F; if (vm.count("25k")) chipArgs.type = ArchArgs::LFE5U_25F; if (vm.count("45k")) @@ -179,6 +181,8 @@ std::unique_ptr<Context> ECP5CommandHandler::createContext(std::unordered_map<st if (chipArgs.type != ArchArgs::NONE) log_error("Overriding architecture is unsuported.\n"); + if (arch_type == "lfe5u_12f") + chipArgs.type = ArchArgs::LFE5U_12F; if (arch_type == "lfe5u_25f") chipArgs.type = ArchArgs::LFE5U_25F; if (arch_type == "lfe5u_45f") |