diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-12 14:25:12 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-12 14:25:12 +0200 |
commit | d62e341d5a3183d6fdb7168afb978068a396e9a4 (patch) | |
tree | 6371f1e406aa80c41fcec87270ed815b8eb35605 /ice40/main.cc | |
parent | 391d49c13ec675e263115d18481d4b842622b712 (diff) | |
parent | 9ee6a6e1149e35bcca3c1781f6ce84b11dc80296 (diff) | |
download | nextpnr-d62e341d5a3183d6fdb7168afb978068a396e9a4.tar.gz nextpnr-d62e341d5a3183d6fdb7168afb978068a396e9a4.tar.bz2 nextpnr-d62e341d5a3183d6fdb7168afb978068a396e9a4.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'ice40/main.cc')
-rw-r--r-- | ice40/main.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index cceb2b04..0e989819 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -29,6 +29,7 @@ #include "log.h" #include "mainwindow.h" #include "nextpnr.h" +#include "pack.h" #include "place.h" #include "pybindings.h" #include "route.h" @@ -67,6 +68,10 @@ int main(int argc, char *argv[]) options.add_options()("test", "just a check"); options.add_options()("gui", "start gui"); options.add_options()("svg", "dump SVG file"); + options.add_options()("pack", "pack design prior to place and route"); + options.add_options()("pack-only", + "pack design only without placement or routing"); + options.add_options()("run", po::value<std::vector<std::string>>(), "python file to execute"); options.add_options()("json", po::value<std::string>(), @@ -251,8 +256,13 @@ int main(int argc, char *argv[]) std::istream *f = new std::ifstream(filename); parse_json_file(f, filename, &design); - place_design(&design); - route_design(&design); + if (vm.count("pack") || vm.count("pack-only")) { + pack_design(&design); + } + if (!vm.count("pack-only")) { + place_design(&design); + route_design(&design); + } } if (vm.count("asc")) { |