Is there a way to get the cycle count?

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Is there a way to get the cycle count?

Postby alexrp » Sun Oct 06, 2013 2:53 pm

I'm going to be using Epiphany cores for scheduling in a virtual machine, and I need some kind of way to determine how much work a core has been doing. One way to do that is to read a cycle counter register from the ARM host, if such a register exists.

So, does Epiphany have such a register, or is there an alternative way I could keep track of spent cycles?
alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: Is there a way to get the cycle count?

Postby timpart » Sun Oct 06, 2013 5:52 pm

There are two timers which can be separately configured to count various things
Some of the options are:
Clock cycles
IALU instructions
FPU intructions
Dual issued IALU + FPU instructions
IDLE mode cycles (only useful if you put the core in idle)

See the description of the CONFIG register in the Architecture manual for the full list. (Also TIMER0 and TIMER1.)

Tim
timpart
 
Posts: 302
Joined: Mon Dec 17, 2012 3:25 am
Location: UK

Re: Is there a way to get the cycle count?

Postby Gravis » Sun Oct 06, 2013 5:55 pm

User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.

Re: Is there a way to get the cycle count?

Postby alexrp » Mon Oct 07, 2013 4:51 am

alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark

Re: Is there a way to get the cycle count?

Postby alexrp » Mon Oct 07, 2013 4:56 am

alexrp
 
Posts: 154
Joined: Mon Dec 17, 2012 3:22 am
Location: Thisted, Denmark


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 19 guests