An 8 stage pipeline simulator for MIPS machines