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

Measurement and control systems, Electronic signals are used by almost all ...

Electronic signals are used by almost all measurement and control systems to transfer information. Much of this data is in the form of analogue voltages, which are prone to the ef

Induction motor, A very widely used alternative form of synchronous motor i...

A very widely used alternative form of synchronous motor is the  ' indu c tion motor'. This has the advantage that it does not require an auxiliary motor to run the rotor up t

Electrical/electronic engineering project, i need a project creating in ele...

i need a project creating in electronic/electrical engineering at HNC level, 3000 words Harvard referencing. it can be about anything in this field or i can give a suggestion

Calculate the maximum motor torque, A 1000-hp, 2300-V, wye-connected, three...

A 1000-hp, 2300-V, wye-connected, three-phase, 60-Hz, 20-pole synchronous motor, for which cylindrical-rotor theory can be used and all losses can be neglected, has a synchronous r

Assembly languages - second generation language, Assembly Languages  ( Sec...

Assembly Languages  ( Second Generation Language) To overcome  the difficulty of machine  language assembly  language  was  designed. After  facing the  difficulty of machine

The classical free electron theory, The free electron theory of metals was ...

The free electron theory of metals was first proposed by Drude and later improved by Lorentz. The main postulates of this theory are 1.       All metal contain, adequate number

DC machines, what are the functions of interpolar winding and compensating ...

what are the functions of interpolar winding and compensating winding?

State diagram for a typical von neumann machine, Question: a) Give the ...

Question: a) Give the instruction cycle state diagram for a typical Von Neumann machine. b) Give two diagrams to differentiate between a Memory and CPU connections. c) Co

Compare procedure and macro, Compare Procedure & Macro  Accessed by CAL...

Compare Procedure & Macro  Accessed by CALL & RET instruction Accessed during assembly with name given during program implementation to macro when defined Machine code for inst

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