Question: The register signal srcB indicates which register should be read to generate the signal valB. The desired value is shown as the second step in
The register signal srcB indicates which register should be read to generate the signal valB. The desired value is shown as the second step in the decode stage in Figures 4.18 to 4.21. Write HCL code for srcB.
Figures 4.18
![Stage Fetch Decode Execute Memory Write back PC update OPq rA, rB icode: ifun rA:B M [PC] M [PC + 1] valp](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1698/2/1/0/9066538a45a621c91698210905153.jpg)
Figures 4.21
![Stage Fetch Decode Execute Memory Write back PC update jXX Dest icode: ifun - M[PC] valC+ Mg[PC + 1] valp](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1698/2/1/0/9276538a46fc07be1698210926742.jpg)
Stage Fetch Decode Execute Memory Write back PC update OPq rA, rB icode: ifun rA:B M [PC] M [PC + 1] valp - PC+2 valA - R[rA] valB R[TB] valEvalB OP valA Set CC R[rB] valE PC - valP rrmov rA, rB icode:ifun M[PC] rA:rB M[PC + 1] valp PC+2 valA - R[rA] valE - R[RB] 0 + valA valE PC - valP irmovq V, rB icode: ifun - M[PC] rA:rB M[PC + 1] valc Mg[PC + 2] valp PC + 10 valE + 0 + valC R[TB] PC valE valp
Step by Step Solution
3.33 Rating (159 Votes )
There are 3 Steps involved in it
This code is similar to the cod... View full answer
Get step-by-step solutions from verified subject matter experts
