Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MIPS calculation of ARM922t processor

11 views
Skip to first unread message

Surbhi

unread,
Nov 17, 2006, 7:12:37 AM11/17/06
to
Hi All,
COuld anyone please tell me the formula or suggest any way how to
calculate MIPS if my application is running on ARM922T processor.

William Munns

unread,
Nov 17, 2006, 10:58:31 AM11/17/06
to

"Surbhi" <cutie...@gmail.com> wrote in message
news:1163765557....@h48g2000cwc.googlegroups.com...

> Hi All,
> COuld anyone please tell me the formula or suggest any way how to
> calculate MIPS if my application is running on ARM922T processor.


If you _have_ to use Dhystone (the benchmark that generates DMIPS) you can
find it in the examples directory of your ADS/RVDS toolkit with build files.

When compareing benchmarks you should be careful to keep within the 'rules',
or at least make sure the same rules are being used by all players,
Dhrystone forbids inlining of calls, but diffrent tools do this diffrently,
and for some tools it may not be obvious that inlining is happening (if for
instance it is done by the "linker" program)

Will


Wilco Dijkstra

unread,
Nov 17, 2006, 3:42:33 PM11/17/06
to

"Surbhi" <cutie...@gmail.com> wrote in message
news:1163765557....@h48g2000cwc.googlegroups.com...
> Hi All,
> COuld anyone please tell me the formula or suggest any way how to
> calculate MIPS if my application is running on ARM922T processor.

MIPS = instructions executed / microseconds taken.

But are you sure that is what you want to measure? It would be far
better and easier to time one iteration of your application using a
hardware timer to get CPU utilization:

CPU utilization = number of timer ticks for one iteration / number of
ticks per second * 100%

Wilco


Surbhi

unread,
Nov 20, 2006, 6:40:08 AM11/20/06
to
thanxx for your inputs.Could u please tell me how can i find "number of
ticks for one iteration" or if you can help me in providing any API or
procedure to convert time into ticks.

Wilco Dijkstra

unread,
Nov 20, 2006, 3:55:19 PM11/20/06
to

"Surbhi" <cutie...@gmail.com> wrote in message
news:1164022808.7...@e3g2000cwe.googlegroups.com...

> thanxx for your inputs.Could u please tell me how can i find "number of
> ticks for one iteration" or if you can help me in providing any API or
> procedure to convert time into ticks.

Read the documentation of your OS or board and find out how to access
the timers. If you're not using an OS you'll need to write code to
initialise
the timers and count timer interrupts. If there are no timers you can't do
what you're trying to do on real hardware, you would need to run your
application on a simulator to get an estimate of how many cycles it takes.
One way or another, you'll have to do some work yourself...

Wilco


Sathish

unread,
Dec 13, 2006, 1:48:50 AM12/13/06
to
Hi Surabhi,
Just set the timer using *.ami file in the
armulator.Use simple assembly routines to start and stop the timer.
Before starting your main function, start the timer and after
completing the function, stop the timer. Then you will get number of
cycles. While using timer, you should take about the timer resolution
also. Thsi will help to calculate MIPS.

Regards,
Sathish Athreya

0 new messages