Forum Discussion

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

performance counter

I 'm wanted to use the performance counter to know the speed of my DMA, but I don't understand what is "PERF_UNIT_BASE" in

------------------------

PERF_BEGIN (PERF_UNIT_BASE, INTERESTING_FUNCTION_SECTION);

..body of subroutine...

PERF_END (PERF_UNIT_BASE, INTERESTING_FUNCTION_SECTION);

---------------------------------

because when i put any value i have some results like that

Total Time: 3.68935E+11 seconds (-1 clock-cycles)

+---------------+-----+-----------+---------------+-----------+

| Section | % | Time (sec)| Time (clocks)|Occurrences|

+---------------+-----+-----------+---------------+-----------+

|interesting_fn | 100|368934881474.19104| -1| 4294967295|

+---------------+-----+-----------+---------------+-----------+

Thank you for sombody who had an answer.

Muffec, France

2 Replies

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

    it was a bad question, i have solve the problem it was really a newbie question, but i hadn't understood the datasheet.

    The answer is : it is the base @ of the performance counter.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    PERF_UNIT_BASE is the base address of your perfomance monitoring peripheral