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

Execute a pspice program to solve for the node voltages, Q. For the circuit...

Q. For the circuit given in Figure, develop and execute a PSpice program to solve for the node voltages.

Guarding against losses in service cables and connections, Guarding Against...

Guarding Against Losses in Service Cables and Connections The service cables to consumer premises are often a source of loss that can be reduced given below. The length of ser

External frequency compensation of operational amplifier, Q. External Frequ...

Q. External Frequency Compensation of operational amplifier? For applications requiring a more extended high-frequency response, there are op amps with no internal compensation

What will the slipring voltage be in this case, A four-pole, three-phase, w...

A four-pole, three-phase, wound-rotor induction machine is to be used as a variable-frequency supply. The frequency of the supply connected to the stator is 60 Hz. (a) Let the r

Mode of propagation of electromagnetic waves, Q. Mode of propagation of ele...

Q. Mode of propagation of electromagnetic waves? The mode of propagation of electromagnetic waves in free space and atmosphere may be subdivided into three categories: • Gro

Instruction set architecture, assume that the top of the stack in the progr...

assume that the top of the stack in the program is pointed by the register sp.

Impedance heating system, Under what circumstances is individual circuit pr...

Under what circumstances is individual circuit protection for a lighting and applications panel board not required? What is the purpose of guarding runway contact conductors and

Series-carry synchronous counter with t flip-flops, Q. Consider a series-ca...

Q. Consider a series-carry synchronous counter with T flip-flops shown in Figure in which the AND gates carry forward the transitions of the flip-flops, thereby improving the speed

Describe about transmission-line voltage regulation, Q. Describe about tran...

Q. Describe about transmission-line voltage regulation? The transmission-line voltage regulation (TLVR) is the ratio of the per-phase voltage drop between the sending-end and r

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