Login  Register

Re: NOT16

Posted by WBahn on Mar 17, 2023; 5:31am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/NOT16-tp4037077p4037078.html

I'm not completely sure I follow what you are asking, but let's see if this is close.

Once you make a Not gate using nothing but Nand gates, you now have two gates that you can use for building future gates and circuits.

If you were to use a Nand and a Not to make and And gate, you now have three gates in your toolbox.

This approach is essential, both from an educational standpoint and from a practical standpoint. You use smaller parts to make larger parts. Then you use those larger parts to make even larger parts.

You will find that, at the top level when you are making your entire computer, you will only have a few parts in it.

If you think about it, this IS making everything out of Nand gates (well, pretty soon you will also use DFF parts as primitive building blocks). You are just putting some Nand gates in a black box and then labeling that box as a Not or an And or Mux, or an ALU, or a CPU. But if you open up one of those boxes, you will only find other boxes and, possibly, Nand gates (and DFFs eventually). After you open up all the boxes within the boxes, you will have found nothing but Nand gates and DFFs.

You can actually make the DFF out of Nand gates, too, but that is a bit beyond the scope of the course and the simulator can't handle the kind of feedback that is required to make them work correctly, so they just make the DFF available and the simulator knows what to do with that part, just like it knows what to do with a Nand gate.