6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 12:39 pm

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: 6502 Grid Computer
PostPosted: Mon Nov 20, 2017 6:48 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
Work has started on a 6502 grid computer. The computer will be composed of 16 nodes in an X-Y mesh, each of which has two 6502 cores (32 cores total) along with associated memory. Interconnection will be via shared memory blocks. A topology map is shown here.
Attachment:
File comment: 6502 Grid Topo
Grd6502.png
Grd6502.png [ 78.38 KiB | Viewed 4401 times ]

The plan is to use a basic interpreter to operate the thing.
The 6502 will have to copy messages between memory blocks for communication. Message copy will likely be periodic interrupt driven.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Mon Nov 20, 2017 7:30 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
While the software will be quite a challenge, it looks like it might be quite easy to express the design - I'll be interested to hear how well it fits on the FPGA and how fast it's expected to clock.

(As FPGAs have a physical floorplan, the on-chip RAM will actually be found in a particular organisation, typically several columns, so the placement of the compute cores and the wiring to and from the RAM might prove to be the dominant effect on speed and routability. It might even influence what X, Y sizes of grid would be a good fit: maybe square, maybe tall, maybe wide.)


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Mon Nov 20, 2017 9:26 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
Very impressive.

Now I must insert the obligatory "Can it run Crysis?" meme....lol

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Tue Nov 21, 2017 2:30 am 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
By my count, there's still 4KB of address space per CPU unaccounted for in those nodes; presumably that's for zeropage, stack, and local memory?

Will some nodes on the edges have additional I/O to get things, well, in & out?

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Tue Nov 21, 2017 11:43 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
The 4k missing is reserved for any I/O in the node that might be needed. The 28k ram shared between the two cpu's will cover $0000 to $7000.

Memory Map:
$0000-$6FFF 28k shared ram
$7000-$7FFF 4k connection ram (east,west,north, south ram)
$8000-$8FFF 4k connection ram
$9000-$9FFF 4k connection ram
$A000-$AFFF 4k connection ram
$B000-$BFFF 4k I/O area
$C000-$FFFF 16k shared rom

Yes, some of the nodes on the edge will have I/O connected. One node will likely be for input (keyboard, buttons, switches). A second node will be for output (leds, text display). There may be an AppleII compatible node.

I may have to rethink the shared memory for interconnect as it may not map well to the FPGA. But I'm going to give it a try.
A 4x4 grid to start. BRAM is organized into 9 columns in the FPGA however. So a 9x2 grid might work better.
I've used a serial interconnect in the past.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Tue Nov 21, 2017 11:45 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
ooh, two nodes share zero page? And page one? That could be interesting. But then, I think I notice that all memory is shared, in one direction or another, so that was bound to happen. Is this why you have node pairs, so you can have two builds of your software to have half each of those two vital pages?


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Tue Nov 21, 2017 9:01 pm 
Offline

Joined: Wed Mar 02, 2016 12:00 pm
Posts: 343
Sharing ZP and stack? Isn't that a bad idea?

The dual disk drives from CBM used two 6502/6504 cpus, but they didn't share $000-$1ff:
http://www.zimmers.net/anonftp/pub/cbm/schematics/drives/old/4040/memorymap.txt

Unless you avoid all stack operations, which is pretty limiting... that isn't going to be easy.. :shock:


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Tue Nov 21, 2017 9:11 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
It's quite OK if one stack pointer starts at FF and the other at 7F, and likewise if they carefully allocate their respective use of page zero locations. They can't both be running exactly the same code though.


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Tue Nov 21, 2017 9:17 pm 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
I'd think that there are two ways you'd handle it. As BigEd has pointed out, one way is to give each processor half the stack space (128 bytes each instead of 256). The other is to have a single stack pointer between two processors.
I think the second one could potentially be more useful(quick data passing, generation of a jump address or one by the other, and probably more), but you'd have to be careful about how you used the stack so that nothing unintentional occurs(bad jumps and such).


Top
 Profile  
Reply with quote  
 Post subject: Re: 6502 Grid Computer
PostPosted: Wed Nov 22, 2017 11:52 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
An address bit (a9) will likely be flipped on one of the processor's so that the stack and zero page appears at $200 on the other processor.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: