Suppose that you are working with a CISC machine using a 1.9 GHz clock (i.e., the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose that you are working with a CISC machine using a 1.9 GHz clock (i.e., the clock ticks 1.9 billion times per second). This particular computer uses MASM-like instructions with the following timings: add reg, mem 7 clock cycles (i.e., the ADD micro-program has 7 instructions) add reg, immed 2 clock cycles loop label. 5 clock cycles Suppose that the following code fragment is used to sum elements of a numeric array. For this problem, assume that memory limitations are non-existent and that there is no limit to the size of the array. mov bx, 0 mov ecx, MAX SIZE mov esi, OFFSET list more: add bx, esi add [esi], 2 loop more ;initialize sum ;initialize loop counter ;initialize array pointer ;add current list element ;move array pointer to next element ;auto-decrement ecx, jump to more if ecx = 0 After initialization, how many array elements can be processed in 3.5 ms? Round your answer to the nearest integer. Note that 1 ms. = 0.001 second. Suppose you have a RISC machine with a 1.8 GHz clock (i.e., the clock ticks 1.8 billion times per second). This particular computer uses an instruction cache, a data cache, an operand fetch unit, and an operand store unit. The instruction set includes simple instructions with the following timings: set reg, immed 3 clock cycle loop label 3 clock cycles add reg, immed 1 clock cycle add reg, reg load reg, mem 3 clock cycles 2 clock cycles Assume that the following code fragment is used to sum the element of a numeric array. If the initialization code has already executed (i.e. the SET instructions have already finished execution) how many array elements can be processed in 3 ms? Round your answer to the nearest integer. Recall that 1 ms = 0.001 seconds. Also assume that there are no physical memory limitations, implying that the array can be as large as desired. set set set more: load add add loop r1, 0 r2, MAX SIZE r3, @list r4, [r3] r1, r4 r3, 4 more ;initialize sum ;initialize loop counter initialize array pointer ;fetch current list element ; add current list element ;move array pointer to next element ;auto-decrement r2, jump to more if r2 = 0 Assume that you are working with the five-stage pipeline shown in the diagram. S1 Instruction fetch unit S2 Instruction decode unit S1: S2: S3: S4: S5: S3 Operand fetch unit 2 3 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 1 S4 Instruction execution unit 2 3 4 5 6 7 1 2 3 4 5 1 2 3 4 000 LO TM 6 5 S5 Write back unit Time- Suppose that each stage requires 2.6 nanoseconds to complete its task. How many nanoseconds would it take to complete 85 instructions without pipelining? Round your answer to the nearest integer. Suppose that you are working with a CISC machine using a 1.9 GHz clock (i.e., the clock ticks 1.9 billion times per second). This particular computer uses MASM-like instructions with the following timings: add reg, mem 7 clock cycles (i.e., the ADD micro-program has 7 instructions) add reg, immed 2 clock cycles loop label. 5 clock cycles Suppose that the following code fragment is used to sum elements of a numeric array. For this problem, assume that memory limitations are non-existent and that there is no limit to the size of the array. mov bx, 0 mov ecx, MAX SIZE mov esi, OFFSET list more: add bx, esi add [esi], 2 loop more ;initialize sum ;initialize loop counter ;initialize array pointer ;add current list element ;move array pointer to next element ;auto-decrement ecx, jump to more if ecx = 0 After initialization, how many array elements can be processed in 3.5 ms? Round your answer to the nearest integer. Note that 1 ms. = 0.001 second. Suppose you have a RISC machine with a 1.8 GHz clock (i.e., the clock ticks 1.8 billion times per second). This particular computer uses an instruction cache, a data cache, an operand fetch unit, and an operand store unit. The instruction set includes simple instructions with the following timings: set reg, immed 3 clock cycle loop label 3 clock cycles add reg, immed 1 clock cycle add reg, reg load reg, mem 3 clock cycles 2 clock cycles Assume that the following code fragment is used to sum the element of a numeric array. If the initialization code has already executed (i.e. the SET instructions have already finished execution) how many array elements can be processed in 3 ms? Round your answer to the nearest integer. Recall that 1 ms = 0.001 seconds. Also assume that there are no physical memory limitations, implying that the array can be as large as desired. set set set more: load add add loop r1, 0 r2, MAX SIZE r3, @list r4, [r3] r1, r4 r3, 4 more ;initialize sum ;initialize loop counter initialize array pointer ;fetch current list element ; add current list element ;move array pointer to next element ;auto-decrement r2, jump to more if r2 = 0 Assume that you are working with the five-stage pipeline shown in the diagram. S1 Instruction fetch unit S2 Instruction decode unit S1: S2: S3: S4: S5: S3 Operand fetch unit 2 3 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 1 S4 Instruction execution unit 2 3 4 5 6 7 1 2 3 4 5 1 2 3 4 000 LO TM 6 5 S5 Write back unit Time- Suppose that each stage requires 2.6 nanoseconds to complete its task. How many nanoseconds would it take to complete 85 instructions without pipelining? Round your answer to the nearest integer.
Expert Answer:
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Hehtoc-yrityksen tuloslaskelma on esitetty alla. Yrityksen valmistuskapasiteetti on 120.000 kpl vuodessa. Myyntituotot 80.000 kpl 20 Myytyjen tuotteiden kustannukset Vlittmt aineet Vlitn ty...
-
Provide the missing information for the following projects using the present value of an annuity function [time value of money (TVM) keys rather than the cash flow (CF) function keys]. Initial Outlay...
-
8% Preferred stock-$10 par value, outstanding 20,000 shares Common stock-$100 par value, outstanding 30,100 shares Retained earnings Novak Company's ledger shows the following balances on December...
-
For starting a centrifugal pump, its delivery valve should be (a) open (b) close (c) partially open (d) any one of the above
-
Peter owns 50% of Air South Corporation, an air charter service. His S corporation stock basis at beginning of the year is $100,000. Air South has not done well this year and will report an ordinary...
-
What do you think you can do in your leadership role to empower others? What is your definition of a servant leader? What are your personal leadership strengths? What roles do you allow fellow staff...
-
Lopez Company reported the following current-year data for its only product. The company uses a periodic inventory system, and its ending inventory consists of 150 units50 from each of the last three...
-
2. A two-echelon distribution network [one central distribution center (X) and two stores A and B)] has 120 units of a product at the central distribution center, and no additional receipts are...
-
Some of the broad strategies to optimize energy efficiency in existing building involve the use of Energy Control Measures (ECMs). Demonstrate and evaluate any THREE (3) Energy Control Measures for...
-
Question 1 (25 Marks) a) Briefly explain what does managerial economics means? b) (5 marks) Why managerial economics is so important in business activities? How does managerial economics can help...
-
Nonfinancial has a greater profit than financial. Manufacturing has the greatest profit with retail trade in second place and transportation and warehousing in last. Durable goods has a greater...
-
Julie Smith is the principal of Frederick High School in Winchester, VA. During the first full week of fall-semester, the Frederick County Sheriffs Department conducts an Active Shooter Emergency...
-
Earnings and Income 1. Imagine two people are identical in all respects. One person, by sheer luck, gets a job in the primary sector while the second gets a job in the secondary sector. Assume they...
-
Cairns owns 70 percent of the voting stock of Hamilton, Inc. The parent's interest was acquired several years ago on the date that the subsidiary was formed. Consequently, no goodvwill or other...
-
Use the method of Example 4.29 to compute the indicated power of the matrix. 1 0 1
-
Using the MDIFF "ordered analytical function" in Teradata SQL (see the Functions and Operators manual), show the differences (label the difference CHANGE) in TOTAL (which you calculated in the...
-
Consider the following two relations for Millennium College: Following is a typical query against these relations: a. On what attributes should indexes be defined to speed up this query? Give the...
-
SQU2006 and SQL:2008 introduced a new keyword, MERGE. Explain how using this keyword allows one to accomplish updating and merging data into a table using one command rather than two.
-
What are the numbers of observations in each of the five categories that rate the respondents level of job satisfaction?
-
Which of the seven store departments had the most customer visits, and what was this number?
-
What proportion of the 26,280 individuals are in each of the five categories?
Study smarter with the SolutionInn App