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

Computer system architecture  Computer system architecture 2. Given the following code: 0x00 addi $1,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!