Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following RISC V Code ( use this data for both ( a ) and ( b ) subparts: addi s 0 , zero,
Consider the following RISC V Code use this data for both a and b subparts:
addi s zero,
L:
lw ts
beq t s FD
addi s s
addi s s
bne s zero, L
jal zero, NFD
FD: addi s zero,
NFD: sw ss
Assume that s contains x which is starting
address of an array which consists of words which are
powers of till
eg
xxx
x
Assume s contains x
a Assume that normal stage pipelined processor discussed in class which supports EXtoEX and
MEMtoEX forwarding and Hazard detection, is used to execute the above program. Assume the
processor uses predict nottaken static branch predictor. For each instruction, determine the clock cycle
numbers in which it enters IF ID EX Mem and WB stage. If any instruction does not enter a particular
pipeline stage, then you can mark NA or in the corresponding column. If any instruction is executed
more than once, all the clock cycle numbers in which the instruction enters the pipeline stage should be
mentioned separated by a semicolon. For example, if lw ts instruction enters instruction fetch twice
because of looping once in nd clock cycle and second time in th clock cycle then in the column
corresponding to IF you have to write ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started