Re: DMux4Way confusion
Posted by WBahn on Jul 17, 2020; 9:36am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/DMux4Way-confusion-tp4034855p4034859.html
Yes. Think of the index in a multibit bus as representing the exponents in a binary representation of a value. Consider our normal base-10 representation.
234 is 2x10^2 + 2x10^1 + 4x10^0
So we could call the individual digits d[2] = 2, d[1] = 3, and d[0] = 4.
So if we say d = 234, it is understood that the rightmost digit is d[0] and that the indices then increase as we move to the left.
It's the same on a bus representing a binary value.
Even if the signals on the bus don't represent a binary value, it is widely customary to number them the same way for consistency.