Question

In: Computer Science

. In this exercise we will evaluate the performance difference between two CPU architectures: CISC (Complex...

. In this exercise we will evaluate the performance difference between two CPU architectures: CISC (Complex Instruction Set Computing) and RISC (Reduced Instruction Set Computing). Generally speaking, CISC CPUs have more complex instructions than RISC CPUs and therefore need fewer instructions to perform the same tasks. However, typically one CISC instruction, since it is more complex, takes more time to complete than a RISC instruction. Assume that a certain task needs P CISC instructions and 2P RISC instructions, and that one CISC instruction takes 8T ns to complete, and one RISC instruction take 2T ns.

a: Under this assumption, calculate the time that the CISC CPU will take to complete the task?

b: Calculate the time that the RISC CPU will take to complete the task?

c: Which CPU would complete the task faster?

d: By what percentage should the clock frequency of the slower CPU change to catch up with the faster CPU for this task?

Solutions

Expert Solution

The solution for the given problem is provided below and if you feel any problem, feel free to ask:

Solution:- Given: P CISC instructions and 2P RISC instructions. Time for completion of one instruction for CISC is 8T ns and for RISC is 2T ns.

a. For the time(Tc) that CISC CPU will take to complete the task.

⇒ Tc = number of instruction in task * time to complete one instruction

⇒ Tc = P*8T

⇒ Tc = 8PT

b. For the time(Tr) that RISC CPU will take to complete the task.

⇒ Tr = number of instruction in task * time to complete one instruction

⇒ Tr = 2P * 2T

⇒ Tr = 4PT

c. From the above two parts, that are, part (a) and part(b) we get that the time for completion of the task in CISC CPU is 8TP and in RISC CPU it is 4PT. On comparing both times, the RISC CPU take less time to complete the task and will complete the task faster than the given CISC CPU.

d. The performance equation tells the complete time for the task to complete, to know how much you have to increase the clock frequency you can use the same formula of performance equation with required performance. Required performance(Rp) = 4PT, per instruction time = 8T and, number of instructions = P.

Rp = Number of instructions*time per instruction/clock frequency

⇒ 4PT = P*8T/Cf          (taking the clock frequency as Cf)

⇒ 4PT = 8PT/Cf

⇒ Cf = 8PT/4PT

⇒ Cf = 2

Hence, you have to double the clock frequency of the slower CPU to match the clock frequency of the slower CPU with the faster CPU for this task.

In terms of percentage you have to increase the clock frequency of slower CPU by 100% which results in the doubling of value and the clock frequency becomes 2x(or 200%) of the previous frequency.


Related Solutions

difference between performance assesment and performance appraisal
difference between performance assesment and performance appraisal
Explain the major differences between two-tier and three-tier database architectures.
Explain the major differences between two-tier and three-tier database architectures.
a man Whitney test is used to evaluate the difference between two treatments, with a sample...
a man Whitney test is used to evaluate the difference between two treatments, with a sample of n=10 participants in each treatment. using a two tailed test with a=.05, what value of U is necessary to conclude that there is a significant difference between between treatments
Two samples each with n= 15 individuals are used to evaluate the difference between two treatment...
Two samples each with n= 15 individuals are used to evaluate the difference between two treatment conditions. If the researcher uses a two-tailed test with α = .05, then the critical region for the t statistic begins at _________? a. t = + 2.145 b. t = + 2.131 c. t = + 2.048 d. t = + 2.045
Explain the difference between the CPU and I/O cycles that make up a program. Can a...
Explain the difference between the CPU and I/O cycles that make up a program. Can a process run during an I/O cycle? Explain how the Process Control Block (PCB) is used to manage a process within the system.
We wish to test whether or not there is a difference between two of our production...
We wish to test whether or not there is a difference between two of our production lines in terms of the defect rate. We examine 400 products on Line A and find that 40% are defective, whereas we examine 100 products on Line B and find that 20% are defective. What is the appropriate test statistic here?
Exercise #3 python Write a program that could evaluate the relationship between two values. User is...
Exercise #3 python Write a program that could evaluate the relationship between two values. User is to key in the two values, and it will be stored in variable, num1 and num2. The program will do a comparison between the two values. If num1 is greater than num2, a message will be display on screen to indicate that num1 is greater than num2. The program will also display appropriate messages when num2 is greater than num1; and num1 is equal...
Phyton Exercise 3 Write a program that could evaluate the relationship between two values. User is...
Phyton Exercise 3 Write a program that could evaluate the relationship between two values. User is to key in the two values, and it will be stored in variable, num1 and num2. The program will do a comparison between the two values. If num1 is greater than num2, a message will be display on screen to indicate that num1 is greater than num2. The program will also display appropriate messages when num2 is greater than num1; and num1 is equal...
INTERNET OF THINGS (IOT) 23. Explain the difference between the three different levels of virtualisation: CPU...
INTERNET OF THINGS (IOT) 23. Explain the difference between the three different levels of virtualisation: CPU Instruction Set level, Hardware Abstraction Layer (HAL) level, and Operating System level.
To evaluate competitive advantage, we must be able to assess the firm's performance -- are they...
To evaluate competitive advantage, we must be able to assess the firm's performance -- are they financially successful? Choose a publicly traded company(Microsoft, Amazon etc).For this company and the company's main competitor create a Table/Chart AND a graph in Excel reporting the following information for 2016-2018 : Gross Revenues (sales), Gross Profits, Net Profits, Net Profit Margin and Stock Price.   In addition to the table and a graph, write a 1 or 2 paragraph summary of it's financial health. Calculate...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT