1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package cache;
- /**
- *
- * @author Juninho Carlos
- */
- public class Requisicao {
- public int palavra;
- public int conjunto;
- public long endereco;
-
- public long limiteSup;
- public long limiteInf;
-
- public boolean read;
-
-
- public Requisicao(long address,boolean read){
- long aux;
-
- this.read = read;
- this.palavra = (int)(address/4)%32;
-
- this.endereco = address;
-
- aux = address/128;
-
- if(aux > 31){
- aux = aux%32;
- this.conjunto = (int)aux;
- }else{
- this.conjunto = (int)aux;
- }
-
- this.limiteInf = address - palavra*4;
- this.limiteSup = limiteInf + 124;
- }
-
- }
|