Question

Machine M has a clock whose period is 4 nanoseconds and three types of instructions –...

Machine M has a clock whose period is 4 nanoseconds and three types of instructions – type A instructions that take 4 cycles to execute, type B instructions that take 4 clock cycles to execute, and type C instructions that take 2 clock cycles to execute. Program P consists of 30 instructions of type A, 25 instructions of type B, and 50 instructions of type C. What is the execution time of program P?

Homework Answers

Answer #1

Number of cycles required to execute program P = number of instructions of type A * number of cycles required to complete 1 A instruction + number of instructions of type B * number of cycles required to complete 1 B instruction + number of instructions of type C * number of cycles required to complete 1 C instruction

= 30 * 4 + 25 * 4 + 50*2

= 120 + 100 + 100

= 320 cycles

Required execution time = Number of cycles required to execute program P * 1 cycle time

= 320 * 4 ns

= 1280 ns

= 1280 * 10-9 s

= 1.280 microseconds

So, execution time of program P = 1280ns = 1.28 microseconds

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
(Pipelining) Given 3 different instruction types, A, B and C. Each type-A, B, and C instruction...
(Pipelining) Given 3 different instruction types, A, B and C. Each type-A, B, and C instruction takes 40ns, 25ns and 50ns to complete, respectively. An assembly program is written with 30 type-A, 40 type-B and 20 type-C instructions. (a). Assume a single-issue not pipelined processor, how much time (in nano-seconds) is required to complete the execution of this program? (10pts) (b). Now let us pipeline these instructions based on a cycle time of 10ns. To pipeline these instructions equally and...
Consider a program having following sequence of instructions, where the syntax consists of an opcode followed...
Consider a program having following sequence of instructions, where the syntax consists of an opcode followed by the destination register followed by one or two source registers: Instruction no Instructions 1 ADD R3, R1, R2 2 LOAD R6, [R3] 3 AND R7, R5, 3 4 ADD R1, R6, R0 5 SUB R2, R1, R6 6 AND R3, R7, 15 7 SUB R5, R3, R4 8 ADD R0, R1, R10 9 LOAD R6, [R5] 10 SRL R7, R0, 8 Assume the...
A program has a total of 10 million instructions. The instructions are divided into 3      ...
A program has a total of 10 million instructions. The instructions are divided into 3       classes . The CPI and the frequency of occurrence of each class is as given below                               Class           CPI        Frequency                                 A                 1               50%                                 B                 3               30%                                 C                 5               20% What should be the minimum clock frequency to execute the program in no more than 20 milliseconds?   
A certain program consists of three independent parts A, B and C that can execute in...
A certain program consists of three independent parts A, B and C that can execute in parallel on separate processors within a multiprocessor system. None of the parts can be further subdivided and each part must execute on a single processor. Part A requires 78 billion cycles to complete, part B requires 40 billion cycles to complete and part C requires 62 billion cycles. The program is executed on an SMP system with 4 identical processors all running at the...
Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a...
Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 2.5 GHz clock rate and a CPI of 1.25. P2 has a 3 GHz clock rate and a CPI of 1.6. P3 has a 4.0 GHz clock rate and has unknown CPI. a. (5 points) Compare the performance of P1 and P2 in terms of number of instructions they can execute per second. b. (5 points) Program X is executed by P1 in 20...
4) Happy Pharmaceuticals produces three products using one machine. The machine has a total capacity of...
4) Happy Pharmaceuticals produces three products using one machine. The machine has a total capacity of 200 machine hours. Data for each product is as follows:   Product Sales price per unit Variable cost per unit Machine hours per unit Market demand (units per week) A $17 $13 1 150 B $25 $20 5 50 C $2 $1 0.5 200 a. How many units of product C should the firm produce? b. What is the maximum contribution margin the firm can...
A construction company has three choices of the type of machine to be used for their...
A construction company has three choices of the type of machine to be used for their project (interest rate is 7% for all options). The choices are as following: a. Machine sold by manufacturer A- This machine has an initial cost of $750,000, Salvage value of 100,000 sold after 50 years, and the variable cost of $55 per hour and maintenance cost of $4 per hour of usage. b. Machine sold by manufacturer B- This machine has an initial cost...
A construction company has three choices of the type of machine to be used for their...
A construction company has three choices of the type of machine to be used for their project (interest rate is 7% for all options). Which Manufacturer should this company choose? (Show calculations and draw graphical representation)The choices are as following: a. Machine sold by manufacturer A- This machine has an initial cost of $750,000, Salvage value of 100,000 sold after 50 years, and the variable cost of $55 per hour and maintenance cost of $4 per hour of usage. b....
Kwinana Ltd makes three types of products, the details of which are as follows: Product CT101...
Kwinana Ltd makes three types of products, the details of which are as follows: Product CT101 CT151 CT350 Selling price per unit ($) 25 20 23 Variable cost per unit ($) (10) (8) (12) Weekly demand (units) 25 20 30 Machine time required per unit (hours) 4 3 4 Fixed cost is not affected by the choice of product because all three products use the same machine. Machine time is limited to 148 hours a week. Required:                                                                                                                          a) Which combination...
A company has sales of GH₵ 1,000. The company sells three types of goods. Sixty percent...
A company has sales of GH₵ 1,000. The company sells three types of goods. Sixty percent of sales are of type A which is sold at a mark-up of 20%. Type B goods are sold at a margin of 30%. The cost of type B sold in the year was GH₵ 154 and total gross profit for the year was GH₵ 184. What this the total sales for type C? A company has sales of GH₵ 1,000. The company sells...