Advance computer Architecture

error free

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

ECE/CS 466 – Advanced Computer Architecture

Spring 2021
Homework # 3

Q1. Use the following code fragment:

Loop: lw x7, 0(x1)
lw x8, 0(x2)
add x5, x7, x8
sw x5, 0(x2)
addi x1, x1, 4
addi x2, x2, 4
sub x6, x3, x2
bnez x6, Loop

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Assume that the initial value of x3 is x2 + 256.

Assume early evaluation of branch instruction, i.e., the branch outcome (whether the condition is
true or false and where is the next instruction) is known after the Decode stage., but the branch
instruction will still go through all the five pipeline stages.

For both Q1(a) and Q1(b), assume that the branch is handled by predicting it as not taken, i.e. the
next instruction in program sequence is fetched, which is a wrong instruction except for the last
iteration and will be flushed after the branch outcome is known.

(a) [3 pts] Show the timing of this instruction sequence for the 5-stage RISC pipeline without any
forwarding or bypassing hardware but assuming that a register read and a write in the same clock
cycle “forwards” through the register file, as between the add and or shown in Figure C.5. Use a
pipeline timing chart like that in Figure C.8. If all memory references take 1 cycle, how many
cycles does this loop take to execute?

(b) [3 pts] Show the timing of this instruction sequence for the 5-stage RISC pipeline with full
forwarding and bypassing hardware. Use a pipeline timing chart like that shown in Figure C.8. If
all memory references take 1 cycle, how many cycles does this loop take to execute?

Q2. We begin with a computer implemented in single-cycle implementation. When the stages are
split by functionality, the stages do not require exactly the same amount of time. The original
machine had a clock cycle time of 8 ns. After the stages were split, the measured times were IF, 1
ns; ID, 2 ns; EX, 1 ns; MEM, 2 ns; and WB, 2 ns. The pipeline register delay is 0.05 ns.

(a) [1 pt] What is the clock cycle time of the 5-stage pipelined machine?
(b) [1 pt] If there is a stall every four instructions, what is the CPI of the new machine?
(c) [1 pt] What is the speedup of the pipelined machine over the single-cycle machine?
(d) [1 pt] If the pipelined machine had an infinite number of stages, what would its speedup be
over the single-cycle machine?

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.

Order your essay today and save 30% with the discount code ESSAYHELP