Here are the key points about RAM calculation:
- RAM size is specified in number of words
- Each word has a fixed number of bits (typically 8, 16, 32, 64 bits)
- To calculate total RAM size in bits:
- Number of words x Bits per word
- For example, a 2K RAM with 8-bit words would have:
- 2,000 words
- 8 bits per word
- So total size is 2,000 x 8 = 16,000 bits = 2KB
- The number of address lines needed is equal to the base 2 logarithm of the number of words
- For a 2K RAM, log2(2,000) = 11 address