Is it possible to access global array by 2 Cores? Topic is solved

If you have a simple question and just want an answer.
Runtime
Newbie
Posts: 1
Joined: Sun Jan 05, 2014 3:40 am

Is it possible to access global array by 2 Cores?

Post by Runtime »

Hi,

How should I do to make an array accessible by two logical cores. One core write to the array. The other only read to it.

 

 



View Solution
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

It is not possible to share the same memory between two logical cores at the same time. However, you can access this memory by using double buffering. You can also use locks that are available in the XCore to safely access the memory. You will find more information about the locks in the following link:

https://www.xmos.com/en/support/documen ... ks_example