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 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
0 0
Add a comment Improve this question Transcribed image text
Answer #1

according to the given data

for Beq instruction we need the path from the control unit to the PC.

That path will be used to implement the instruction as there is no change in the other section of the pipeine.

Only change happens to the PC value for the instruction. we need to changes in order to support one instruction. We need to provide a path from control unit to the PC. The path is similar to the one i have shown in the below diagram.

this path will also be used to execute all jump and branch related instructions.

ran OLU CO T ALU sr cLK 25.2 Instructhon pc. Jium A3 ND Regler ite 15·11 5.0 Sign exe 21..5 250 The value %.tee instructen sik 6e. ben OP o00l00 Reg DstX Blanch 1

Add a comment
Know the answer?
Add Answer to:
4. (10 pts) The following MIPS single-cycle datapath cannot perform Divide instruction. Indicate any changes to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT