diff options
author | gatecat <gatecat@ds0.me> | 2021-03-23 16:00:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 16:00:17 +0000 |
commit | 4d8dcab1d3fba1799de7eb51be2dd7bd5dd2e53f (patch) | |
tree | 4c0fac8969789f144c2296e4a3208565a57597f7 /fpga_interchange/main.cc | |
parent | 9ef412c2cc623ef84d8fb866734f3892fc6f127c (diff) | |
parent | 8d1eb0a1950816d4dcaae40fb230acff0d1afeef (diff) | |
download | nextpnr-4d8dcab1d3fba1799de7eb51be2dd7bd5dd2e53f.tar.gz nextpnr-4d8dcab1d3fba1799de7eb51be2dd7bd5dd2e53f.tar.bz2 nextpnr-4d8dcab1d3fba1799de7eb51be2dd7bd5dd2e53f.zip |
Merge pull request #641 from litghost/initial_lookahead
Initial lookahead for FPGA interchange.
Diffstat (limited to 'fpga_interchange/main.cc')
-rw-r--r-- | fpga_interchange/main.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fpga_interchange/main.cc b/fpga_interchange/main.cc index 958f1d95..4d331a32 100644 --- a/fpga_interchange/main.cc +++ b/fpga_interchange/main.cc @@ -55,6 +55,8 @@ po::options_description FpgaInterchangeCommandHandler::getArchOptions() specific.add_options()("netlist", po::value<std::string>(), "FPGA interchange logical netlist to read"); specific.add_options()("phys", po::value<std::string>(), "FPGA interchange Physical netlist to write"); specific.add_options()("package", po::value<std::string>(), "Package to use"); + specific.add_options()("rebuild-lookahead", "Ignore lookahead cache and rebuild"); + specific.add_options()("dont-write-lookahead", "Don't write the lookahead file"); return specific; } @@ -72,6 +74,9 @@ std::unique_ptr<Context> FpgaInterchangeCommandHandler::createContext(std::unord auto start = std::chrono::high_resolution_clock::now(); ArchArgs chipArgs; + chipArgs.rebuild_lookahead = vm.count("rebuild_lookahead") != 0; + chipArgs.dont_write_lookahead = vm.count("dont_write_lookahead") != 0; + if (!vm.count("chipdb")) { log_error("chip database binary must be provided\n"); } |