Question: 1) Create a MIPS processor the will perform the following MIPS instructions: and or add sub lw sw beq bne addi 2) The program should
1) Create a MIPS processor the will perform the following MIPS instructions:
and
or
add
sub
lw
sw
beq
bne
addi
2) The program should be able to accept a hex instruction.
3) Convert the instruction to binary
4) Parse the binary number into Register format:
op-code- Instruction opcode
rs The 1st register source operand
rt The 2nd register source operand
rd The destination register
shamt Shift amount
funct Function code
5) Keep in mind which format of instruction (R or I)
6) Perform tasks based on the opcode
7) Display the content in each register
8) Also print the to show the actual instruction: i.e. add $1, $2, $3
Please in either java, python, or c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
