Epiphany core's Global Address

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Epiphany core's Global Address

Postby msuthar25 » Tue Aug 05, 2014 7:43 am

Hello,

I am using e_get_global_address() to access the local memory of other cores from one core(0,3)
when i get address for core(0,0) it is 80800000, but for core(0,1) its 8090007c!.

I want to know why 7C is present there isnt it meant to be 80900000.

Thanks
msuthar25
 
Posts: 17
Joined: Mon Jun 30, 2014 7:31 am

Re: Epiphany core's Global Address

Postby timpart » Tue Aug 05, 2014 6:26 pm

The function is meant to return the global equivalent of the local address in the third parameter. If it is called with 0x7C as the local address then that will be in the lower bits of the global address. If you want zeroes in the lower bits it needs to be called with a zero pointer.

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

Re: Epiphany core's Global Address

Postby notzed » Wed Aug 06, 2014 2:11 am

You might be using it wrong or misunderstanding it's purpose. The function is too simple to have a bug in it.

Just paste the snippet of code you're using to show this result and someone will be able to tell you why you're getting that answer.
notzed
 
Posts: 331
Joined: Mon Dec 17, 2012 12:28 am
Location: Australia

Re: Epiphany core's Global Address

Postby msuthar25 » Wed Aug 06, 2014 4:47 am

Thanks

I figured it out later
msuthar25
 
Posts: 17
Joined: Mon Jun 30, 2014 7:31 am


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 11 guests

cron