[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - epiphany chip emulator

epiphany chip emulator

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

epiphany chip emulator

Postby Gravis » Mon Jul 01, 2013 6:56 pm

I just wanted to be sure, is anyone working on an emulator of the epiphany chip? if not, i'll start making one (scalable to all 4096 possible cores).
User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.

Re: epiphany chip emulator

Postby ysapir » Mon Jul 01, 2013 8:54 pm

Nothing is currently in the works, or being planned, beyond the functional simulator included with the eSDK. It would be great if you can create a working multicore emulator!
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: epiphany chip emulator

Postby 9600 » Tue Jul 02, 2013 6:15 am

Andrew Back
User avatar
9600
 
Posts: 997
Joined: Mon Dec 17, 2012 3:25 am

Re: epiphany chip emulator

Postby Gravis » Tue Jul 02, 2013 4:27 pm

ok so i have some questions i need answering to make this emulator but in case you missed them, i put them here as it seemed like a better place: viewtopic.php?f=8&t=43&start=20#p2418
User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.

Re: epiphany chip emulator

Postby knocklee » Wed Jul 03, 2013 2:25 pm

Hi Everyone,
I've already had discussions with Mr Andrew about something in this context.
So, Gravis , if you want we can work together !

Mohamemd !
User avatar
knocklee
 
Posts: 1
Joined: Wed Jul 03, 2013 1:20 pm

Re: epiphany chip emulator

Postby Gravis » Fri Jul 05, 2013 3:25 pm

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

Re: epiphany chip emulator

Postby Gravis » Mon Jul 29, 2013 5:12 am

i dislike the current free versioning software out there so i just use snapshots of my code every once in awhile. i started an archive of snapshots here: http://adaptivetime.com/epiphany/emu/

the code doesnt actually do anything yet as i've been more occupied structuring it for OpenCL and implementing features. it uses some interesting C/C++ features that aren't used often, so check it out and you might just learn something new and useful. :)
User avatar
Gravis
 
Posts: 445
Joined: Mon Dec 17, 2012 3:27 am
Location: East coast USA.

Re: epiphany chip emulator

Postby EggBaconAndSpam » Mon Jul 29, 2013 9:51 am

First of all, great effort, keep up the good work!

2. Secondly, to quote the almighty reference manual: "4.5 Program Fetch Alignment Restrictions - All instructions must be aligned on halfword boundaries."
This includes both 16 and 32-bit instructions.
Therefore lines 1173-1176 in ecore_cl.h don't make any sense, you should rather just test for PC&0x01, outside the switch statement.

3. Also, when testing against masked values (such as op & 0x0F) you might just want to use a shortened form of writing values, by only stating those bytes relevant (i.e. 0x0F rather than 0x0000000F), makes for better readability.

4. The base address of the memory mapped register area is 0x000F0000 (0x0F0000), not 0x00F00000 (e.g. read_memory32(core, 0x00F06000 + RN) would not be correct). Maybe use a #define, rather than using nondescript hex numbers?
Have a look at https://github.com/adapteva/epiphany-li ... e/e_regs.h, maybe adopt that?

5. __kernel void ecore(__global int column, __global int row): op is read _outside_ the while(1) loop, therefore the same opcode is continually executed.

6. if(op & 0x01 || op & 0xF == 0xE || op & 0xF == 0xA) is enough to decide, whether an opcode is 16 bit or not, a bit more concise.

I therefore propose this instead: http://pastebin.com/fbuR5vWc
(raise_interrupt is yet to be defined)
EggBaconAndSpam
 
Posts: 32
Joined: Tue Jul 16, 2013 2:39 pm

Re: epiphany chip emulator

Postby Gravis » Mon Jul 29, 2013 1:08 pm

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

Re: epiphany chip emulator

Postby EggBaconAndSpam » Mon Jul 29, 2013 2:11 pm

EggBaconAndSpam
 
Posts: 32
Joined: Tue Jul 16, 2013 2:39 pm

Next

Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 2 guests