aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/main.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-03-13 11:22:11 +0000
committerDavid Shah <dave@ds0.me>2020-03-13 11:22:11 +0000
commit3b49c20f4345f05bb92e6fc0a8dfa4c87c9cfa46 (patch)
tree14e047f4eb96cb23ede63dc21be62654fac5bf43 /ecp5/main.cc
parentbb7358020928d0a26ab7becd123ccdc15b0206cb (diff)
downloadnextpnr-3b49c20f4345f05bb92e6fc0a8dfa4c87c9cfa46.tar.gz
nextpnr-3b49c20f4345f05bb92e6fc0a8dfa4c87c9cfa46.tar.bz2
nextpnr-3b49c20f4345f05bb92e6fc0a8dfa4c87c9cfa46.zip
ecp5: Proper support for '12k' device
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r--ecp5/main.cc6
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")