For all the questions try to explain the intermediate steps….

For all the questions try to explain the intermediate steps. Just providing the answer will give you only 1 point for the question. Also even if you do not get the final answer right, showing me the steps will help you to get partial credits, which is more than 1 point. Please use the units properly like picoseconds, nanoseconds etc. as applicable while answering to get full credit. For all the pipeline questions consider a 5-stage pipeline with IF-ID-EX-M-WB unless anything else is explicitly stated in the questions. In case you have any questions please write an email or join the Zoom Call. Also please take your time in answering the questions, please donot rush and read them carefully.    https://psu.zoom.us/j/95910198912?pwd=kHZeRHPl7XvekHS4h6eplcLNmoOy54.1      

For the problems in this exercise, assume that there are no…

For the problems in this exercise, assume that there are no pipeline stalls and that the breakdown of executed instructions is as follows:   add addi nor beq lw j-type(jr/jal) sw 20% 15% 15% 20% 10% 5% 15% (a) In what overall fraction is the data memory used?  (b) In what overall fraction is the instruction memory used? (c) In what overall fraction is the program counter (PC) used? (d) In what overall fraction is the ALU/adder used? (e) In what overall fraction is the sign extension unit used? (Note: sign extension is used when a constant or an address offset is provided inside an I-format instruction in 16-bit format but before working with it we need to convert it a 32-bit constant or address offset)

For the problems in this exercise, assume that there are no…

For the problems in this exercise, assume that there are no pipeline stalls and that the breakdown of executed instructions is as follows:   add addi nor beq lw sw 20% 15% 15% 25% 10% 15% (a) In what overall fraction is the data memory used?  (b) In what overall fraction is the instruction memory used? (c) In what overall fraction is the program counter (PC) used? (d) In what overall fraction is the sign extension unit used? (Note: sign extension is used when a constant or an address offset is provided inside an I-format instruction in 16-bit format but before working with it we need to convert it a 32-bit constant or address offset)

I1: lw $t0, 0($t1) I2: lw $t2, 4($t1) I3: add $s2, $t2, $t3…

I1: lw $t0, 0($t1) I2: lw $t2, 4($t1) I3: add $s2, $t2, $t3 I4: sub $s0, $t0, $t3  (a) In the following instructions point out the hazard(s) if any. Please state the instructions involved in the hazard(s) and why it is a hazard. (consider there are forwarding capabilities present in the hardware) (b) If possible reorder the code to avoid stalls (with forwarding).