Re: 4 Way 16 Bit MUX Problem

Posted by cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/4-Way-16-Bit-MUX-Problem-tp4025121p4025125.html

In chapter 2 you will learn how numbers are represented by computers in base-2 (also called binary).
For example, when the number 1234 is stored in a 16-bit register, the individual bits in a the register are
    0000 0100 1101 0010
The bits are numbered starting with 0 on the right. The left-most 1 bit in this particular number is bit 10, and it contributes 210 = 1024 to the number's value.

Buses are always treated as if they were carrying numbers, so their wires are numbered the same was a bits. This is why when sel=100 (binary), the individual wires are sel[2]=1, sel[1]=0 and sel[0]=0.

--Mark