Login  Register

Re: DMux16 for ALU?

Posted by cadet1620 on Apr 11, 2013; 12:31pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/DMux16-for-ALU-tp4026636p4026638.html

Killboy wrote
I'm working on the ALU and my guess is that I'm making things more complicated than they need to be .. does it make sense to have a DMux16 to switch between alternate paths?

thanks

E.g.
          Sel   
           |------------------|
in---[Dmux16]---- path_1 ----[Mux16]--- out
             \--- path_2 ---/
The Mux16 doesn't care what the value is at its unselected input, so you can directly connect in to both path 1 and path 2.

Since both paths are computed at the same time by the hardware, it doesn't slow things down. In fact, the Demux would add additional delay.

--Mark