From 720e81586502f527cba7b9052b6bfed719c0b165 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Tue, 31 Jul 2018 19:07:39 -0700 Subject: Add --slack_redist_iter for ice40 --- ice40/main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ice40') diff --git a/ice40/main.cc b/ice40/main.cc index 5c9678db..ab672ddc 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -105,6 +105,7 @@ int main(int argc, char *argv[]) options.add_options()("asc", po::value(), "asc bitstream file to write"); options.add_options()("read", po::value(), "asc bitstream file to read"); options.add_options()("seed", po::value(), "seed value for random number generator"); + options.add_options()("slack_redist_iter", po::value(), "number of iterations between slack redistribution"); options.add_options()("version,V", "show version"); options.add_options()("tmfuzz", "run path delay estimate fuzzer"); options.add_options()("test", "check architecture database integrity"); @@ -302,6 +303,10 @@ int main(int argc, char *argv[]) ctx->rngseed(vm["seed"].as()); } + if (vm.count("slack_redist_iter")) { + ctx->slack_redist_iter = vm["slack_redist_iter"].as(); + } + if (vm.count("svg")) { std::cout << "\n"; @@ -411,7 +416,6 @@ int main(int argc, char *argv[]) if (!ctx->pack() && !ctx->force) log_error("Packing design failed.\n"); - //assign_budget(ctx.get()); ctx->check(); print_utilisation(ctx.get()); if (!vm.count("pack-only")) { -- cgit v1.2.3