Research

Things I wanted to find out, rather than things to sell. Two are about the same old processor, the MOS 6502, approached from two directions; the third is a hi-fi preamplifier. They are written up with their numbers, including the parts that did not work.

None is a product. The two 6502 projects are finished, the preamplifier is designed and simulated but not built. All three are open source on GitHub, and the files can also be downloaded here.

Source code on GitHub: neural-6502 · 6502-vs-abc · ga-tube-preamp

Why the 6502

My first computer was a Commodore 64. It's where I learned to program, first in BASIC and then in machine code, and the processor inside it was a 6502. Strictly it was the 6510, the same chip with a small input/output port added, running the same instructions.

So the 6502 is the processor I learned machine code on, and it's the one I picked for the first two of these projects.

The 6510 itself is not part of the plan: it runs the same instructions, so what I build for the 6502 already runs 6510 code, and what the 6510 adds is a memory-banking port rather than CPU logic.

The projects

Complete Klaus run passed

neural6502

Neural networks trained to be a 6502. One of them gets all 1.51 million single-instruction tests right and runs a notorious test, all 30.6 million instructions, without a slip. Open source, with weights and results.

Results and write-up →
Results in

Evolving logic gates

Genetic algorithms on a gate-level 6502. They beat a default optimiser by 1.6%, a stronger one beats them, and the chip drawn by hand in 1975 is still 4% smaller than the best automated design. Open source.

Results →
Simulated, not yet built

A warm op-amp preamplifier

A hi-fi preamplifier whose distortion matches a 12AX7 tube stage in simulation, with component values found by a genetic algorithm. Board files to download.

The design →