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 highest value of voltage regulation, Q. A 25-kVA, 2200:220-V,...

Q. A 25-kVA, 2200:220-V, 60-Hz, single-phase transformer has an equivalent series impedance of 3.5 + j4.0  referred to the primary high- voltage side. (a) Determine the highest

Explain the procedure of binary to hex conversion, Q. Explain the procedure...

Q. Explain the procedure of Binary to Hex Conversion? It is simple to convert from an integer binary number to hex. This is completed by: Break the binary number int

Magnetic circuits, Magnetic circuits To  see  how  this   is  used   i...

Magnetic circuits To  see  how  this   is  used   in  practice, consider a coil of N turns wound onto a closed ring shaped former with a very high (note:    r (steel) = 200

Show bandwidth of the system, A communication system for a voice-band (3 kH...

A communication system for a voice-band (3 kHz) channel is designed for a received SNR E b /N 0 at the detector of 30 dB when the transmitter power is Ps =-3 dBW. Find the value o

Transformer, 1 diagram basic layout of a simple transformer

1 diagram basic layout of a simple transformer

Determine efficiency and ripple factor, (a) Show Diode as a half wave recti...

(a) Show Diode as a half wave rectifier. Determine efficiency and Ripple factor of the half wave rectifier. (b) Write short note on LED. Briefly explain : (i) Positive cli

Voltages source inverter - vsi, Voltages source inverter ( VSI) A volta...

Voltages source inverter ( VSI) A voltage  source  inverter is a constant voltage  source  which  is having  negligible  impedance. In these inverters the amplitude of output

How can a jfet be used as a voltage controlled resistor, Q. How can a JFET ...

Q. How can a JFET be used as a voltage controlled resistor. Explain from drain characteristics? The region to the left of the pinch off locus is referred to as the ohmic region

Circuite theory, In real life, transformers have losses which cause their b...

In real life, transformers have losses which cause their behaviour to deviate from the ideal. Explain the reasons for this non-ideal behaviour

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