title: Set associative cache with 48 bit adress
body: <p>This question is from an exame my school made a year ago.</p>
  
  <p>I have a N-way set associative cache with <code>48 bit adresses</code> and the <code>tag 33 bits</code>.</p>
  
  <p>The cache can store <code>16384 double-type elements</code>, if the adress is multiple of 64.</p>
  
  <p>The question is: How many sets and lines per set exist?</p>
  
  <p>Since the capacity is 16384 double-type and a double has 8 byte, I put the <code>capacity in 16384 * 8 = 131072 byte</code></p>
  
  <p>I think the 48 bit (6 byte) adress is the dimension of a line.</p>
  
  <p>I saw on a website that the Cache capacity / number of bits in a line = lines number so I put 131072 / 6 = 21845 (approximate).</p>
  
  <p>I can't get further than this, since I don't find the way to get the sets and if I'm right with the number of lines per set, as this is my problem.</p>
  
  <p>Thanks</p>