Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) Consider a hypothetical four stage processor where the stages are defined as: sl, s2, 53, 4. Each stage requires 1 cycle to complete. Suppose

image text in transcribed
a) Consider a hypothetical four stage processor where the stages are defined as: sl, s2, 53, 4. Each stage requires 1 cycle to complete. Suppose a program consisting of 300 instructions, is executed on this 4-stage processor. i) Draw the timing diagram showing the execution of the first four instructions, considering that the program is running on without pipelining, 14 marks) ii) Draw the timing diagram showing the execution of the first four instructions, considering that the program is running with ideal pipelining. Assume that there is no pipeline hazards and dependencies. 14 marks] 1) Compute the execution time of the program without pipelining and with pipelining (no dependencies), and compare the performance improvement for ideal pipelining. 14 marks! iv) Consider that the program is running with pipelining, but there are some dependencies. Each instruction is dependent on a specific stage of the instruction immediately before it, particularly stage 52 of cach instruction is dependent on stage 3 of the instruction immediately before it. That is: stage s2 of instruction two is dependent on stage s3 of instruction one, stage s2 of instruction three is dependent on stage 53 of instruction two and so on... To address the hazard created by the dependencies assume that the pipeline will be stalled until the hazard is cleared. No forwarding or other options are available to avoid the hazard. Draw the pipeline timing diagram showing the execution of the first four instructions. Indicate the stall (wherever required) by using a "x" in the corresponding pipeline stage 14 marks] Use the observations from this timing diagram to determine the cycle per instruction (CPI). Show your working 14 marks

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

Repeat Exercise 23 for the integral 11 4 x3 dx.

Answered: 1 week ago

Question

What impresses you the most?

Answered: 1 week ago

Question

What is Indian Polity and Governance ?

Answered: 1 week ago

Question

2. How will the team select a leader?

Answered: 1 week ago