Administrator
|
You probably missed that hardware bus bits are numbered from right to left. For sel = 2 (decimal) = 10 (binary), sel[0] = 0 and sel[1] = 1. See column headers in fig. 1.10, for example.
This is a common problem for people with programming experience since arrays are numbered from left to right.
The rational for this "backwards" numbering is that bus bit N carries the 2^N bit of a number.
--Mark
|