Reputation: 1692
I'm trying to design of an analyzer/simulator for a simplified MIPS CPU using a high level programming language preferably Java. The considered MIPS CPU adopts the CDC 6600 scoreboard scheme to dynamically schedule instruction scheduling and using cache for load and store instruction for cache hit and cache miss. I need some start up advice for this simulation.
Should I use Event Queue for this simulation? If so how?
Upvotes: 0
Views: 548
Reputation: 6266
A simple RISC processor can be simulated by executing one instruction at a time. This is true even for a pipelined CPU.
Since you want to model a superscalar processor, where several instructions are in flight at the same time, an event based simulator will be the best way to correctly model which instruction completes when, and how the in-flight instructions compete for processor resources.
Upvotes: 1