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. If \({\left( {z + \frac{1}{z}} \right)^2} = 98\), compute \(\left( {{z^2} + 1/\;{z^2}\;} \right)\)

  2. In the context of measures of surfaces, which one of the following is $not$ correct?
  3. Ratio of the angles of a triangle are 1 : 2 : 6. What is the smallest angle?

  4. Two design consultants, P and Q, started working from 8 AM for a client. The client budgeted a total of USD 3000 for the consultants. P stopped working when the hour hand moved by 210 degrees on the clock. Q stopped working when the hour hand moved by 240 degrees. P took two tea breaks of 15 minutes each during her shift, but took no lunch break. Q took only one lunch break for 20 minutes, but no tea breaks. The market rate for consultants is USD 200 per hour and breaks are not paid. After paying the consultants, the client shall have USD_remaining in the budget.

  5. Leila aspires to buy a car worth Rs. 10,00,000 after 5 years. What is the minimum amount in Rupees that she should deposit now in a bank which offers 10% annual rate of interest, if the interest was compounded annually?

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