I've wired up a 65C816 in a breadboard with an EEPROM, some address decoding & data bus buffer, and a latch connected to some LEDs. No RAM yet. I just made a simple program to get the LEDs to count, and it just works. (Well, you have to slow the clock down in order to see something...). I also tried to put the CPU in native mode, and the CPU puts the expected bank address on the data bus, and the
Emulation pin changes when it should. It seems to work. Just for kicks I sped up the clock and it stops working just under 9 MHz with 150 ns EEPROM.
I've been thinking about the CPLD. I'm considering two options:
Altera MAX II family:
-Pros: I already have a programmer & used their software (Quartus). Macro cells running from 192 to 980 (gets expensive pretty quick), plus 1 KB "user flash" that could hold some bootstrap code. Convenient development boards can be cheaply acquired on eBay for prototyping. More I/O pins.
-Cons: 3.3 V only: 3.3 V system or level conversion (Higher end ones have some 5 V tolerant I/O, but are too expensive). TQFP-100 packages, not sure about soldering those with my current soldering iron. Not cheap enough to risk it.
ATF15XX:
-Pros: 5 V, PLCC packages which I can socket, and prototype with.
-Cons: Specialized programming cable. Less macro cells, 128 for the higher end ones. Less I/O. Outdated software (Apparently one can code in Verilog on Quartus, and then translate the output files for programming, see here
https://www.eevblog.com/forum/fpga/atmel-atf150x-cpld-and-wincupl/)
I would be using the ATF1508. Here it is mentioned that it may be suitable for a simple VGA interface like the one I'm thinking of
http://forum.6502.org/viewtopic.php?f=10&t=4997I would like to consolidate as much as I can into the CPLD, at least the VGA interface and address decoding, and ideally also the PS/2 interface and even the UART as well. I may have to use a couple of them to fit everything.
I just want a simple system, mostly though hole. In a 5 V system, I can just use a through hole EEPROM in a ZIF socket to store code. Not sure about a 3.3 V one. RAM will have to be SMD most likely in both cases, but it should pose no problem.
I think I'm going to order a couple ATF1508s and a programming cable, and get the video working first, then work on the rest.
Juan
EDIT:Spelling