title: MIPS Direct Mapped Cache. Use of Address Bits
body: <p><img src="https://i.imgur.com/I4Aja.png" alt=""></p>
  
  <p><img src="https://i.imgur.com/M2NAd.png" alt=""></p>
  
  <p>The above have answers in blue</p>
  
  <p><strong><em>Which bits will be used for what</em></strong>? Eg. I know lst 2 LSB are byte offset. Then which bits will be used for word select, block select &amp; tag?</p>
  
  <p>What I did was</p>
  
  <ul>
  <li>2 LSB: Byte offset</li>
  <li>1 Bit: Word select</li>
  <li>4 Bit: Block select</li>
  <li>Rest: Tag</li>
  </ul>
  
  <p>But it appears wrong? For (a) I have</p>
  
  <p><img src="https://i.imgur.com/03XAd.png" alt=""></p>
  
  <p>(b) incomplete I think but its already wrong</p>
  
  <p><img src="https://i.imgur.com/KFNbe.png" alt=""></p>