版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
-
Step 1 of 3 Refer to Figure 4.2 of the chapter 4 of the textbook.
Comment -
Step 2 of 3 The instruction is: LWI Rt, Rd(Rs)
Its interpretation is: Reg[Rt] = Mem[Reg[Rd] + Reg[Rs]]
• The given instruction accesses the content of the Register file and also writes to the Register file. So, the Registers block is required for these operations.
• The instruction performs the addition of the two offset, so, for the addition purpose, ALU block is required.
• The instruction also needs to fetch the content from the memory and write it to the register. For this purpose, Data memory block is required.
Comment -
Step 3 of 3 Hence, the existing blocks that can be used with this instruction are: Registers, ALU and Data memory.
Comments (1)