diff options
author | David Shah <davey1576@gmail.com> | 2018-10-17 11:14:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 11:14:27 +0100 |
commit | b53a4862db99e41f16c06425f314a1a398a21985 (patch) | |
tree | dbe277f6d9487eab64715e4c14ce9be230820c38 /ecp5/main.cc | |
parent | 529a595157a2eef24f8529b0de0c504a40ed503b (diff) | |
parent | 1cde2080902c25d2a59e8ebb5b0b23a90f693e8e (diff) | |
download | nextpnr-b53a4862db99e41f16c06425f314a1a398a21985.tar.gz nextpnr-b53a4862db99e41f16c06425f314a1a398a21985.tar.bz2 nextpnr-b53a4862db99e41f16c06425f314a1a398a21985.zip |
Merge pull request #89 from YosysHQ/ecp5_bram
ECP5 BRAM support
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r-- | ecp5/main.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc index 5ad5a9bf..e71b0983 100644 --- a/ecp5/main.cc +++ b/ecp5/main.cc @@ -50,6 +50,12 @@ po::options_description ECP5CommandHandler::getArchOptions() 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"); + specific.add_options()("um-25k", "set device type to LFE5UM-25F"); + specific.add_options()("um-45k", "set device type to LFE5UM-45F"); + specific.add_options()("um-85k", "set device type to LFE5UM-85F"); + specific.add_options()("um5g-25k", "set device type to LFE5UM5G-25F"); + specific.add_options()("um5g-45k", "set device type to LFE5UM5G-45F"); + specific.add_options()("um5g-85k", "set device type to LFE5UM5G-85F"); specific.add_options()("package", po::value<std::string>(), "select device package (defaults to CABGA381)"); specific.add_options()("basecfg", po::value<std::string>(), "base chip configuration in Trellis text format"); specific.add_options()("textcfg", po::value<std::string>(), "textual configuration in Trellis format to write"); @@ -84,6 +90,18 @@ std::unique_ptr<Context> ECP5CommandHandler::createContext() chipArgs.type = ArchArgs::LFE5U_45F; if (vm.count("85k")) chipArgs.type = ArchArgs::LFE5U_85F; + if (vm.count("um-25k")) + chipArgs.type = ArchArgs::LFE5UM_25F; + if (vm.count("um-45k")) + chipArgs.type = ArchArgs::LFE5UM_45F; + if (vm.count("um-85k")) + chipArgs.type = ArchArgs::LFE5UM_85F; + if (vm.count("um5g-25k")) + chipArgs.type = ArchArgs::LFE5UM5G_25F; + if (vm.count("um5g-45k")) + chipArgs.type = ArchArgs::LFE5UM5G_45F; + if (vm.count("um5g-85k")) + chipArgs.type = ArchArgs::LFE5UM5G_85F; if (vm.count("package")) chipArgs.package = vm["package"].as<std::string>(); else |