Conway's Life on 6502
Re: Conway's Life on 6502
(I pinged the author and the source link is now updated! See also this post and comments.)
Last edited by BigEd on Sat Apr 13, 2019 6:30 pm, edited 1 time in total.
Re: Conway's Life on 6502
A fascinating set of posts. How much of the work for the game would be done in an FPGA ? It seems like the 6502 may be doing too much of the work. Here is a link to one solution (it uses a different processor): http://www.syntiac.com/tech_fpga_life.html The game uses FPGA block ram and I think it calculates 512 cells in parallel.
It’s tempting to expand the game a little bit and use double bits so that barrier objects could be placed.
It’s tempting to expand the game a little bit and use double bits so that barrier objects could be placed.
Re: Conway's Life on 6502
Interesting! I see the FPGA in that case (from the Turbo Chameleon 64 project) is a Cyclone II with 66 block RAMs, giving a maximum width of 1188 bits. That's pretty similar to the LX9 in the Matchbox copro, which has 32 block RAMs and a maximum width of 1152 bits.
That's blazingly fast, but on a grid limited to normal video resolutions... I'm quite fond of the very large universes possible with a list-based or tile-based life. Then we'd be back to the constraints of RAM speed... the Matchbox has the advantage of 32 bit wide pSRAM, but the 55nS access limits the cycle time to 18MHz. I'm not sure if Life's locality would allow us to get some advantage by mixing on-chip and off-chip memory. Surely some advantage.
A hash life usually uses enormous memory structures. I wonder if a mini hash life could usefully fit the hashes into the 64k of on-chip RAM. Or if hash access has some locality and we can use the on chip RAM as a form of cache for tables in the 2Mbyte pSRAM.
Quote:
The simulation using a modest 100 Mhz clock can process about 25 million rows per second. Which translates to 12.8 giga cells updated per second or over 50 thousand grid iterations per second.
A hash life usually uses enormous memory structures. I wonder if a mini hash life could usefully fit the hashes into the 64k of on-chip RAM. Or if hash access has some locality and we can use the on chip RAM as a form of cache for tables in the 2Mbyte pSRAM.
Re: Conway's Life on 6502
Quote:
I'm not sure if Life's locality would allow us to get some advantage by mixing on-chip and off-chip memory. Surely some advantage.
Re: Conway's Life on 6502
BigEd wrote:
(I pinged the author and the source link is now updated! See also this post and comments.)
Kind regards,
Oscar.