Mips simulator, Electrical Engineering

Assignment Help:

The coursework requires you to work in pairs to write a Java application that will take a numerical representation of a MIPS program and simulate its execution.

MIPS is a Load-Store or RISC (Reduced Instruction Set Computer) architecture. Many modern processors, such as SPARC, PowerPC, and PA-RISC, have very similar characteristics to MIPS. An appendix to "Computer Organization and Design", by David A Patterson and John L Hennessy, is available to you on Blackboard as document HP_AppA.pdf. It contains precise details of the MIPS instruction set and assembly code. 

Your Java program will respond to commands to load and execute MIPS machine code. Various debugging options will be supported. Example MIPS programs are provided and test scripts will be available in order to compare your output with standard results. To get you started, a Java program will be provided that partially implements the simulator. It will read in MIPS machine code and disassemble some instructions. You are strongly encouraged to study and understand this program, and then build on it to implement your simulator.

You will need to investigate the programmer's model for MIPS and decide how to represent the key architectural features in Java. Credit will be given for sensible use of object-oriented design to reflect the architecture in the class structure and choice of methods. The simulator should emulate a Little Endian architecture such as the PC. Beware that the example  program MIPSMem.java  for managing MIPS memory assume a Big Endian architecture so some small but important changes will need to be made.

The implementation is not expected to cover all aspects of MIPS:

  • Only integer operations need be supported.
  • Pseudoinstructions can be ignored as they are mapped to real instructions by the assembler.
  • Memory operations will not cross word boundaries.
  • Branch and Load delays can be ignored.
  • Handling of interrupts can be ignored.
  • The syscall instruction needs to support only string output, integer input and output, and exit.

 


Related Discussions:- Mips simulator

Sr flip-flop, SR FLIP-FLOP (SRFF) The symbol for the SRFF is shown in F...

SR FLIP-FLOP (SRFF) The symbol for the SRFF is shown in Figure (a), in which S stands for "set," R stands for "reset" on the input side, and there are two outputs, the normal o

What is programmable interrupt controller, What is programmable interrupt c...

What is programmable interrupt controller? The Programmable interrupt controller is used when several I/O devices transfer datausing interrupt and they are connected to the sam

How many types of buses are, There are three types of buses. Address bu...

There are three types of buses. Address bus: This is used to carry the Address to the memory to get either Instruction or Data. Data bus : This is used to take the Data from

Find whether the load impedance is capacitive or inductive, Q. When the two...

Q. When the two-wattmeter method for measuring three-phase power is used on a certain balanced load, readings of 1200W and 400W are obtained (without any reversals). Determine the

Mode of propagation of electromagnetic waves, Q. Mode of propagation of ele...

Q. Mode of propagation of electromagnetic waves? The mode of propagation of electromagnetic waves in free space and atmosphere may be subdivided into three categories: • Gro

Ac voltage controllers, Q. Explain AC voltage controllers? Common appli...

Q. Explain AC voltage controllers? Common applications for these controllers are found in fan, pump, and crane drives. Figure shows three-phase symmetrical ac voltage-controlle

Output impedance, Now that you have the input and output impedances you can...

Now that you have the input and output impedances you can design the matching networks. I will require either the Smith Charts showing how you calculated the matching components or

Explain the synchronous up-down counters, Explain the Synchronous Up-Down C...

Explain the Synchronous Up-Down Counters? The circuit of a 3-bit synchronous up-down counter and a table of its sequence are shown below.  Alike to an asynchronous up-down count

Find the maximum kva rating as an auto- transformer, Q. A 5-kVA, 480:120-V,...

Q. A 5-kVA, 480:120-V, two-winding, 60-Hz, single-phase transformer has an efficiency of 95% while delivering rated load at rated voltage and 0.8 power factor lagging. This transfo

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd