sifive / benchmark-coremark

CoreMark® is an industry-standard benchmark that measures the performance of central processing units (CPU) and embedded microcrontrollers (MCU).
Other
10 stars 5 forks source link

Ticks overflowing on high frequency #12

Open Matthias-Raudonis opened 4 years ago

Matthias-Raudonis commented 4 years ago

At 320 MHz, no meaningful 10 second benchmark is possible due to the u32 ticks overflowing.

Normally, this would be solved, by changing in benchmark-coremark/freedom-metal/core_portme.c #define TIMER_RES_DIVIDER 1 to a higher value, but the function is not implemented. (The behaviour does not change)

Also: Where can I tell freedom metal that the CPU is now running at 320M? With Freedom Metal, EE_TICKS_PER_SEC divides the ticks by 16M to calculate the passed seconds, even @320MHz