Martin A wrote:
Now that is cool indeed!
My 6502 will need enough code just to perform 2 tasks...
1) Get an SPI Flash initialized for read.
2) Fill it's own 64K program Memory from the Flash.
If I could get the code down to something like 64 bytes, I would actually consider Diode ROM, or just muxed Bytes.
That would certainly add some over-the-top real retro cool to this project.
This is one of those large decisions to be made...
(A) Boot Logic on the board, or (B) Boot Logic on the External Cartridge.Here are my thoughts so far on both, and how each one effects my original goals...
(A) Boot Logic on the board...Obviously, this jives perfectly with my retro goals, as I only need common logic and ROM.
The easiest path would be a small 1K ROM mapped to Address Space.
The ROM would fill the 6502 with enough code to read the Cart. memory (probably SPI Flash).
From there the 6502 would fill all 4MB with Sound and Graphics data from the Cart. memory.
Another advantage to this system is that more then 4MB can be accessed.
The downside is that the Cart. memory has to be a certain type, like Flash only.
As memory technology changes (it always does), Vulcan Boot Logic goes obsolete.
(B) Boot Logic on the External Cartridge...This is obviously the most flexible and obsolescence proof system possible.
Any conceivable type of storage can be used; flash, prom, uC, SSD, etc.
This will also be the fastest system, as the 6502 will only have a single 10ns 64K program memory.
Another plus is that others can create cartridges using technology they have available and know.
Another advantage... easy transfer from PC to Cartridge. An SD card is an obvious contender.
The one downside to this system is that modern components are required on the External Cartridge.
A simple AVR Tiny and a huge Flash could be used for instance, or something much more complex.
This doesn't really violate my rules as the Cartridge is external to the system.
The Cartridge can actually be yanked after bootup, so Vulcan would still be running off internal guidance.
Something is telling me that Option (B) is bar far the best choice, and perhaps my ROM failure is a sign.
I already have this system working, as this is how I booted the system during testing... AVR + SDCard.
Being able to cross develop easily on a PC and then use an SD card is certainly a bonus.
In 3-5 years when NOR and NAND flash is extinct (yes, it will happen), I won't need a redesign.
Hmmm... nothing like answering your own question by rambling on in a Forum! Option (B) it will be!
I shall bolt the 64K back onto the 6502, and run an external Cartridge Port again.
Development is back on track.
My next post will show the 6502 moving some Sprites around.
Cheers!
Radical Brad