380°

PS3 Cell Chip: SPE's each have Atomic Cache

Games developer Dean Calver, currently working as lead programmer for Ninja Theory on Heavenly Sword for the PS3, has posted an interesting article about programming for the PS3's Cell chip.

"Atomic Cache Unit. Never heard of it right?

Well its one of my favorite things on the PS3 and gets little love cos its one of those tiny features that make life so much nicer.

Atomic ops refer to the most important principle in multi threading. It say that a single processor must read/modify/write without another thread interrupting (hence atomic). Without atomicy, multiple core system are much harder (if not near impossible)

The ACU (s) are a part of each SPU that allow atomic updates to occur very quickly. It appears fairly simple each SPU had 512 bytes of cache (yes contrary to what you might have heard SPU do have a tiny bit of cache). 512 bytes is divided into 4 128 byte lines. The MFC (DMA) unit can bring a cache line in from memory and mark it reserved… if another processor writes to the same bit of memory the reservation is lost and you know to repeat the read/modify/write cycle to guarantee atomicy.

All good, but whats really clever its how its implemented. If another SPU asks for that bit of memory its get its from another SPUs cache, if its in there. So you effectively have a fast SHARED 512 bytes. When an SPU writes, the other SPU only have to read from the writing SPU cache rather than DMAing it back to main memory and DMAing it into LS. Cuts down alot of memory traffic. I even abuse it and just use it as a conventional cache and communication channel between SPU. You can push alot of data around with a fast 128 byte path."
THE TRUTH - contributor
Published: 594 days 9 hours ago | Article | PlayStation 3 | Industry News | Dev News | Tech
 
 
 

Multi
F.E.A.R. 2 demo available for Qore subscribers
Multi | News
The latest issue of Sony's e-magazine Qore will be up Thursday. With Killzone 2 less than 2 months away, Qore is going behind the scenes at Gueril...

Multi
MeriStation: Watchmen: The End is Nigh Preview
Multi | Preview
The dark, adult comic book created by the British Alan Moore and Dave Gibbons is being prepared from its film adaptation to video games. It is bein...

Wii
MeriStation: Final Fantasy: Echoes of Time Preview
Wii | Preview
Square Enix has decided to create a subsaga to 'Crystal Chronicles' aiming at the casual base for the franchise. This game is very suitable for beg...

Wii
Body Break Episode Features Wii Sport
Wii | Video
NextGen Player writes: "During the holidays I was watching tv and was absolutely floored when a Body Break commercial came on that actual...
About N4G
N4G is a social game news site that covers the game industry 24 hours a day, 7 days a week.
More Info... | Submit News