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

Power and power distribution, design a single phase circuit from a supply p...

design a single phase circuit from a supply point to a load

Subtract registers and borrow from accumulator, Subtract Registers and Borr...

Subtract Registers and Borrow from Accumulator The  contents of the  register  and borrow  flag  are subtracted from   the contents of the accumulator and the  result is  store

Mainframes - introduction to microprocessors , Mainframes Computers lar...

Mainframes Computers larger than minicomputer more power  operating at very high speed  called  mainframes.  They  can processes 64  bit data.  Such computers are used  in defe

General purpose registers, General  Purpose  Registers Registers B, C...

General  Purpose  Registers Registers B, C ,D, E H , and L   are 8 bit  general  purpose  registers. These  registers store  8 bit  data  temporarily  for processing. Some

Why biasing in necessary in transistor, (a) Describe why ordinary junction ...

(a) Describe why ordinary junction transistor is known as bipolar. (b) Describe working of NPN transistor as common Base configuration. Describe working of NPN transistor in

What do you man by subtractive polarity, Q. Show polarity markings for a si...

Q. Show polarity markings for a single-phase transformer for (a) subtractive polarity, and (b) additive polarity.

Neutral line in transformer, thus secondary winding of transformer consists...

thus secondary winding of transformer consists of neutral line or not?

Applications of hall effect, Applications of Hall Effect: (i)  To dete...

Applications of Hall Effect: (i)  To determine whether semiconductor is of n type or p type. (ii) To determine carrier concentration. (iii) Measurement of carrier mobili

Computer architecture, outline what three features you would add (choose th...

outline what three features you would add (choose the three that you feel would be most advantageous) to the 16 bit version of the processor in order to enhance its power.

Explain cache structure in pentium, Explain cache structure in Pentium. ...

Explain cache structure in Pentium. Cache structure in Pentium: The cache in the Pentium has been changed by the one determined in the 80486 microprocessor. The Pentium has t

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