I want to put on the table a questions (may be stupid, pardon to me in this case).
I still see a big interest around the 6502, from C64 fanatics to Automitive system companies. A wide range of designers are still using this glorious processor.
I also got evidence of many attempts to give a future to this processor, designing new core at 32bit (RISC like) with the capabilities to emulate 6502 original instructions (tyically not clock accurate or to complex to be validated). None of these had a lot of success I believe: validation problems, maturity, new tools chain to be designed, etc...
On the other hand, I have to admit that having a 6502 with larger memory space and a 32bit access could be quite useful (just for fun, I like to immagine a C64 with the processor replaced with an FPGA with inside new peripherlas and lot of memory).
Giving, that I was thinking about the possiblity to design a wrapper (instead of a new processor) around a generic 6502 (one of the already sythetizable cores) to give it 32bit access capabilties and a 4Gbyte of memory space. This modified 8-bit processor should use the already available tools (assembler).
The advandage of this approach would be:
- easy to verify (the core is still an already working 8bit 6502)
- 4 Gbyte of memory space (segmented)
- 16 bit Code Segment (64 K segments of 64Kbyte each)
- 16 bit Data Segment (idem)
- 16 bit Stack Segment (idem)
- 32 bit General Pourpoise Register (for 32bit access)
- Automatic Code Segment switch (context) on JMP, JSR, INT, NMI and BRK
- compatible with already available 32bit peripherals (see www.opencores.org to have an idea about availability)
- unmodified original ISA
- compatible with standard tools
- fully backword comaptible with 6502 binary code
The wrapper would have a 6502-like pipeline working in parallel to the 6502 one. The wrapper pipeline will execute only the new instructions.
Of course, it must not be intended as a project to originate a powerfull processr but, instead, a funny project to enlarge original 6502 capabilities may be running a simple uCLinux (may be slow but ....)
I would appreciate your comments in order to know if I'm going to wast time or if I'm going to do something that could be useful at least inside the 6502 fanatics community
Thanks anyway to be so patient to read this long email.
Cheers
Pipettas