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

Determine the coil resistance, Relays a) Sketch the schematic symbol for...

Relays a) Sketch the schematic symbol for a relay with a single pole changeover switch b) Determine the coil resistance and determine the current at 12Vdc c) Connect the r

Find the resistor values of rc, Apply the rule-of-thumb dc design presented...

Apply the rule-of-thumb dc design presented in this section for a silicon npn BJT with β = 70 when the operating Q point is defined by I CQ = 15 mA and I BQ = 0.3 mA, with a dc s

Complex waveforms and transients in rlc circuits, can you let me know how m...

can you let me know how much it would be for the answer to a question that has 2 parts

Body effect, Body Effect The body effect explains the changes in the th...

Body Effect The body effect explains the changes in the threshold voltage through the change in the source-bulk voltage, approximated by the subsequent equation: In whi

Linear and position invariant, Q. Linear and position invariant? Assume...

Q. Linear and position invariant? Assume that the model illustrated below is linear and position invariant. Also the noise and the image are uncorrelated. Show that the powe

Define number systems, Q. Define Number Systems? A number system, in ge...

Q. Define Number Systems? A number system, in general, is an ordered set of symbols (digits) with relationships defined for addition, subtraction, multiplication, and division.

Usage of transistor, Usage of transistor: The bipolar junction transis...

Usage of transistor: The bipolar junction transistor that is abbreviated as BJT was the most generally used transistor in the 1960s and 70s. Even later than MOSFETs became ext

Assumption of capital asset pricing models, Q. Assumption of capital asset ...

Q. Assumption of capital asset pricing models? 1) Investor; s objective is to maximize the utility of terminal wealth: investor aims at maximizing the utility of hi9s wealth r

Fourier Series, State by inspection (i.e. without performing any formal ana...

State by inspection (i.e. without performing any formal analysis) all you can about each of the periodic waveforms shown in FIGURE 1 in terms of their Fourier series when analysed

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