From d72fe0c230f79248a56e47c2f31f14b15c7f13fe Mon Sep 17 00:00:00 2001 From: David Shah Date: Sat, 23 Jun 2018 12:18:44 +0200 Subject: place_sa: Add option to disable timing-driven placement Signed-off-by: David Shah --- ice40/main.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ice40') diff --git a/ice40/main.cc b/ice40/main.cc index ae8c7705..e60ce442 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -101,6 +101,7 @@ int main(int argc, char *argv[]) options.add_options()("up5k", "set device type to iCE40UP5K"); options.add_options()("freq", po::value(), "set target frequency for design in MHz"); + options.add_options()("no-tmdriv", "disable timing-driven placement"); options.add_options()("package", po::value(), "set device package"); po::positional_options_description pos; @@ -308,9 +309,11 @@ int main(int argc, char *argv[]) freq = vm["freq"].as() * 1e6; assign_budget(&ctx, freq); print_utilisation(&ctx); - + bool timing_driven = true; + if (vm.count("no-tmdriv")) + timing_driven = false; if (!vm.count("pack-only")) { - if (!place_design_sa(&ctx) && !ctx.force) + if (!place_design_sa(&ctx, timing_driven) && !ctx.force) log_error("Placing design failed.\n"); if (!route_design(&ctx) && !ctx.force) log_error("Routing design failed.\n"); -- cgit v1.2.3