Re: HDL implementation of Bit gate
Posted by ybakos on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/HDL-implementation-of-Bit-gate-tp1392879p1396315.html
>> But I cannot possibly do that
Yes... you can!
Review the HDL tips in the Appendix. In a nutshell, you can wire a chip's output to multiple internal pins that you create. For example, say I have a chip with input 'a' and output 'out':
SomeChip(in=someinput, out=outA, out=outB);
You now have two internal pins called outA and outB.
Furthermore, there are additional errors in the HDL from your initial thread post. You have taken the declared output pin and are trying to wire it to the Mux's input.
Once you get things wired up legally, you'll be close. But remember, a Mux behaves in a certain way (the load bit causes either a or b being output) and you'll want to compare your wiring with the Bit specification.
Good luck! I know you can figure it out.