Solutions for Chapter 5 Exercises - CSIE -NCKU
Solutions for Chapter 5 Exercises - CSIE -NCKU
Solutions for Chapter 5 Exercises - CSIE -NCKU
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
8 <strong>Solutions</strong> <strong>for</strong> <strong>Chapter</strong> 5 <strong>Exercises</strong><br />
5.31 RegDst can be replaced by ALUSrc, MemtoReg, MemRead, ALUop1.<br />
MemtoReg can be replaced by RegDst, ALUSrc, MemRead, or ALUOp1.<br />
Branch and ALUOp0 can replace each other.<br />
5.32 We use the same datapath, so the immediate field shift will be done inside<br />
the ALU.<br />
1. Instruction fetch step: This is the same (IR