Show HN: My summer project - simulated CPU built from NAND gates
github.com
github.com
So far I've just defined some basic components (logic gates, adders, latches), working from class notes, Wikipedia, and the computer built in Wireworld. If any HNers can point me in the direction of better resources, it would be much appreciated.
You can get a prototype board for around $100 and should be able to build something to cover most of, say, the MIPS instruction set.
This would be a more engineering oriented project; I would follow along an 'introduction to computer organization' style course from a university (just google and you can determine the required textbook, exercises etc).
It's exciting to write some C code, compile it to mips instruction set with gcc (I had to do some fudging here because my cpu didn't implement the entire instruction set) -- and then run it on the fpga and get the right numbers.
We had to use VHDL, and also used some predefined ports, so we hadn't to create everything from nand gates like you are trying to do. The book we used was "Computer Architecture: A Quantitative Approach" by Hennessy & Patterson.