A RISC processor executes the following code. There are data dependencies but no internal forwarding. A source operand cannot be used until it has been written.

ADD r0,r1,r2
ADD r3,r0,r4
ADD r5,r3,r6
ADD r7,r0,r8
ADD r9,r0,r3
ADD r0,r1,r3

a. Assuming a 4?stage pipeline: fetch, operand fetch, execute, result write, what registers are being read during
the 10th clock cycle and what register is being written?
b. How long will it take to execute the entire sequence?






a. In the 10th cycle registers r0 and r3 are being read and register r5 is being written.



b. It takes 13 cycles to complete the sequence.

Computer Science & Information Technology

You might also like to view...

One way to identify a particular digital item (which is represented as a collection of bits) is by means of a cryptographic ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What is the escape sequence for newline?

A. \n B. /n C. \l D. /l

Computer Science & Information Technology

Compare video monitoring and IP cameras/CCTV.

What will be an ideal response?

Computer Science & Information Technology

Which of the following questions should be answered when an internet service provider is chosen to host a website?

A. ?What is the difference between a website's home page and a web browser's home page? B. ?How many webpages will be included in the website? C. ?What is the total cost? D. ?How to insert symbols that are not included in the autocorrect list?

Computer Science & Information Technology