Mux16, need a lead

Posted by Nicolas on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Mux16-need-a-lead-tp3075176.html

Hey, Im having alot of trouble trying to get my 16Mux gate to work. Ive spent two hours and have no idea how to even start. The following is what i have done, but its basically random guessing, could someone point me in the right direction. My Mux gate works fine btw. Thanks.

CHIP Mux16 {

    IN  a[16], b[16], sel;
    OUT out[16];

    PARTS:
//edit: implementation was in fact correct

}