Question: Looking at the memory operations for the different instructions shown in Figures 4.18 to 4.21, we can see that the data for memory writes are
Looking at the memory operations for the different instructions shown in Figures 4.18 to 4.21, we can see that the data for memory writes are always either valA or valP. Write HCL code for the signal mem_data in SEQ.
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/1/9446538a86857a9f1698211943205.jpg)
Figures 4.21
![Stage Fetch Decode Execute Memory Write back PC update JXX Dest icode: ifun M[PC] valc Mg[PC + 1] valp PC +9](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1698/2/1/1/9286538a858e1bc71698211927596.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 rrmovq 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 valp Mg[PC + 2] PC + 10 valE + 0 + valC R[TB] valE PC- valP
Step by Step Solution
3.40 Rating (162 Votes )
There are 3 Steps involved in it
This code is similar to the code f... View full answer
Get step-by-step solutions from verified subject matter experts
