Question: This is a team project. You should work with a team up to 4 members. The objective of the project is to simulate the operation

 This is a team project. You should work with a team

This is a team project. You should work with a team up to 4 members. The objective of the project is to simulate the operation of MIPS processor while executing a limited set of MIPS instructions. Write a Java program to simulate the pipelined MIPs CPU based on the architecture discussed in your textbook. Check chapter 4. Program: Your simulation should define an object (class) for each of the major components of the architecture. The public members of each object should be: storage element(s) storing the output data of the component function(s) that correspond(s) to the control signals for the component. While simulating each component, the input to this component should be fetched from the output storage element of the component(s) connected to it in the architecture. To simplify the design, multiplexers are not considered as separate components, but rather as parts of other components. A class "machine" should be defined to represent the desired architecture. It should include the major components of the architecture. Namely. mem_unit. alu. registers.CU. PC unit and IRunit. This class has only two public members; a "loadprog" method to read a machine language program from the file and load it to sequential locations of a simulated memory in the class "mem_unit" starting at location zero. "load_prog" should also initialize the program counter to zero. an "execute" which simulates the actual execution of the program and eventually calls within the following method "clock_cycle". a "dock_cyde" function which simulates what happens during one clock cycle. This function should emulate the finite state machine control, which will require that the class "machine" keeps track of the current machine state in a private variable "state". This is a team project. You should work with a team up to 4 members. The objective of the project is to simulate the operation of MIPS processor while executing a limited set of MIPS instructions. Write a Java program to simulate the pipelined MIPs CPU based on the architecture discussed in your textbook. Check chapter 4. Program: Your simulation should define an object (class) for each of the major components of the architecture. The public members of each object should be: storage element(s) storing the output data of the component function(s) that correspond(s) to the control signals for the component. While simulating each component, the input to this component should be fetched from the output storage element of the component(s) connected to it in the architecture. To simplify the design, multiplexers are not considered as separate components, but rather as parts of other components. A class "machine" should be defined to represent the desired architecture. It should include the major components of the architecture. Namely. mem_unit. alu. registers.CU. PC unit and IRunit. This class has only two public members; a "loadprog" method to read a machine language program from the file and load it to sequential locations of a simulated memory in the class "mem_unit" starting at location zero. "load_prog" should also initialize the program counter to zero. an "execute" which simulates the actual execution of the program and eventually calls within the following method "clock_cycle". a "dock_cyde" function which simulates what happens during one clock cycle. This function should emulate the finite state machine control, which will require that the class "machine" keeps track of the current machine state in a private variable "state

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!