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

Power suppliers, Normal 0 false false false EN-IN X-N...

Normal 0 false false false EN-IN X-NONE X-NONE POWER SUPPLIERS

Relative permeability, The force between two wires 1 metre apart and each c...

The force between two wires 1 metre apart and each carrying 1 amp is 2 x 10 -7 Newtons when in a vacuum (or in practice, air).However, it is found experimentally that the force is

Write short note on a negative clamper, Q. Write short note on a negative c...

Q. Write short note on a negative clamper ?   A circuit which places the negative peak of a signal at a desired level is known as a negative clamper (1). During the

Find the voltage, Q. The current sources in Figure are given to be I A = 3...

Q. The current sources in Figure are given to be I A = 30 A and I B = 50 A. For the values of R 1 = 20 ,R2 = 40 , and R3 = 80 , find: (a) The voltage V. (b) The current

Dc basing bits, Dc basing bits: Operating point: operating is cut off...

Dc basing bits: Operating point: operating is cut off; saturation and linear region of bits character are provided as follow: (1)  Linear-region operation (2)  (1)

State norton''s theorem, Norton's Theorem Nortons Theorem states: "A...

Norton's Theorem Nortons Theorem states: "Any linear circuit containing several energy sources and resistances can be replaced by a single Constant Current generator in para

Construct a suitable piecewise linear equivalent circuit, Problem: The ...

Problem: The current voltage characteristic [ ID versus VD] of a semiconductor diode for VD > 0 [forward bias] is given in Figure Under reverse bias conditions [VD Fi

Construct a truth table and get the minimum sop expression, Q. For the logi...

Q. For the logic circuit of Figure, construct a truth table and obtain the minimum SOP expression.

Regions of operation in bjt, Q. Regions of operation in BJT ? Transisto...

Q. Regions of operation in BJT ? Transistor find many applications like amplifier, switch etc. depending upon the polarity and the magnitude of the applied voltages across the

Explain the properties of high resistive materials, Explain the properties ...

Explain the properties of high resistivity materials. High resistivity materials: The conducting materials containing resistivity from 10 -6 to 10 -3 ohm-m come under such

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