Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4 . 1 5 lw is the instruction with the longest latency on the CPU from Section 4 . 4 . If we modified lw
lw is the instruction with the longest latency on the CPU from
Section If we modified lw and sw so that there was no offset ie the
address to be loaded fromstored to must be calculated and placed in rs
before calling lwsw then no instruction would use both the ALU and
Data memory. This would allow us to reduce the clock cycle time.
However, it would also increase the number of instructions, because
many ld and sd instructions would need to be replaced with lwadd or
swadd combinations.
What would the new clock cycle time be
Would a program with the instruction mix
presented in Exercise run faster or slower on this new CPU? By
how much? For simplicity, assume every lw and sw instruction is
replaced with a sequence of two instructions.
What is the primary factor that influences whether
a program will run faster or slower on the new CPU?
Do you consider the original CPU as shown in
Figure a be
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