Estimate iCE40 timing with icetime from Project IceStorm
Run icetime on a placed-and-routed .asc file with -d, -P, -p and -c to print the critical path delay and check it against a target MHz.
After nextpnr writes an .asc file, icetime from Project IceStorm reads it back and estimates the critical path from the routed result. It is a second opinion on the timing report nextpnr printed.
icetime -d hx8k -P ct256 -p pins.pcf -c 12 -t top.ascTotal number of logic levels: 3
Total path delay: 6.53 ns (153.14 MHz)The two lines above are an illustrative result; your numbers will differ with the design. -d hx8k selects the device, and it matters: the help text says the default is the low-power lp variant, so a forgotten -d on an HX part gives pessimistic delays. -P ct256 and -p supply the package and the pin file so IO names come out right. -c 12 checks the estimate against a 12 MHz constraint, and -t prints the topological timing report.
The last line is simply 1000 divided by the delay in nanoseconds, which the tool source computes as 1000.0 / delay, so 6.53 ns is 153.14 MHz.
Treat it as a rough check. The -m option enables a conservative max_span_hack for more pessimistic numbers, and nextpnr's own timing report, with its --freq target, is the one to design against. icetime remains useful when you only have an .asc file and no log.