ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Performance Counters doesn't work.

Open WeiyanZh opened this issue 2 years ago • 2 comments

My Environment

EDA tool and version: Verilator 4.226 and spike-cosim

Operating system: Ubuntu

Version of the Ibex source code: 2f8dfa9dfe2d938228118ed8ab6a543804d0c9ae

If I run the co-simulation, the performance counters looks like this. All counters are 0 except Cycles and Instructions Retired.

build/lowrisc_ibex_ibex_simple_system_cosim_0/sim-verilator/Vibex_simple_system --meminit=ram,examples/sw/benchmarks/coremark/coremark.elf

Performance Counters

Cycles: 4009545 NONE: 0 Instructions Retired: 2725247 LSU Busy: 0 Fetch Wait: 0 Loads: 0 Stores: 0 Jumps: 0 Conditional Branches: 0 Taken Conditional Branches: 0 Compressed Instructions: 0 Multiply Wait: 0 Divide Wait: 0

WeiyanZh avatar Sep 20 '22 09:09 WeiyanZh

The first thing to check is how did you build the simulation? You may have configured Ibex to have no performance counters, hence the results.

GregAC avatar Sep 21 '22 14:09 GregAC

I tried * simple system * following https://github.com/lowRISC/ibex/blob/master/examples/sw/benchmarks/README.md and * co-simulation system * following https://ibex-core.readthedocs.io/en/latest/03_reference/cosim.html

WeiyanZh avatar Sep 22 '22 10:09 WeiyanZh

Hi,

I just solved this. Please check https://github.com/lowRISC/ibex/issues/1866#issuecomment-1293541290

jiangnanguqi avatar Oct 27 '22 13:10 jiangnanguqi

It works, thank you!

WeiyanZh avatar Oct 29 '22 15:10 WeiyanZh

Closing the issue as the question has been answered and the problem could be solved.

vogelpi avatar Jan 16 '23 17:01 vogelpi