Question

In: Computer Science

1.   The goal of scalar processing is to produce, on average, the execution of one instruction...

1.   The goal of scalar processing is to produce, on average, the execution of one instruction per clock tick.

•   If the clock ticks at a rate of 2 GHz, how many instructions per second can this computer execute?

•   How many instructions would a 2 GHz superscalar processor that processes three instructions per clock cycle execute?


2.   Suppose we are trying to determine the speed of a computer that executes the Little Man instruction set. The LOAD and STORE instructions each make up about 25% of the instructions in a typical program; ADD, SUBTRACT, IN, and OUT take 10% each. The various branches each take about 5%. The HALT instruction is almost never used (a maximum of once each program, of course!). Determine the average number of instructions executed each second if the clock ticks at 100 MHz.

3.   Now suppose that the CPU is pipelined, so that each instruction is fetched while another instruction is executing. (You may also neglect the time required to refill the pipeline during branches and at the start of program execution.) What is the average number of instructions that can be executed each second with the same clock in this case?

Solutions

Expert Solution

1)

It is given that If the clock ticks at a rate of 2 GHz.
In this representation, Giga represents a billion as a number.
So that 1GHz clock ticks = 1 billion ticks per second.
2 GHz clock ticks = 2 billion ticksper second.


It is given that 2 GHz superscalar processor processes three instructions per clock cycle.
It means that the processor is three times faster than regular.
So that in one clock cycle, the processor can execute(3*2 billion) 6 billion instructions.


2) Give types of instruction sets are :

LOAD and STORE each makeup about 25% of the instructions
ADD, SUBTRACT, IN, and OUT take 10% each
various branches each take about 5%

As per Little Man instruction set, below instruction sets required number f cycles as follows:

LOAD = 5 Cycles
STORE= 5 Cycles
ADD = 5 Cycles
Subtract = 5 Cycles
IN = 4 Cycles
OUT = 4 Cycles
BRANCHES types are: SKIP = 4 Cycles and JUMP = 3 cycles.

Now, Number of cycles per instruction = 25/100(5+5) + 10/100(5+5+4+4) + 5/100(4+3)
= 0.25(10) + 0.10(18) + 0.05(7)
= 2.5 + 1.8 + 0.35
= 4.65
Bumber of instructions executed each second = 100*106/ 4.65
= 21.5*106


Related Solutions

1. In France it takes one worker to produce one sweater, and one worker to produce...
1. In France it takes one worker to produce one sweater, and one worker to produce one bottle of wine. In Tunisia it takes two workers to produce one sweater, and three workers to produce one bottle of wine. a. Who has the absolute advantage in production of sweaters? In the production of wine? How can you tell? b. Calculate the opportunity cost of producing 6 additional sweaters in France and in Tunisia. Which country has a comparative advantage in...
The processing division of the Sunrise Breakfast Company must produce one ton (2000 pounds) of breakfast...
The processing division of the Sunrise Breakfast Company must produce one ton (2000 pounds) of breakfast flakes per day to meet the demand for its Sugar Sweets cereal. Cost per pound of the three ingredients is: Ingredient A $4 per pound Ingredient B $3 per pound Ingredient C $2 per pound Government regulations require that the mix contain at least 10% ingredient A and 20% ingredient B. Use of more than 800 pounds per ton of ingredient C produces an...
Encode the following instruction (1) identify the instruction format that will be used (2) indicate the...
Encode the following instruction (1) identify the instruction format that will be used (2) indicate the values of each of the fields for that format in decimal (3) convert each of these decimal val- ues to binary (4) represent the entire instruction as one hexadecimal value j L2. # where L2 is at the decimal byte address 1,048,608
Anwser questions : 1. Complexity of instruction selection depends upon Select one: a. Level of the...
Anwser questions : 1. Complexity of instruction selection depends upon Select one: a. Level of the IR b. Desired quality of the generated code c. Nature of the ISA d. All of them 2. Which is NOT part of a language runtime system? Select one: a. process scheduling b. Multi-threading support c. Exception handling d. Memory allocation 3. What is the grammar G for the following language?           L (G) = { 0n 1n | n>=1 }
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two...
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two departments, Processing and Finishing. All materials are added at the beginning of work on the product in the Processing Department. During November 2017, the following events occurred in the Processing Department: Units started 17,000 units Units completed and transferred to Finishing Department 14,500 units Costs assigned to processing Raw materials (one unit of raw materials for each unit of product started) $296,200 Manufacturing supplies...
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two...
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two departments, Processing and Finishing. All materials are added at the beginning of work on the product in the Processing Department. During November 2017, the following events occurred in the Processing Department: Units started 17,000 units Units completed and transferred to Finishing Department 14,500 units Costs assigned to processing Raw materials (one unit of raw materials for each unit of product started) $296,200 Manufacturing supplies...
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two...
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two departments, Processing and Finishing. All materials are added at the beginning of work on the product in the Processing Department. During December 2009, the following events occurred in the Processing Department: Units started 16,000 units Units completed and transferred to Finishing Department 15,000 units Costs assigned to processing:Raw materials (one unit of raw materialsfor each unit of product started) $142,900 Manufacturing supplies used 18,000...
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two...
Weighted Average Process Costing Minot Processing Company manufactures one product on a continuous basis in two departments, Processing and Finishing. All materials are added at the beginning of work on the product in the Processing Department. During November, the following events occurred in the Processing Department: Units started 20,000 units Units completed and transferred to Finishing Department 21,000 units Costs assigned to processing Raw materials (one unit of raw materials for each unit of product started) $350,000 Manufacturing supplies used...
Activity #1 Goal: Produce an Excel spreadsheet that allows your company to model profitability. Assume your...
Activity #1 Goal: Produce an Excel spreadsheet that allows your company to model profitability. Assume your company produces bicycles and manufactures these different models: road, mountain, tandem, electric and hybrid. 1) Create a new Excel spreadsheet. 2) Create a new worksheet in the Excel spreadsheet – In this worksheet, create a model that allows the following variables to be changed for each of the 5 bicycle types: 1) The sales quantity 2) The sales price per unit 3) The Cost...
One short term goal and one long term goal and two interventions for the following nursing...
One short term goal and one long term goal and two interventions for the following nursing diagnosis: Disturbed sensory perception r/t schizophrenia aeb pt statement of "I hallucinate that I see my mom and dad, I wonder if they are still alive".
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT