How to use the hardware simulaitor? how can i impelement a nad gatter in a hdi?
Posted by kiohoilgb8 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-tp4036743.html
Hi, I read the hole pdf, but idnot understood it...
For example I have:
CHIP t {
IN a,b;
OUT out;
PARTS:
}
This is the beginning of the HDI, how can I use the nand gatter?
Our Prof said that we could use the nand gatter easy, but he didnot say how... For example I want to have a nand getter, how would i make it, that the output is like the output from a nade gate? Should I give the inputs a and b a value or not? Our prof said, that the nand gate is a default setting, so we can use that, without own implements, but I dont now the syntax how to use.
Would be this correct?:
CHIP t {
IN a,b;
OUT out;
PARTS:
NAND(a=true, b=false)
// I think so give the inputs a value, but how can i now say, that the output is like a nand?
}
And I have to give the values a name or i dont need?