This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to measure MIPS on C55xx?

Guru 15580 points

I would like to measure the absolute and relative computational consumption (MIPS?) of a compression algorithm on the C55xx. I am most interested in determining if the C55xx can handle more than one condurrently running instance of the algorithm. Is this type of measurement typically done with RTDX, or is there some other way to make the measurement.

I currently have the ezDSP USB Stick, which I now understand will not accomodate RTDX since it uses an XDS100 embedded emulator. Will one of the other emulators (XDS510, XDS560) actually allow measurements to be made at the maximum CPU clock rate? I would like to know both the absolute MIPS consumption, as well as what percentage of the total available computing power of the DSP the algorithm consumes.

Thanks for you guidance.

MikeH

  • Hi,

    Yes, there is a way to know how much consumues your code. You can utilize Timer in C55xx device. The example code attached. You can see how Timer used in the code. If you have any question, please let us know.

    Regards,

    Hyun

    test.zip
  • Hyun,

    Thank you for the code, but from what I understand, it simply measures the time consumed by one of two user-defined function calls by using an interrupt driven timer. What I am more interested in is the percentage of total available CPU MIPS consumed by a running program. For example, I would like to determine the infomation that is included in your G722 codec datasheet which shows average and peak MEGACYCLES/SEC, as well as memory consumption statistics. Is this only available by using an XDS5xx type device?

    Mike

  • Hi,

    I should have explained more. If you use DSP/BIOS, there is an idle task running always. When your target code runs, this idle task is not running. If you measure time during your process and knows your idle time, then you can calculate your CPU time (MIPS). This is the real time impletation of finding your CPU loading. CCS CPU loading is done very similar way but using RTDX channel. We have been used this method to find out CPU loading. This imethod is not depending on any XDS debugger.

    Regards,

    Hyun

  • Hyun,

    Thanks for the explanation. I will give this a try.

    MikeH