3 ms·
The 6502 unfortunately relies on some effects that can't be described in FPGA synthesizable logic. You might get a lot of speed up over the extremely simplifie
by monocasa 5y ago
The 6502 unfortunately relies on some effects that can't be described in FPGA synthesizable logic. You might get a lot of speed up over the extremely simplified spice style simulation you have to do that still might get you to real time, but it's not the slam dunk you might think.
- russdill 5y agoSounds interesting. Any citations where I can read more about those effects?
- monocasa 5y agoYou can sort of divine them from how the undocumented instructions work. https://www.pagetable.com/?p=39 https://www.pagetable.com/?p=39 It more or less falls under true classic highz buses with multiple drivers. You have three options I can see 1) treat it as a spice simulation that aggressively optmizes to synthesizable logic most places other than the problem parts. 2) hand replace the problem parts with synthesizable logic sorta like how Nvidia replaces graphics shaders with had written replacements in their drivers 3) just throw the whole thing into a spice simulation
- tenebrisalietum 5y agoI think the decrement relies on open bus behavior I think - the 6502 uses it to cheat and set a value to FF in the same cycle which is then sent through the same path as increment or add, effectively adding -1 to a value.
- comex 5y agoOut of curiosity, what effects are you talking about?
- monocasa 5y agoThe internal buses are basically true highz buses with multiple drivers and latches hanging off of them.