Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 4 Consider the following code 1 w $ 6 , 0 ( $ 4 ) lw $ 4 , 5 ( $ 7 )

14 Consider the following code
1w$6,0($4)
lw $4,5($7)
beq $6,$5, label //assume branch is not taken
sub $7,$6,$2
sw $7,8($6)
label: sub $6,$7,$6
a. How many clock cycles does it take to execute the code if it is multi cycle
execution?
b. How many clock cycles does it take to execute the code if it is pipelined execution?
c. In which clock cycle does actual subtraction of $3,$2 takes place in case of multi
cycle execution?
d. In which clock cycle branch target address is calculated in case of multi-cycle
execution?
e. What happens during 8th clock cycle in case of multi-cycle execution?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions