Simulation of direct mapped cache with FIFO replacement