Re: Please Help me Somebody with DEMUX Gate
Posted by WBahn on May 20, 2019; 3:46pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Please-Help-me-Somebody-with-DEMUX-Gate-tp4033175p4033180.html
I think you're making your decode logic much more complicated than it needs to be. But there are several approaches and any approach that works is valid. You might consider just looking at what each control signal needs to be for each type of instruction -- you will find that many of them don't care what type of instruction it is (or, more specifically, they care about one instruction type but not the other type).
As for the DeMux gate, look at it for what it is -- the reverse of a Mux gate. So you have a single input and depending on the select input you either echo the input to that output or you make the output all zero.