Hi, I am new for Hexagon simulator.
I use Hexagon IDE 3.0 on windows 7 .
When I run my program it give me as following
Done!
T0: Insns=256383972 Tcycles=98229382
T1: Insns=0 Tcycles=0
T2: Insns=0 Tcycles=0
Total: Insns=256383972 Pcycles=294688864
I wonder which one I should use to estimate how many MIPS my program need to run Tcycles or Pcycles?
Why Pcycles is three times to Tcycles?
Thank you very much
Thomas
The equation used in SIM for TCYCLES would be:
Thread cycles = Processor cycles / Number of h/w threads
This assumes IMT – interleaved multi threading where h/w schedules each thread in a round robin fashion effectively sharing processor cycles equally across all available h/w threads.
The hexagon architecture used here has 3 threaded model; hence you see a /3 for Tcycles w.r.t Pcycles.
Coming to MCPS (Cycles per second and not Instructions per second), they will have to use Tcycles because effectively those are the cycles spent to run their code; Remaining processor cycles are equally distributed (T2 and T3 in the example below).
For MIPS, one has to use Instructions and not Tcycles.