Question
Find the number of clock cycles required to execute the instruction sequence given below if the system given in Figure 4.62 of the textbook is
Find the number of clock cycles required to execute the instruction sequence given below if the system given in Figure 4.62 of the textbook is used. Assume branch BEQ is taken. (20 points)
add $3, $1, $2
or $4, $2, $3
beq $1, $2, 2 (Note: 2 is the offset of the BEQ )
and $1, $4, $2
slt $2, $1, $5
lw $12, 0($18)
sw $12, 4($18)
Find the number of clock cycles required to execute the instruction with register forwarding? Justify your answer
add $3, $1, $2
or $4, $2, $3
and $1, $4, $2
slt $2, $1, $5
lw $2, 100($1)
add $3, $1, $2
lw $4, 100($2)
and $1, $4, $2
slt $2, $1, $5
How many clock cycles are required to execute the instructions on the given datapat
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