Question: Please answer both: 3 . Comment the following assembly code to explain what each line is doing. Then in an equation, express the return value
Please answer both:
Comment the following assembly code to explain what each line is doing. Then in an equation, express the return value v as a function of the input arguments a a newproc:
blt $a $zero, loop
loop:
beq $a $zero, procend
sll $a $a
addi $a $a
j loop
loop:
beq $a $zero, procend
srl $a $a
addi $a $a
j loop
procend:
add $v $a $zero
jr $ra
Consider a simple singlestage processor design ie no pipelining At the start of a cycle, a new instruction enters the processor and is processed completely within a single cycle. It takes ps to navigate all the circuits in a cycle.
a What is the minimum cycle time for this processor, or in other words, the clock speed? What is its CPI, assuming there are no stalls every loadstore instruction finds its instructiondata in the instruction or data cache What is its throughput in billion instructions per second
b The processor is now converted into a stage pipeline. The slowest of these stages takes ps What is the highest possible clock speed now? What is the CPI, again assuming no stalls every loadstore instruction finds its instructiondata in the instruction or data cache, AND there are no stalls from datacontrolstructural hazards What is the throughput of this processor in billion instructions per second and how much is the speedup? How much could it have been at most, and can you comment why this speedup was not achieved hint: not
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
