[Solved] COL216 Assignment7-Software simulator in C++ for the MIPS processor

$25

File Name: COL216_Assignment7-Software_simulator_in_C++_for_the_MIPS_processor.zip
File Size: 631.14 KB

SKU: [Solved] COL216 Assignment7-Software simulator in C++ for the MIPS processor Category: Tag:
5/5 - (1 vote)

Statement

In this and the subsequent assignments, you will build a software simulator in C++ for the MIPS processor.

  1. The input to your program is a MIPS program (limited to the instructions you have already implemented in previous assignments). Read this input into an array of instructions.
  2. Simulation starts with the Program Counter (PC) pointing to the first instruction.
  3. Execute the instruction. Display the values of the Register File and Memory contents as a result of executing the instruction.
  4. Proceed to the next instruction and continue the execution.
  5. Simulation stops when there is no further instruction to execute.

This version of the processor is a MULTICYCLE design (not PIPELINED). Assume that you will be given a file that indicates the information of how many clock cycles each instruction requires.

At the end of execution, print out statistics about the clock cycle counts and average Instructions Per Cycle (IPC) for the input program.

A sample input file with delay values of each instruction is as follows:

add 4 sub 4 beq 5 etc.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] COL216 Assignment7-Software simulator in C++ for the MIPS processor
$25