From ca73e14cf9456d96f9cd6b04c0390c5fc5ee0973 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 23 Nov 2020 14:41:40 +0000 Subject: nexus: Add post-place LUTFF optimisation Signed-off-by: David Shah --- nexus/main.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nexus/main.cc') diff --git a/nexus/main.cc b/nexus/main.cc index 495793a3..cced1b95 100644 --- a/nexus/main.cc +++ b/nexus/main.cc @@ -50,6 +50,8 @@ po::options_description NexusCommandHandler::getArchOptions() specific.add_options()("device", po::value(), "device name"); specific.add_options()("fasm", po::value(), "fasm file to write"); specific.add_options()("pdc", po::value(), "physical constraints file"); + specific.add_options()("no-post-place-opt", "disable post-place repacking (debugging use only)"); + return specific; } @@ -71,7 +73,10 @@ std::unique_ptr NexusCommandHandler::createContext(std::unordered_map(); - return std::unique_ptr(new Context(chipArgs)); + auto ctx = std::unique_ptr(new Context(chipArgs)); + if (vm.count("no-post-place-opt")) + ctx->settings[ctx->id("no_post_place_opt")] = Property::State::S1; + return ctx; } void NexusCommandHandler::customAfterLoad(Context *ctx) -- cgit v1.2.3