Re: Mux4Way16
Posted by WBahn on May 09, 2024; 7:21am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Mux4Way16-tp4037818p4037836.html
Let's look at the following code segment:
//00. outand7=0
And(a=sel[1], b=sel[0], out=outand7);
Not(in=outand7, out=notoutand7);
And(a=notoutand7, b=notoutand7, out=out00);
I'm inferring that the intent is for out00 to be 1 exactly when sel = 00. Is that correct?
If so, that means that you do NOT want it to be 1 for any of the other three possible values of sel, correct?
So make a truth table and walk through your logic -- again, the logic AS written, not as intended -- and figure out what out00 will be for all four possibilities for sel.