Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2: (a) Assume the usage of 5-stage instruction pipelining Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory (MEM), Write Back (WB) with a

image text in transcribedimage text in transcribed

QUESTION 2: (a) Assume the usage of 5-stage instruction pipelining Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory (MEM), Write Back (WB) with a program consisting of 1000 instructions. Assume that clock cycle per instruction is 1 time unit. Answer the following: 1) Assume the usage of ideal pipelining without any hazards, how many time units will be needed to complete all the 1000 instructions. (1 mark) i) If pipelining is not used, how many time units will be required to execute these 1000 instructions. (1 mark) iii) What is the speedup factor on the usage of pipelining for these 1000 instructions. (1 mark) (b) Identify the type of data hazard possible in the following instructions in a hypothetical computer and explain the reason. ADD R2,R1,R3 SUB R4, R2,R4 (2 marks) (c) Assume that the following instruction has to be executed in a hypothetical computer. SUB RI, [X] X is a indirect memory address which contains the address of data. This instruction is available in memory location Y. (d) Assume that in a multiprocessing environment, data X is available in main memory. If this data is brought into local cache memory of three processors (P1,P2,P3), briefly explain how the cache coherence problem can occur with an illustration. (2 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

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions