Login  Register

Re: DMUX4WAY

Posted by WBahn on Apr 21, 2020; 6:47pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/DMUX4WAY-tp4034403p4034449.html

There are several ways to do it. Think of the road example again.

If we put a fence around the forks in the road described above, I have one road going in to the fenced area and four roads coming out of it with two lights on my dash telling me what to do at both decision points that I have to make. Sounds a lot like a DMux4Way, right?

Now what if the first thing that happens is I come across there is a fork in the road and I have a third light on my dash telling me to go left or right. Whichever way I go I encounter a fenced in area like the one above.

How many total lights do I have on my dash? How many total eventual road options are available to me?

You don't need 3 DMux4Ways, just two plus a normal DMux (and three Not gates).