Leroy wrote
Just curious. What is the least number of lines of HDL code, where a line of HDL code contains either just 1 logic gate or 1 chip (from chapter 2), that can be used to create a successful ALU implementation. I ended up using 18 lines- 7 Mux16, 3 Not16, 2 Or8Way, 2 Not, 1 Or, 1 Mux, 1 And16 and 1 Add16.
My shortest has 13 parts lines.
If you want, become a registered member of the forum and send me your ALU.hdl using More>Reply to Author. I will send you the 13-liner and a couple more showing different techniques that can be used to make the ALU.
--Mark