Re:Show HN: My summer project - simulated CPU built from NAN...
by tallanvor on Saturday June 11, 2011 @01:21PM
(#2644341)
That's definitely a great way to learn more about CPUs. In school we designed a simple 8-bit CPU and loaded it into an FPGA. This included coming up with a simple assembly language and building a compiler.
Re:Show HN: My summer project - simulated CPU built from NAN...
by IsaacL on Sunday June 12, 2011 @05:22AM
(#2646141)
That sounds like an interesting approach, it would certainly be cool to play around with some actual hardware - I'll certainly think about trying it out of I have success with the software implementation.
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.