Login  Register

Zeroing an input

Posted by ngdrummer on Jan 30, 2014; 5:25am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Zeroing-an-input-tp4027679.html

Hey, so I'm taking a course at a local college and we're using your website as the framework for the course! I'm currently working on my ALU and I've run into the issue of how to completely zero an input.

at first I tried:
Mux16(a=x, b=0, sel=zx, out=postzx);

which I got the error stating  I needed a "pin name", so I went with this:
Mux16(a=x, b=false, sel=zx, out=postzx);

And now it "compiles" fine (meaning the simulator will open it without errors) but I get an error when running the test script when zx is set to value 1, meaning when it's supposed to actually zero the values. Is there another way to zero all the values that I'm missing?

Thanks!