Page 1 of 1

Dual 6502 in Logisim Evolution?

Posted: Sat May 20, 2023 10:41 pm
by brieee
I'm new to 6502, I know a tiny, tiny bit of assembly and the very basics of what most of the pins do. Basically fresh out of Ben Eater's first 6502 video, plus some messing around on my own. I might be a little early on in learning about this stuff to be wondering about something like this but how would a dual 6502 system work?

The idea I had was that they'd share ROM, but I didn't get past that. Not sure how they'd interface with each other or the ROM.

Re: Dual 6502 in Logisim Evolution?

Posted: Sun May 21, 2023 4:17 am
by BigDumbDinosaur
brieee wrote:
I'm new to 6502, I know a tiny, tiny bit of assembly and the very basics of what most of the pins do. Basically fresh out of Ben Eater's first 6502 video, plus some messing around on my own. I might be a little early on in learning about this stuff to be wondering about something like this but how would a dual 6502 system work?

The idea I had was that they'd share ROM, but I didn't get past that. Not sure how they'd interface with each other or the ROM.

Do some searches on forum content for starts. Multi-processor 6502 systems have long been a topic of discussion here. Also worth looking at are some of the old Commodore IEEE-488 disk drives, which used two 6502s.

Re: Dual 6502 in Logisim Evolution?

Posted: Sun May 21, 2023 7:00 am
by BigEd
Welcome, brieee!

The simplest and most often mentioned set up is that the two devices share (almost) all of memory - RAM and ROM. That's relatively straightforward because the 6502 can be considered as using the bus (or needing to use the bus) for only half the clock cycle. There are two halves, so two CPUs can share. It's not totally straightforward - as BDD says, you could usefully do some searching and reading.

Less common is to put two CPUs into communication by sharing some kind of communication channel: could be an 8 bit port, or two VIAs, or Acorn's Tube chip, or a number of other possibilities, including dual-port RAM.

In both cases, designing and organising the software so the combination is useful is the major part of the work.

Re: Dual 6502 in Logisim Evolution?

Posted: Sun May 21, 2023 7:20 am
by GARTHWILSON
This is one of the recent multiprocessor topics:
A multiprocessor system with mainly just the 6502 (?)

Re: Dual 6502 in Logisim Evolution?

Posted: Sun May 21, 2023 7:30 am
by cjs
If you're good with working out designs from schematics (or just want to learn to do that), the are various examples of commercial systems that did this reliably.

One, as BDD mentioned above, are some of the Commodore floppy drive subsystems. You might start with retroabandon/cbm:dos-1.0/ where I have collected some of the documentation and ROMs for the 2040/3040/4040 series, along with references to further sources. That's also got a start on the disassembly of the ROMs if you want to work out what's going on on the software side.

Another is the Fujitsu FM-7, which had a 6809 "main" CPU that talked to a second 6809 "sub" CPU that handled graphics and a few other things. These communicated through a 256-byte area of shared memory; the schematics are fairly clear about how all this worked. (Note that, though the processor is different, the 6502 uses essentially the same bus and timing systems that Motorola used.)