Re: The Boolian function `x`

Posted by cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/The-Boolian-function-x-tp4027173p4027180.html

I think that you are asking how to connect a chip input directly to a chip output. There is no built in way to do this in HDL.

You can build a 'Wire' chip that you can then use in other parts.
/**
 * Wire: connect in directly to out. 
 */
CHIP Wire {
    IN  in;
    OUT out;
    PARTS:
    And(a=in, b=in, out=out);
}
You can then use Wire in other chips to make direct connections.
    Wire(in=something, out=someother);

--Mark