schrodin wrote
CHIP Not {
IN in1, in2;
OUT testyOut;
PARTS:
Nand( a=in1, b=in2, out=testyOut);
}
Don't ever change the IN and OUT lines. They define the interface to the chip and must use the same names as the provided prototype files.
You've got the right idea, that you need to use a Nand gate to make Not. Since Nand has inputs 'a' and 'b' and output 'out', your Not will look like this:
CHIP Not {
IN in;
OUT out;
PARTS:
Nand( a=___, b=___, out=out);
}
You just need to fill in the blanks. Read
The Hardware Construction Survival Kit and
Appendix A.
You'll learn that the only valid things for those blanks are the names of chip inputs, "false", "true", and the names of internal pins (wires and buses). You won't have any internal pins in the Not chip.
--Mark