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

Voltage transfer function of the high-pass filter, Determine the voltage tr...

Determine the voltage transfer function of the high-pass filter circuit shown in Figure, and find the expression for ω 0 .

DC motor & encoder, If a high resolution emcoder is used for position contr...

If a high resolution emcoder is used for position control, will the number of pole count in the DC motor be matter? What is the requirement for the DC motor in order to work with h

General, a single phase 120 volts, 60hertz supply is connected to a coil of...

a single phase 120 volts, 60hertz supply is connected to a coil of 200 turns wound round a toroidal magnetic core with a mean length 100cm and cross section 20cm square &relative p

#title., what is plane transmission grating/?

what is plane transmission grating/?

EMF, what is induced EMF & what is statically EMF explain in details.

what is induced EMF & what is statically EMF explain in details.

State the drawbacks of in band and out band voice signalling, a. Enlist the...

a. Enlist the benefits and drawbacks of in band and out band voice signalling? b. Describe Channel Associated mode, Channel Non-Associated mode and QuasiAssociated mode of commo

Sampled-data and digital control systems, Q. Sampled-data and digital contr...

Q. Sampled-data and digital control systems? These differ fromthe continuous-data systems in that the signals at one or more points of the system are in the form of either a pu

Linear time invariant, A LIT (linear time-invariant) system, impulse respon...

A LIT (linear time-invariant) system, impulse response h [ n ], is described by: (a) Show the block-diagram representation for this FIR filter (only use multiplier, adder

Positive edge triggered d flip flop , Positive  Edge Triggered D Flip Flop...

Positive  Edge Triggered D Flip Flop In this type  of D flip Flop  ( 7475)  shown in figure  the output changes with  positive  edge  of the CLK when CLK  changes  from 0 to 1

Show the octal number system, Q. Show the Octal Number System? Though t...

Q. Show the Octal Number System? Though this was once a popular number base, especially in the Digital Equipment Corporation PDP/8 and other old computer systems, it is rarely

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