Question: Computer system architecture 2. Given the following code: 0x00 addi $1, 0x200 0x04 lw $2, $1 0x08 sub $3, $2, $1 0x0c sw $3, 0x200
2. Given the following code: 0x00 addi $1, 0x200 0x04 lw $2, $1 0x08 sub $3, $2, $1 0x0c sw $3, 0x200 (a) Re-write this code and insert NOPs to remove jump/branch hazards and data depencies. (b) Using the pipeline ladder, determine the number of cycles it will take to execute this code. (c) What is the status of the pipelined CPU in cycle 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
