3 ms·
Another direction you might want to explore is to learn VHDL or Verilog and implement the CPU on an FPGA board. You can get a prototype board for around $100 a
by dthakur 15y ago
Another direction you might want to explore is to learn VHDL or Verilog and implement the CPU on an FPGA board.
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.
- tallanvor 15y agoThat'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.
- IsaacL 15y agoThat 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.