Earlier quoted context omitted.
It's an optimization. You really could build the whole thing from NAND gates if you really wanted to. http://www.learningaboutelectronics.com/Articles/D-flip-flop...
Thanks, that page is nice, but it too emphasizes that you also need a clock. That's essential and it was the point I was trying to make. For example, a thing that is usually glossed over in OS courses (in favor of, let's say, scheduling algorithms and such) is that you simply can't make preemptive multitasking out of pure code - and later when you ask yourself how is it that such a phenomenon is possible in the first…
From Nand to Tetris: Building a Modern Computer from First Principles
21–30 of 49 posts
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#22The title of the course is misleading, as it suggests that NAND gates are the only required primitive, whereas the course later introduces DFF gates, without which you cannot escape the parallelism of chips.
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#23I made a small game inspired by the first lessons in the course: http://nandgame.com/
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#24The title of the course is misleading, as it suggests that NAND gates are the only required primitive, whereas the course later introduces DFF gates, without which you cannot escape the parallelism of chips.
And one thing that is said even less is why NAND? You can do it all with NOR gates as well if you want. The reason for NAND has to do with the switching speed, pMOS switches quicker in parallel (either transistor can get the current flowing) and nMOS switches quicker in series (either transistor can stop the current flowing); this is how a NAND gate is wired. NOR gates on the other hand have the worst of both. The fa…
This doesn't really hold in today's world of silicon prints, but at the start I think it was price that drove the decision.
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#25I made a small game inspired by the first lessons in the course: http://nandgame.com/
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#26I made a small game inspired by the first lessons in the course: http://nandgame.com/
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#27The title of the course is misleading, as it suggests that NAND gates are the only required primitive, whereas the course later introduces DFF gates, without which you cannot escape the parallelism of chips.
I created a basic CPU with just resistors. Super slow, manual step only, but it worked and had some basic instructions.
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#28I made a small game inspired by the first lessons in the course: http://nandgame.com/
Have spent some time playing it - something that would be interesting is a view switch which expands your design again into NAND gates such that you can really appreciate the complexity of what's going on.
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#29I just completed part 1 building a computer from gates and writing an assembler and am in the middle of part 2 where you develop compilers and a stack based virtual machine. For someone like me who did not study computer science but has been a self taught programmer in the Analytics spacefor over a decade, this has been a tremendously useful and accessible introduction to basic CS concepts and very eye opening in ter…
This might be a bit more challenging and less hand holding than the nand2tetris course but if you are up for it, why not go with the best? Sedgewick Algorithm book has been one of the standard algorithm books in universities for a long time.
https://algs4.cs.princeton.edu/home/
Re: From Nand to Tetris: Building a Modern Computer from First Principles
#30They mentioned at the end about actually implementing the CPU in hardware with an FPGA. Just curious if anyone has actually tried that?