Re: How to use the hardware simulaitor? how can i impelement a nad gatter in a hdi?

Posted by rleininger on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/How-to-use-the-hardware-simulaitor-how-can-i-impelement-a-nad-gatter-in-a-hdi-tp4036743p4036746.html

I recommend that you refer to the PowerPoint slides provided by the creators of the Nand2Tetris course from their public web site https://www.nand2tetris.org/course which is located here:

https://drive.google.com/file/d/1MY1buFHo_Wx5DPrKhCNSA2cm5ltwFJzM/view

The section you are probably interested in begins at Slide 61.  It describes the methodology for creating an Xor chip in HDL.  Notice that the Xor chip design that is provided here does not use Nand chips, but is built from Not, And, and Or chips.  However, these three chips can be constructed from the built-in Nand chip.

The idea they are promoting is to start by building simple chips from Nand gates and then using those chips to build more complex chips.  Using this technique, all the chips that are built are technically built from Nand gates, even though their HDL files may contain the names of other previously constructed gates.  Hint: Start with the Not gate.