Re: ALU Implementation
Posted by Idrisadeniyi on Jul 24, 2021; 4:31pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/ALU-Implementation-tp4036186p4036190.html
As per getting this idea into the hdl, the way I could best think about this process is to break the entire operations into different chunks and setup a truth table for each. for example:
x zx |out
0 0 0
0 1 0
1 0 1
1 1 0
For this combination of bits, I setup logic gates to achieve the outputs; and this is the same approach I've used to implement the rest of the operations of the ALU. If my approach is not correct, please lead me in the right direction. I do understand what the ALU is doing, but to implement it is actually the problem here.