Question

In: Electrical Engineering

A computer architect needs to design the pipeline of a new microprocessor. She has an example...

A computer architect needs to design the pipeline of a new microprocessor. She has an example program with 5x10^7 instructions. Each instruction takes 8ns to finish.

a. How long does it take to execute this program on a non-pipelined processor?

b. The current state-of-the-art microprocessor has about 12 pipeline stages. Assume it is perfectly pipelined. How much speedup will it achieve compared to the non-pipelined processor?

c. Real pipelining isn’t perfect since implementing pipelining introduces some overhead per pipeline stage. Will this overhead affect instruction latency, instruction throughput, or both?

Solutions

Expert Solution

Given that the number of instructions in the example program = 5*10^7 instructions.

Time taken by each instruction = 8ns

a) In non pipelined processors each instruction starts executing after previous instruction completes. So it takes time of (total instruction count*8ns) i.e., 5*10^7*8ns = 2/5 sec = 0.4 sec.

So in non pipelined processor it takes 0.4sec to execute all instructions.

b) It is a pipelined processor and has 12pipeline stages. Also stated that it is perfectly pipelined.

For the first instruction only it takes 8 ns. From next onwards each takes (8/12) ns i.e., 0.666ns.

So the total time taken is 8ns +[(instruction count -1) *0.666]ns.

8ns + [(5*10^7 - 1) *0.666]ns = 0.0333 sec.

So in pipelined processing it takes 0.0333sec to execute all instructions.

Speedup is the number of times it is faster. It is given by 0.4/0.0333 = 11.999~= 12.

It is 12 times faster compared to non pipelined processor.

C) The overheads occur in pipelining affects both latency and throughput. The instruction may need to take more stages hence latency is affected. Also the time taken between any two instructions to execute may vary as a result. So throughput is also affected. Hence both are affected due to overheads occur in pipelining.


Related Solutions

The lead architect on the design team of a new skyscraper decides that the outer surface...
The lead architect on the design team of a new skyscraper decides that the outer surface of the building’s windows need to be coated with a reflective layer in order to lower airconditioning costs. MgF2 is chosen for the reflective layer, which has a refractive index n=1.38. Assume that the refractive index of the window glass is 1.5 and that the reflective coating should work optimally at the peak of the sunlight spectrum, 500 nm. Part A) What is the...
In evaluating a proposed design of a new condominium next to the ocean, the architect wants...
In evaluating a proposed design of a new condominium next to the ocean, the architect wants to know if residents will want bay windows instead of balconies. It is known that the winds in the area are normally distributed with a mean of 25 km/hr. A coefficient of variation is also reported as 1. Generally, residents do not sit on the balcony if winds are in excess of 30 km/hr. a) What proportion of the time would it be desirable...
An individual has a nice project of a new product, but needs money for that. She can only produce if she raises the amount
An individual has a nice project of a new product, but needs money for that.She can only produce if she raises the amount of money required (noted "K")She has the possibility of raising K if she participates on a given program (let's say, a government program).The probability of raising K through this money is p.However, to participate on this program, she needs to incur some costs c < K.The problem is that there is a probability (1 - p) that...
Allison is a system analyst; she needs to ensure to create a system design which is...
Allison is a system analyst; she needs to ensure to create a system design which is flexible and adaptable. The better the system design the more cost can be saved in the future. X is performed most often to improve the existing software rather than respond to a crisis or a system failure. Identify X. State and explain in details the practice of X.
1. A computer manager needs to know how efficiency of her new computer program depends on...
1. A computer manager needs to know how efficiency of her new computer program depends on the size of incoming data. Efficiency will be measured by the number of processed requests per hour. Applying the program to data sets of different sizes, she obtains the following results, Data size (gigabytes) 6 7 7 8 10 10 15 Processed requests 40 55 50 41 17 26 16 Draw the scatterplot for the data. Be sure to label your axes. Is there...
design a relational database to cater for the needs of the new bookshop owner as described...
design a relational database to cater for the needs of the new bookshop owner as described in the first question giving examples of tables, attributes, primary and foreign keys. you may assume that suppliers' orders contain more than one line
A politician wants to open a new park in the middle of town. She needs to...
A politician wants to open a new park in the middle of town. She needs to make sure that the local community supports the plan. A nearby town recently found that 60% of the community supported a similar plan and she believes that the same proportion will support it in her district. She takes a random survey of 40 people and find that the 10 people are supportive of her plan. She wants to be certain that this is not...
A marketing director needs to estimate the demand for a new product and she obtains the...
A marketing director needs to estimate the demand for a new product and she obtains the pessimistic, the optimistic and the most likely estimates of the demand from the company's store manager. What probability distribution should be used to describe this random variable in computer simulation? Uniform distribution Triangular distribution Exponential distribution Normal distribution Binomial distribution QUESTION Which of the following statements is true with regard to uncertain variables in RSPE software? Each uncertain variable must have a discrete probability...
Nodhead College needs a new computer. It can either buy it for $320,000 or lease it...
Nodhead College needs a new computer. It can either buy it for $320,000 or lease it from Compulease. The lease terms require Nodhead to make six annual payments (prepaid) of $76,000. Nodhead pays no tax. Compulease pays tax at 40%. Compulease can depreciate the computer for tax purposes straight-line over five years. The computer will have no residual value at the end of year 5. The interest rate is 6%. a. What is the NPV of the lease for Nodhead...
Nodhead College needs a new computer. It can either buy it for $250,000 or lease it...
Nodhead College needs a new computer. It can either buy it for $250,000 or lease it from Compulease. The lease terms require Nodhead to make six annual payments (prepaid) of $62,000. Nodhead pays no tax. Compulease pays tax at 35%. Compulease can depreciate the computer for tax purposes using 5-year MACRS. The computer will have no residual value at the end of year 5. The interest rate is 8%. a. What is the NPV of the lease for Nodhead College?...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT