Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Extracting cache hits/misses

Hi,

I need to know the cache hit and miss count for a program running on a NIOS II core. I have made attempts at doing this through hardware, which is hindered by the core being encrypted, SignalTap, which only gives me a short trace, and simulation, which I couldn't figure out.

Is there a specific way to do it?

Thanks

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    An I-cache miss count can obviously be determined by monitoring the instruction port's avalon master cycles.

    You might be able to something similar for the data cache, slightly more compex due to uncached requests.

    The ration of cache misses to clocks might be useful - if not exactly what you are looking for.