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

Subtract contents of memory and borrow from accumulator, Subtract Contents ...

Subtract Contents of Memory and Borrow from Accumulator The contents of the  memory  pointed  by the HL register  pair  and the borrow  flag are subtracted from the  contents

Determine the output voltage increment, (a) Design a 6-bit R-2 R ladder D/A...

(a) Design a 6-bit R-2 R ladder D/A converter. (b) For V ref = 10 V, find the maximum output voltage. (c) Determine the output voltage increment. (d) If the output voltag

For an n-channel jfet find voltage, Q. For an n-channel JFET with V A = 35...

Q. For an n-channel JFET with V A = 350 V, I DSS = 10 mA, and V P = 3V, find V DS that will cause i D = 11 mA when v GS = 0.

Arduino Microcontroller, Hi. Do you do projects with Arduino microcontrolle...

Hi. Do you do projects with Arduino microcontroller? How much does it cost?

Determine the armature e.m.f. and load angle of generator, A 3-phase, wye-c...

A 3-phase, wye-connected, 11 kV, 137.5 MVA turbo-alternator of 0.8 power factor lagging has a synchronous reactance XS = 1.4 Ω. Assume the machine to be ideal for convenience of an

#title.MIPS assembly language code., Given the INPUT: • An array of 64-bit ...

Given the INPUT: • An array of 64-bit unsigned integer elements stored in the memory starting at a known location SOURCE. • The size of the array (i.e., number of elements) stored

What do you mean by sequential blocks, Q. What do you mean by Sequential Bl...

Q. What do you mean by Sequential Blocks? Neglecting propagation delays, which are measures of how long it takes the output of a gate to respond to a transition at the input of

What are shift register counters, What are Shift Register Counters? Two...

What are Shift Register Counters? Two of the main common types of shift register counters are the Ring counter and the Johnson counter and They are basically shift registers wi

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