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 collector - emitter voltage and base current, Q. A transistor is ...

Q. A transistor is connected in common emitter configuration collector supply voltage Vcc is 10 volts load resistance Rl is 800ohm,voltage drop across load resistance is 0.8v and c

Objective of long-term plans for technical loss reduction, Objective of Lon...

Objective of Long-Term Plans for Technical Loss Reduction The primary objectives of strengthening and improvement of sub-transmission and distribution system in the long-term

Magnetic field due to a current carrying coil, Amperes Circuital Law states...

Amperes Circuital Law states that the line integral of the magnetic field H around a closed  path equals  the  total  current enclosed. ∫ H       dl          ∑ I   App

L filters, L filters: An L filter contains two reactive elements that ...

L filters: An L filter contains two reactive elements that are one in series and one in parallel. T and π filters: Main article: Capacitor-input filter

Components of plc - stepper motor , Components of PLC There are follow...

Components of PLC There are followings  three main  components of PLC : a.The power supply and rack. b.The central  processing  unit ( CPU) c.The input / output  (I/O

Find the total emf and armature current., Q.   In a 110V compound generator...

Q.   In a 110V compound generator, the armature, shunt and series winding resistance are 0.06?, 25? and 0.04? respectively. The load consists of 200 lamps each rated 55W, 110V conn

Magnetic circuits, develop and explain series and parallel magnetic circuit...

develop and explain series and parallel magnetic circuits?

Define sampling below the nyquist rate, Define Sampling below the Nyquist R...

Define Sampling below the Nyquist Rate? A further reduction of the sampling frequency will reason one sample to be taken each period. The Case 3 plot depicts the effect of this

Discuss the assembler directive of offset, Discuss the assembler directive ...

Discuss the assembler directive of OFFSET with example. OFFSET: This is an operator to find out the offset (displacement) of a variable or process regarding the base

Notations that are used in transistor circuits -h parameters, Notations tha...

Notations that are used in transistor circuits:-             h ie = h 11e = Short circuit input impedance             h 0e = h 22e = Open circuit output admittance

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