Login  Register

Least number of lines of HDL code

Posted by Leroy on Jul 08, 2012; 10:43pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Least-number-of-lines-of-HDL-code-tp4025021.html

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.