Question
The lui instruction in the following instruction sequence is fetched in cycle 1 on our pipeline that includes both a data hazard unit and a
The lui instruction in the following instruction sequence is fetched in cycle 1 on our pipeline that includes both a data hazard unit and a forwarding unit. Indicate the total number of clock cycles consumed by this code running on the pipeline. The bltz instruction IS a delayed branch which branches to the instruction with label loop if register $12 contains a value that is less than 0. Explain your answer.
lui $4,0x400C
ori $4, $4, 0x2000
addiu $12, $0, -392
addu $8, $4, $12
nop
loop:
lw $14, 0($8)
lw $16, 400($8)
addu $14, $14, $16
sw $14, 800($8)
addiu $12, $12, 4
bltz $12, loop
addiu $12, $12, 4
xor $12, $12, $12
nop
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