I've been plotting out a series of logic for address decoding for a project I'm considering, and realized it would take a few seperate logic chips, meaning quite a few wires to deal with. While I was initially fine with that, thinking it was the only way, I suddenly had a realization today while on my best thinking seat (three guesses where that is), and realized that I might could use a programmable device to do everything I need in a single chip. The device that came to mind was a PIC, but I've heard of other things which could possibly be better suited, like CPLD and FPGA.
The project I'm working on involves a 6502 processor, so it's not going to be running very fast. And the PIC I considered, which I have experience with already, is the 16F88. That particular PIC can run at
16mhz, but it takes four clocks per instruction. I have no idea what the average clocks per instruction would be for a 6502 to compare, but I wouldn't be running any faster than a 2mhz clock. To do address decoding on the PIC, it would take several instructions. So my biggest question is, would a PIC be able to keep up with the task? And if not this particular model, possibly a faster one?My other question is about CPLD and FPGA. I pretty much know nothing of these things, aside from the fact that they're supposedly programmable logic. This seems more like what I would truly need than an actual microprocessor, assuming they're cheap and easily "programmed". Would they be better off for custom address decoding and such, especially considering I already have the experience/equipment for dealing with PICs?
There might even be other things better suited, so I'm all ears. But I'm especially interested in anyone who may have used a PIC for such a thing. It just seemed like such a perfect solution, if it can work. Thanks!