Question: Register ID dstM indicates the destination register for write port M, where valM, the value read from memory, is stored. This is shown in Figures
Register ID dstM indicates the destination register for write port M, where valM, the value read from memory, is stored. This is shown in Figures 4.18 to 4.21 as the second step in the write-back stage. Write HCL code for dstM.
Figures 4.18
![Stage Fetch Decode Execute Memory Write back PC update OPq rA, rB icode: ifun + M [PC] rA:rB M [PC + 1] valp](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1698/2/1/1/2216538a59575f5f1698211220407.jpg)
Figures 4.21
![Stage Fetch Decode Execute Memory Write back PC update jXX Dest icode: ifun M [PC] valC+ valp PC+9 Mg[PC + 1]](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1698/2/1/1/2006538a5801ac401698211199072.jpg)
Stage Fetch Decode Execute Memory Write back PC update OPq rA, rB icode: ifun + M [PC] rA:rB M [PC + 1] valp PC+2 valA - R[RA] valB+ R[RB] valEvalB OP valA Set CC R[TB]
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
This code is similar to ... View full answer
Get step-by-step solutions from verified subject matter experts
