Question: A RISC processor executes the following code. There are no data dependencies. ADD r0,r1,r2 ADD r3,r4,r5 ADD r6,r7,r8 ADD r9,r10,r11 ADD r12,r13,r14 ADD r15,r16,r17 a.
A RISC processor executes the following code. There are no data dependencies. ADD r0,r1,r2 ADD r3,r4,r5 ADD r6,r7,r8 ADD r9,r10,r11 ADD r12,r13,r14 ADD r15,r16,r17 a. Assuming a four-stage pipeline (fetch, operand fetch, execute, and write) what registers are being read during the sixth clock cycle and what regis- ter is being written? b. Assuming a five-stage pipeline (fetch, operand fetch, execute, write, and store) what registers are being read during the sixth clock cycle and what register is being written?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
