Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. Suppose a non-pipelined processor requires 5 clock pulses to complete a register access instruction and 14 clock pulses to complete a memory access instruction.

a. Suppose a non-pipelined processor requires 5 clock pulses to complete a register access instruction and 14 clock pulses to complete a memory access instruction. If this processor executes 200 register access instructions and 100 memory access instructions, how many clock pulses are required to complete these 300 instructions, and what will be the clocks per instruction (CPI) of these 30 instructions?

b. Consider the following two processors: a 5-stage pipelined processor where each stage completes in 1 clock pulse, and a non-pipelined processor where each instruction completes in 5 clock pulses. A single instruction requires 5 clock pulses to complete on either processor. Briefly explain how the use a pipeline offers a performance benefit.

c. Briefly explain how a pipeline can introduce Read After Write (RAW) hazards, and briefly explain how register forwarding may resolve RAW hazards in a pipeline.

d. Briefly describe what an atomic swap operation does and how it can be used to synchronize multiple processors.

e. Briefly explain how a write-invalidate protocol enforces cache coherence among multiple processors with shared memory.

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions