A memory access simulator