Electronic – How many external devices can be linked to a CPU with n address buses and m data buses

addressingbuscpu

(Hypothetical)
Let's say there is a CPU with 8 address lines and 8 data lines.
If each external device has 128 accessible registers, how many external devices can be linked?

For 8 address lines, I assumed 2^8 = 256 addressable locations.A nd then 256*8 (dl) = 2048.
2048 / 128 (R) = 16 external devices . Is this correct thinking?

Edit : question is: if each external device has 128 accessible registers of control and data. No mentions on bits

Best Answer

You have correctly calculated that with 8 address lines and 8 data lines you can uniquely address 2048 bits.

However, your question is vague in that it uses the word register without any explanation of how many bits are in a register. You must know that to answer the question. As DaveTweed pointed out, your conclusion is only valid if each register is just one bit. If the registers have more bits than one then your answer would be different.