6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 7:20 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Dual 6502 system
PostPosted: Mon Oct 26, 2020 4:59 am 
Offline

Joined: Sat Oct 10, 2020 10:35 am
Posts: 9
Hi,

I made a dual 6502 SMP system. Bus arbitration is performed by MLB, RDY, and BE. Read-modify-write instructions such as INC are treated as atomic operations. You can implement mutexes by using LSR, for example.

https://github.com/hatsugai/Dual6502

hatsugai


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual 6502 system
PostPosted: Mon Oct 26, 2020 10:29 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
That seems very nice and simple!

It looks like you have a single RAM but run the two CPUs on opposite phases - so presumably they both run at full speed until an MLB from one of them locks the bus for a few cycles?

Photos from your repo (hope that's OK):
Attachment:
hatsugai-Dual6502-arbitration.png
hatsugai-Dual6502-arbitration.png [ 102.73 KiB | Viewed 665 times ]

Attachment:
hatsugai-Dual6502-breadboard.png
hatsugai-Dual6502-breadboard.png [ 686.83 KiB | Viewed 665 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual 6502 system
PostPosted: Mon Oct 26, 2020 5:54 pm 
Offline

Joined: Sat Oct 10, 2020 10:35 am
Posts: 9
Thank you for the comment and images.

Yes, two CPUs run with no wait except the arbitration case. Thanks to the BE signal, no bus buffer is needed. The signals MLB, RDY, and BE make SMP so simple. the design of 6502 signals is great, I think.

memory space (can be configured easily by programming GAL):

0000H - BFFFH separated
C000H - FFFFH shared

There is a room to improvement: For example, the wait time can be reduced by moving the timing of MLB with an extra circuit.

hatsugai


Top
 Profile  
Reply with quote  
 Post subject: Re: Dual 6502 system
PostPosted: Mon Oct 26, 2020 5:58 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Oh, that's good: some shared and some private memory.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 38 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: