Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Only part b is required 1. The function F is defined as F(1) F(2) F(3) 1 and for n 2 3, F(n 1 F(n) (F(n1+F(n

Only part b is required

image text in transcribed

1. The function F is defined as F(1) F(2) F(3) 1 and for n 2 3, F(n 1 F(n) (F(n1+F(n -2)) i.e., the (n +1)th value is given by the product of the nth value and the sum of the (n 1)th and (n -2)th values. (a) Write an assembly program for computing the kth value F(k), where k is an integer bigger than 3 read from a memory location M, and storing F(k) at memory location M. Use the instruction set in the Instruction Set Architecture document (b) Consider a pipelined processor, where the pipeline stages are F (fetch), D (decode), R (register read), E (execute) and W (write back). Describe what happens in the pipeline stages for the var- ious types (data movement, data processing, control) of instruc- tions. c)Show the execution of your program on the above pipelined pro- cessor for k-5 by drawing a diagram. Assume that the fetched and decoded instructions are stored in an instruction window IW with a capacity of 12 instructions, and that there is no resource conflict between fetching instructions and executing data transfer instructions. Explain where and why delay slots appear. 1. The function F is defined as F(1) F(2) F(3) 1 and for n 2 3, F(n 1 F(n) (F(n1+F(n -2)) i.e., the (n +1)th value is given by the product of the nth value and the sum of the (n 1)th and (n -2)th values. (a) Write an assembly program for computing the kth value F(k), where k is an integer bigger than 3 read from a memory location M, and storing F(k) at memory location M. Use the instruction set in the Instruction Set Architecture document (b) Consider a pipelined processor, where the pipeline stages are F (fetch), D (decode), R (register read), E (execute) and W (write back). Describe what happens in the pipeline stages for the var- ious types (data movement, data processing, control) of instruc- tions. c)Show the execution of your program on the above pipelined pro- cessor for k-5 by drawing a diagram. Assume that the fetched and decoded instructions are stored in an instruction window IW with a capacity of 12 instructions, and that there is no resource conflict between fetching instructions and executing data transfer instructions. Explain where and why delay slots appear

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago