Question

You’ve written a program consisting of 1,000 instructions. Based on instruction type, you’ve estimated that the...

You’ve written a program consisting of 1,000 instructions. Based on instruction type, you’ve estimated that the average cycles per instruction is 4. Further, you’ve estimated the average processor cycles per instruction to be 3, the average number of memory references needed per instruction to be 1, and the ratio between memory cycle time and processor cycle time to be 2. If your system clock is operating at 4 MHz, how much time will your processor need to execute your program? Show your work.

Homework Answers

Answer #1

Here, there are two types of cycles are involved which is

i).Processor cycle

Ii).Memory cycle

Each instruction takes 3 processor cycles and 1 memory cycle.

Processor clock time = 1/clock frequency = 1/4 MHz = 0.25 * 10-6 s = 250 * 10-9s = 250ns

Now, memory cycle time/processor cycle time = 2

So, memory cycle time = 250 ns * 2 = 500ns

Execution time required by processor = number of cycles taken by processor * time each processor cycle takes * Number of instructions + number of cycles taken by memory * time each memory cycle takes * number of instructions

Putting all values we get that

Execution time = 3*250ns * 1000 + 1 * 500ns * 1000

= 750 ns * 1000 + 500ns * 1000

= 750 * 103-9 + 500 * 103-9

= 750 * 10-6 + 500 * 10-6

= 0.75 * 10-3 + 0.5 * 10-3

= 0.75 ms + 0.5 ms

= 1.25 ms

Required execution time = 1.25 ms

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
A particular Instruction Set Architecture (ISA) has four classes of instruction: load/store, fixedpoint, floating-point, and branching....
A particular Instruction Set Architecture (ISA) has four classes of instruction: load/store, fixedpoint, floating-point, and branching. Load/store instructions all require 2 clock cycles to execute, fixed-point instructions all execute in one clock cycle, floating-point instructions all require 8 clock cycles to execute, and branch instructions take one clock cycle if the branch is successful and two clock cycles if the branch fails. A program is run on a processor with this ISA and measurements show that 20% of the instructions...
(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...
(a) A uniprocessor system uses a separate instruction and data caches with the hit ratios hi...
(a) A uniprocessor system uses a separate instruction and data caches with the hit ratios hi and hd, respectively. The access time from the processor to either cache is c clock cycles, and the block is transfer time between the caches and main memory is b block cycles. Among all memory references made by the CPU, fi is the percentage of the references to instructions. Among blocks replaced in the data cache, fdir is the percentage of dirty blocks. Assuming...
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...
Atlas Corp is a privately-held firm with an estimated market value-based D/E = 0.22 and a...
Atlas Corp is a privately-held firm with an estimated market value-based D/E = 0.22 and a 6.5% cost of debt capital. The firm’s tax rate is 35%. You have identified a comparable firm that has an equity beta of 2.15, a D/E ratio of 0.80, an expected 7.0% cost of debt, and a 30% marginal corporate tax rate. If the risk- free rate is 4% and the market risk premium is 4.2%, what is your estimate of Atlas’s weighted average...
Please show me how to apply CVP analysis for this case study. FLY ASH BRICK PROJECT:...
Please show me how to apply CVP analysis for this case study. FLY ASH BRICK PROJECT: FEASIBILITY STUDY USING CVP ANALYSIS S. K. Mitra and Shubhra Hajela wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be transmitted, photocopied, digitized or otherwise reproduced in any...
1. What is an ISP (Integrated Service Provider) for supply chains? (1 point) A. A consultant...
1. What is an ISP (Integrated Service Provider) for supply chains? (1 point) A. A consultant agency which integrates the supply chain for companies B. A 2 PL or a 3PL, but not a 4PL C. A company supplying transportation and warehousing services D. A logistics service company specialized in suppling VAS (value added services) 2. What characterizes a 4 PL? (1 point) A. They are non-asset based and provides integrated services primarily supplied by asset based providers, for example...
CASE STUDY – Jacobson Carpet Company In January 2002, Ms. Mary Lewis was preparing to meet...
CASE STUDY – Jacobson Carpet Company In January 2002, Ms. Mary Lewis was preparing to meet with Mr. Carpenter, President of Jacobson Carpet Company. Ms. Lewis assumed that the meeting was related to the recent Board of directors of the company. As a direct assistant to the President, she knew from experience that this type of meeting often resulted in a project to be studied. Her expectation was confirmed as soon as Mr. Carpenter began to inform her of the...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT