Question: 4. (10 pts) The following MIPS single-cycle datapath cannot perform Divide instruction. Indicate any changes to the datapath that must be done in order to
4. (10 pts) The following MIPS single-cycle datapath cannot perform Divide instruction. Indicate any changes to the datapath that must be done in order to support Div instruction, e.g., adding extra wires, extra logic gates, extra registers, etc. Do your modification on the following figure if necessary, and show the dataflow for this instruction using dash lines on the modified figure. Also show the values of the corresponding control signals in the following table and add new control signals to the table it needed. Note that a multiply instruction, such as div St1, St2, uses only two source registers in the instruction, and its encoding is shown below. rd shamt Rt 10 Fune code 26 opcode Rs Add Add resun PCSre SNR let 2 Regwnite Instruction (25-211et1 Re MemtoReg egister 2 (31-0) eMAAodess Read egister data 2 reglster instruction (15-11wite Wiite 0ata data memory Instruction 115-0 estend ALU instruction 15-0 MemRead MemWrite ALUsre RegDst RegWrite MemtoReg ALUop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
