Login  Register

Re: Did anyone else implement the ALU like this?

Posted by WBahn on May 08, 2020; 2:38am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Did-anyone-else-implement-the-ALU-like-this-tp4034600p4034601.html

I'd recommend just doing it per the specification that is given -- that's a good road map.

It's bit hard to tell from your description, but it sounds like this might be what you are doing.

For instance, if it says that a certain signal either flips the bits or not, then use a MUX controlled by that signal and in one input bring in the data and in the other input bring in the Not of that data. Let the control bit choose which one goes forward.

Fifteen gates sounds about right, depending on how you produced the zr and ng signals.