title: Calculating memory size based on address bit-length and memory cell contents
body: <p>I am trying to calculate the maximum memory size knowing the bit length of an address and the size of the memory cell.</p>
  
  <p>It is my understanding that if the address is n bits then there are 2^n memory locations. But then to calculate the actual memory size of the machine, you would need to multiply the number of addresses by the size of the memory cell. Is that correct?</p>
  
  <p>To put it another way, </p>
  
  <p>Step 1: calculate the length of the address in bits (n bits)
  Step 2: calculate the number of memory locations 2^n(bits)
  Step 3: take the number of memory locations and multiply it by the Byte size of the memory cells.</p>
  
  <p>If each cell was 2 bytes for example, would I multiply 2^n bits (for address length) by the 2 Bytes per memory cell.</p>
  
  <p>So total memory would be 2^n bits (address size) * x bytes (cell size)?</p>