Did anyone else implement the ALU like this?
Posted by lucasvf on May 08, 2020; 2:03am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Did-anyone-else-implement-the-ALU-like-this-tp4034600.html
I wrote a functional ALU (passes all tests) but I'm pretty certain I did it in the most inefficient way possible.
Basically, the ALU actually performs all the computations, but make use of a Mux16 chip in each step to decide if the next step should use the newly computed value or the value before that. It only took 15 lines of HDL and was surprisingly easy to implement (I had a harder time with some way simpler chips).
I will now try to make it more efficient, but I was curious to know if anyone else did something like this.