Login  Register

Mux gate

Posted by ron2308 on Mar 13, 2021; 8:22pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Mux-gate-tp4035833.html

I would be grateful for assistance  - what is wrong with my code.
I'm copying it here - no respond from the simulator, but it did not work out.
I made it according to the DNF

    PARTS:
    // Put your code here:
        Not (in=sel, out=notsel);
        And (a=a, b=notsel, out=w1);
        And (a=sel, b=b, out=w2);
        Xor (a=w1, b=w2, out=out);
}
Thank you, Ron