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

Bias circuit requirements, Bias circuit requirements: Signal requirem...

Bias circuit requirements: Signal requirements for Class A amplifiers The Q-point is placed thus the transistor stays in active mode (does not shift to operation in the s

Calculate total resistance, Calculate total resistance among terminal A and...

Calculate total resistance among terminal A and B for the circuit below.

Explain the types of power plants, Explain in detail the various energy res...

Explain in detail the various energy resources and their availability. Explain the following: (a) Types of power plants (b) Selection of power Plants

Find the resonant frequency, Find the resonant frequency: Find the res...

Find the resonant frequency: Find the resonant frequency ω0 (or f0) for the given series RLC circuit v = Vm sin ωt = 50 sin ωt Figure Also determine the expre

Features hindering developing countries from growing faster, Q. Describe so...

Q. Describe some of the features hindering developing countries from growing faster. Answer: One of the features that are able to be hold developing countries from growing fas

Instability problem, We would like you to do an indepth study/research in t...

We would like you to do an indepth study/research in the tradeoff between the filtering of the QR and the QR performance So it will be about filtering but more of an indepth for

Types of classification and coding systems, Illustrate the types of classif...

Illustrate the types of classification and coding systems? Briefly explain Production Flow Analysis? Discuss the basic concept of Composite part and different kinds of cell desi

For combined load calculate real power and reactive power, Q. A 6.6-kV line...

Q. A 6.6-kV line feeds two loads connected in parallel. Load A draws 100 kW at 0.6 lagging power factor, and load B absorbs 100 kVA at 0.8 lagging power factor. (a) For the comb

Explain the tap changing transformers, Explain the Tap Changing Transformer...

Explain the Tap Changing Transformers? This is the most popular form of voltage control at all voltage levels. It is based on changing the turns ratio of the transformer, hence

Hlt halt instruction , HLT Halt Instruction The microprocessor halts  ...

HLT Halt Instruction The microprocessor halts  the execution  of the  program and enters into  the wait  state  the address  and data bus are placed in the  high  impedance st

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