cache simulation and reconfigurable cache