Delay all cores from starting (xcore-200)

If you have a simple question and just want an answer.
Post Reply
osch
Member
Posts: 12
Joined: Sun Sep 03, 2017 10:12 pm

Delay all cores from starting (xcore-200)

Post by osch »

Hi! I am trying to find a way to stall all the tasks/cores in the usb reference design from starting without rewriting too much of main(). I want the xmos to start up with a function on both tiles that check for a certain condition before they return and let the audio-cores start up.

Is this even possible? I know you cant have more than one par in a multi-tile project so the only thing i can see working is adding the function to every task-call, but it seems a bit wierd to have to do that. I want them to all wait for a single delay function.


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

The par{} construct does not have be used in the main routine.

Reference:
http://www.xcore.com/viewtopic.php?t=3407

Can you shift the par construct to another core? Then inside the main routine, perform your conditional check and wait for the condition to be TRUE -> then call the par{} construct in the other core. Please review Eric's example in the above link.
osch
Member
Posts: 12
Joined: Sun Sep 03, 2017 10:12 pm

Post by osch »

mon2 wrote:The par{} construct does not have be used in the main routine.

Reference:
http://www.xcore.com/viewtopic.php?t=3407

Can you shift the par construct to another core? Then inside the main routine, perform your conditional check and wait for the condition to be TRUE -> then call the par{} construct in the other core. Please review Eric's example in the above link.
Aha. That sounds reasonable. Thanks!
Post Reply