Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume the pipeline architecture of Figure 1 with floating point instructions following thepipeline of Figure 2 . Let all memory accesses be zero - wait

Assume the pipeline architecture of Figure 1 with floating point instructions following thepipeline of Figure 2. Let all memory accesses be zero-wait state and assume that half cycleclocking is available for communicating results between general purpose registers during theWB and ID cycles. The units marked `ADD' will perform both addition and subtractionwhereas the `ALU' unit also supports logical operands.All questions refer to the code of Table 1 in which the initial value for register R4 is R2+792. Note that Rx denotes an integer register and Fx a floating point register.1. Compose a pipeline-timing diagram for the case of the code from Table 1 and dataow of Figure 1(illustrate the first two loops of execution). There is no forwarding orbranch delay slot.(a) How many clock cycles are necessary to complete execution of all the code associated with a single loop?(b) On which clock cycle does the second loop commence?(c) How many clock cycles are executed before the last loop completes execution?2. Now assume that forwarding is available. Compose a pipeline-timing diagram for thisscenario and answer the following questions:(a) How many clock cycles are necessary to complete execution of all the code associated with a single loop?(b) On which clock cycle does the second loop commence?(c) How many clock cycles are executed before the last loop completes execution?3. Now assume that both forwarding and a branch delay slot is available. In order tomake use of the branch delay slot you may reorder the instructions, but cannot changeany operands or opcodes. Compose a pipeline-timing diagram for this scenario andanswer the following questions:(a) How many clock cycles are necessary to complete execution of all the code associated with a single loop?(b) On which clock cycle does the second loop commence?(c) How many clock cycles are executed before the last loop completes execution?Please make sure for the diagram that you take the instructions as columns and clock cycles as rows
image text in transcribed

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions