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 rate at which the magnitude falls, Q A high-pass filter circu...

Q A high-pass filter circuit is shown in Figure. Using a PSpice program and PROBE, obtain the Bode magnitude plot for the transfer function ¯H(f) = ¯V out / ¯V in for frequency ra

Level4, What are the three modes of operation of rotating machines

What are the three modes of operation of rotating machines

What are the 8086 interrupt types, What are the 8086 interrupt types? D...

What are the 8086 interrupt types? Dedicated interrupts Type 0: Divide by zero interrupt Type 1: Single step interrupt Type 2:Non maskable interrupt Type 3: Breakpo

Help needed in degree project, i have to design a project title "Edge deter...

i have to design a project title "Edge determining techniques for Low quality images in different lighting conditions and we use matlab for images simulation by changing different

Explain limit signal spectrum to prevent aliasing, Explain Limit Signal Spe...

Explain Limit Signal Spectrum to Prevent Aliasing? The sampling frequency should at least be two times that of the highest frequency in the incoming signal to avoid aliasing. T

Show the r’s complement, Q. Show the r’s Complement? Step1- get the (r-...

Q. Show the r’s Complement? Step1- get the (r-1)'s complement Step 2- add 1 to the result ex.            935 10                                     9 9 9

Determine the initial value and final value of the current, Given the frequ...

Given the frequency-domain response of an RL circuit to be determine the initial value and the final value of the current by using the initial-value and final-value theorem

Calculate the guage pressure, Questions: Part (a) A compressor inst...

Questions: Part (a) A compressor installed at a wharf (for loading container ships) is able to provide 6 bar.g pressure into the pressure receiver. The compressor is moved

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