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

Sketch the phasor diagram, Consider an RLC series circuit excited by v (t) ...

Consider an RLC series circuit excited by v (t) = 100√2 cos 10t V, with R = 20 , L = 1 H, and C = 0.1 F. Use the phasor method to find the steady-state response current in the cir

Examples of attribute data relevant for a power utility, Examples of attrib...

Examples of attribute data relevant for a power utility: Examples of attribute data relevant for a power utility are given below. •          Consumer data such as categor

Saturation and cutoff in bipolar junction transistor, Saturation and Cutoff...

Saturation and Cutoff in bipolar junction transistor: Saturation : With both of the junctions forward-biased, a BJT is in saturation mode and makes easy high current condu

Plc, in industry

in industry

Measuring equipment of ac-dc voltage and waveforms, Procedures and methods ...

Procedures and methods of the experiments A).      In order to measure the true RMS values of the currents and voltages, students used the true RMS multimeter. It requires two

Basic elements of a digital communication system, Q. Basic elements of a di...

Q. Basic elements of a digital communication system? Figure illustrates the basic elements of a digital communication system. For each function in the transmitting station, th

Explain a tube well, Q. Explain a Tube Well? Method of restoring or inc...

Q. Explain a Tube Well? Method of restoring or increasing the capacity of tube well is known as developing a Tube Wells. This is done to eliminate bridging of fine particles on

Multi-link connection in a network of register, Q. Multi-link connection in...

Q. Multi-link connection in a network of register? For a multi-link connection in a network of register- controlled exchanges, a register in originating exchange receives addre

Synchronous and asynchronous serial communication, Differentiate between sy...

Differentiate between synchronous and asynchronous types of serial communication.   Serial data communication uses two fundamental types as, synchronous and asynchronous. With

Calculate the thermal velocity of an electron, Question: a) Describe t...

Question: a) Describe two mechanisms by which electrons can be excited from the valence band to the conduction band? b) Given that the direct-band gap energy for Gallium N

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