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

Drain characteristics of fet, Q. In The Drain Characteristics Of FET What D...

Q. In The Drain Characteristics Of FET What Does The Region At Pinch Off? Field Effect Transistors (FETs) utilize a conductive channel whose resistance is controlled by an appl

Discuss the disadvantages of an rc coupled amplifier, Q. Discuss the disadv...

Q. Discuss the disadvantages of an RC coupled amplifier? RC coupled amplifiers have a few disadvantages. The resistors use dc power and so the amplifier has low efficiency. The

find the value of the slip and air gap power, The Thevenin equivalent circ...

The Thevenin equivalent circuit at the terminals of R2 / S for a 60 hz, 6 pole induction motor is shown below. a) Find the value of the slip for maximum torque and the maximum t

Determine the percentage drop in load current, Q. A practical current sourc...

Q. A practical current source is represented by an ideal current source of 200 mA along with a shunt internal source resistance of 12 k. Determine the percentage drop in load curr

..analong course design, Askhigh precision linear amplifier question #Mini...

Askhigh precision linear amplifier question #Minimum 100 words accepted#

Modern physics, jsidjsiod dkndkdisd dknssbs bsjbabd asj u dhihf ujojdsajfs...

jsidjsiod dkndkdisd dknssbs bsjbabd asj u dhihf ujojdsajfs sjssaidhsidw idgsdusadidjwap ewkeowr krwnrh bwvr [ wrj wrj 1 nnwoi khiwrjw ko e woewerijr rjwr jr rjhpr

Characteristics of the diode, Consider a forward-biased diode with a load r...

Consider a forward-biased diode with a load resistance. Let the static volt-ampere characteristic of the diode be given by Equations, and typically represented by Figure. (a) Fo

Linear and IC applications, bias compensation techniques for ac and dc char...

bias compensation techniques for ac and dc characteristics

Construction - unijunction transistor, Construction - UniJunction Transisto...

Construction - UniJunction Transistor: Construction: The basic structure of uni junction transistor is shown in fig. (a). It essentially consists of a lightly doped N type s

Write short notes on the stability factor of biasing circuit, Q. Write shor...

Q. Write short notes on the Stability Factor of Biasing circuits. The degree of success achieved in stabilizing Ic in the face of variations in Ico is expressed in terms of sta

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