Re: Mux4way16 problem

Posted by Idrisadeniyi on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Mux4way16-problem-tp4035690p4035737.html

Alright. below is the hdl:

       CHIP DMux4Way {
    IN in, sel[2];
    OUT a, b, c, d;

    PARTS:
    // Put your code here:
        And (a=in, b=in, out=lo);
        DMux (in=in, sel=sel[0], a=a, b=b);
        DMux (in=lo, sel=sel[0], a=x1, b=x2);
        DMux (in=x1, sel=sel[1], a=c, b=z2);
       
       
}