1
$\begingroup$

I dont know if this is any important IRL, but I am trying to understand lines below.

4K words of main memory (this implies 12 bits per address).

4M X 16 means the memory is 4M long (4M = $2^2 \times 2^{20} = 2^{22}$ words) and it is 16 bits wide (each word is 16 bits).

So, how bits per address is really calculated, what does 4K/4M represents and how does that formula in parenthesis works?

$\endgroup$
2
  • $\begingroup$ See also: Kibibyte, Mebibyte, … $\endgroup$
    – greybeard
    May 28, 2022 at 18:23
  • $\begingroup$ Please ask only one question per post. I see three questions here. We prefer questions that are likely to be useful to others in the future, even if they're not looking at the exact same exercise or task as you. $\endgroup$
    – D.W.
    May 28, 2022 at 20:06

1 Answer 1

1
$\begingroup$

In computer science, the following suffixes are commonly used:

  • K (Kilo): $2^{10}$
  • M (Mega): $2^{20}$
  • G (Giga): $2^{30}$
  • T (Tera): $2^{40}$

The next one is P (Peta), but it is not in common usage. Usually these suffixes are accompanied by another unit, for example KB (Kilobyte, or $2^{10}$ bytes) or MHz (Megahertz, or $2^{20}$ cycles per second).

Using $n$ bits, you can address $2^n$ words.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.