All Exams Test series for 1 year @ ₹349 only
Question

An application executes $6.4 \times 10^8$ number of instructions in 6.3 seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is ____________ (rounded off to one decimal place)
Instruction typeClock cycles required per
instruction (CPI)
Number of instructions
executed
Branch2$2.25 \times 10^8$
Load5$1.20 \times 10^8$
Store4$1.65 \times 10^8$
Arithmetic3$1.30 \times 10^8$

To determine the duration of a clock cycle in nanoseconds, we need to calculate the total clock cycles and then the clock cycle duration. Follow the steps below:

1. Calculate Total Clock Cycles:
The total clock cycles (\( \text{Total CPI} \)) can be computed by summing up the product of the clock cycles per instruction (CPI) with the number of instructions for each type.
  • Branch: \( 2 \times 2.25 \times 10^8 = 4.5 \times 10^8 \)
  • Load: \( 5 \times 1.20 \times 10^8 = 6.0 \times 10^8 \)
  • Store: \( 4 \times 1.65 \times 10^8 = 6.6 \times 10^8 \)
  • Arithmetic: \( 3 \times 1.30 \times 10^8 = 3.9 \times 10^8 \)

Total CPI = \( 4.5 + 6.0 + 6.6 + 3.9 \) × \( 10^8 = 21.0 \times 10^8 \) clock cycles

2. Compute Clock Cycle Duration:
The duration of a clock cycle (\( T_c \)) can be found using:
\( T_c = \frac{\text{Total Time for Execution in seconds}}{\text{Total Clock Cycles}} \times 10^9 \) (to convert seconds to nanoseconds)
\( T_c = \frac{6.3}{21.0 \times 10^8} \times 10^9 \)
= \( \frac{6.3}{21.0} \times 10 = 0.3 \) nanoseconds

3. Validation:
The computed clock cycle duration of \( 0.3 \) nanoseconds is within the expected range of 3,3, confirming the accuracy.

Therefore, the duration of a clock cycle is 0.3 nanoseconds.
Was this answer helpful?

Important Questions from Numerical Computation

  1. A cube of side 3 units is formed using a set of smaller cubes of side 1 unit. Find the proportion of the number of faces of the smaller cubes visible to those which are NOT visible.

  2. What is the average of all multiples of 10 from 2 to 198?

  3. Ratio of the angles of a triangle are 1 : 2 : 6. What is the smallest angle?

  4. A deposit in a bank, which pays interest on its deposits compounded daily, grows to Rs. 80,000 for 500 days and to 88,000 for 1000 days. What would be its value (in Rs.) for 1500 days?

  5. Among A, B, C and D, there is a lawyer, a doctor, a teacher and a journalist. They drink exactly one each of tea, coffee, lemonade and milk. If neither the lawyer nor the teacher drinks milk, B drinks coffee, A is the teacher and C is the doctor and drinks tea, then which of the following is FALSE?

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App