/* * 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; } }