diff options
author | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-24 23:19:24 -0700 |
---|---|---|
committer | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-24 23:19:24 -0700 |
commit | c71212d0e148b0b2ee136a951f5d707cc8822bda (patch) | |
tree | 635ad356ec762c1771d9409dbc6726dd02fd22f9 /ecp5 | |
parent | a69745060ef416f1e91545be110034a18ae012bd (diff) | |
download | nextpnr-c71212d0e148b0b2ee136a951f5d707cc8822bda.tar.gz nextpnr-c71212d0e148b0b2ee136a951f5d707cc8822bda.tar.bz2 nextpnr-c71212d0e148b0b2ee136a951f5d707cc8822bda.zip |
If --freq not set, attempt to find max by adjusting budget so min path slack == 0
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc index 90096855..6087728c 100644 --- a/ecp5/main.cc +++ b/ecp5/main.cc @@ -169,8 +169,13 @@ int main(int argc, char *argv[]) if (!ctx->pack() && !ctx->force) log_error("Packing design failed.\n"); - if (vm.count("freq")) + if (vm.count("freq")) { ctx->target_freq = vm["freq"].as<double>() * 1e6; + ctx->user_freq = true; + } + else { + log_warning("Target frequency not specified. Will optimise for max frequency.\n"); + } assign_budget(ctx.get()); ctx->check(); print_utilisation(ctx.get()); |