Question: Consider the following program: program pipeline 4 a = 1 0 b = 2 0 c = 3 0 d = 4 0 c =

Consider the following program:
program pipeline 4
a=10
b=20
c=30
d=40
c=c-b
d=c+b
d=b+1
a=d-c
end
Compile the code and load it in CPU-OS simulator. Perform the following:
Execute the above program using non-pipelined processor and pipelined processor
and answer the following questions.
Note: Everv time flush the pipeline before running the code
A) Non-pipelined Processor:
To enable non-pipelined processor, check "No instruction pipeline" check box in control panel.
a) How many stages are there in non-pipelined processor? List them.
b) Fill in the following after executing of above program using non-pipelined processor.
c) What are the contents of General-purpose registers after the execution of the program?
B) Pipelined processor:
To use, enable pipelined processor, uncheck "No instruction pipeline" check box in control panel.
a) Fill in the following table with respect to pipelined processor execution of the above program:
b) Is there a way to improve the CPI and Speed up factor? If so give the solution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!