Re: pass through?
Posted by
cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/pass-through-tp2549046p4026143.html
rekoil wrote
This works with bus subscripts as well - let's say I want to copy the LSB of a 16-bit bus to a different wire:
Foo16(in=in, out[0] = lsb, out=out);
It's never mentioned explicitly that "teed" output pins are legal in the HDL - I figured it out by accident - but after that realization, I was able to go back and reimplement every "fake Mux" I'd put in my code.
It could be more prominent, but Appendix A.5.3 does say "In that case, the connections
out[0..3]=x and
out[2..6]=y will yield" which shows
out[2] and
out[3] connected to both
x and
y.
--Mark