Re: Busing internal pins

Posted by cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Busing-internal-pins-tp440648p2548170.html

Stephen Davies wrote
I'd love to see the thread on "internal buses can't be sub-bused," but the link in your post is broken. Can you direct me?
The target's probably been deleted.

The error message reflects a limitation in HDL.  What you need to do is to create two different internal buses that are the widths you need.  For example, if you need the 16-bit word in one place and the low byte in another you can write
    And16(a=foo, b=bar, out=and_word, out[0..7]=and_low_byte);

--Mark