3 ms·
I was thinking of (one day) creating a "Let's build a" series in the following order: 1) Students learn about assembly, opcodes, etc. They write programs for a
by swah 16y ago
I was thinking of (one day) creating a "Let's build a" series in the following order:
1) Students learn about assembly, opcodes, etc. They write programs for an imaginary machine and only run them on paper for now.
2) Students write their own CPU emulator (in C) that can run and test the simple programs from 1.
3) Students write a compiler to a simple HLL which allows them to write more complex programs, and test against the emulator.
4) Students build the processor which was being emulated in HDL, and download it to FPGAs, testing outputs of the programs generated by their compiler against the emulator.
I think most schools already do something like this, but mine missed the compiler part.
- wtracy 16y agoI would be interested in reading that. :-)
- rcfox 16y agoI've also wanted to develop a series like this, where each course builds directly on the material from previous courses. My school offers each concept individually, but they're not related.
- corey 16y agoCheck out The Elements of Computing Systems. It walks you through the construction of a computer starting with just NAND gates. You start by building other logic gates, and then an ALU, CPU, assembler, virtual machine, a compiler for a simple high level language, and finally an operating system. Each chapter gives the necessary background information, and a specification for you to implement.
- hristov 16y agoI actually took almost all the classes necessary to do that. I could even go further, I took classes that would allow me to design the processor on individual transistor level creating a design which could theoretically be built on silicon. But of course the classes were separate so I did not build upon everything. The problem with that is that encompasses what have become two disciplines -- computer science, and electrical or computer engineering. I took classes encompassing both sides because I liked the classes, but most people are really interested in one or the other.