Average machine cycles per instruction and clock rate

A certain microprocessor requires either 2, 4, 8, 12, or 16 machine cycles to perform various operations. Seventeen and one-half (17.5.) percent of its instructions require 2 machine cycles, 12.5% require 4 machine cycles, 35% require 8 machine cycles, 20% require 12 machine cycles, and 15% require 16 machine cycles.

a. What is the average number of machine cycles per instruction for this microprocessor?
b. What is the clock rate (machine cycles per second) required for this microprocessor to be a "1 MIPS" processor?
c. Suppose this system requires an extra 16 machine cycles to retrieve an operand from memory. It has to go to memory 30% of the time. What is the average number of machine cycles per instruction for this microprocessor, including its memory fetch instructions?

Solution Preview

a. Average number of machine cycles per instruction for the microprocessor
= 17.5% * 2 + 12.5% * 4 + 35% * 8 + 20% * 12 + 15% * 16
= 0.175 * 2 + 0.125 * 4 + 0.35 * 8 + 0.20 ...

Processor X has a clock speed of 2Ghz and takes 1 cycle for integer operations, 2 cycles for memory operations, and 4 cycles for floating point operations. Empirical data shows that programs run on Processor X are typically composed of 35% floating point operations, 30% memory operations, and 35% integer operations.
You are d

1. Suppose that the keyboard device stored keystrokes in a buffer until it was full then sent the entire buffer for processing. What would be some adverse consequences? (Two or three sentences should be adequate to answer this question)
2. Suppose that all programs in a particular CPU are given 50 clockcycles to process befo

Please see the attachment.
Analyze the clocked synchronous state machine shown in the file (part A). write the excitation and output equations. Develop the transition table and the state/output table. Draw the state diagram. Is this a Mealy of a Moore machine?
Draw the timing diagram for the machine for 10 clockcycles. as

One type of pipeline hazard that can occur is a branch hazard.
a. Describe what a branch hazard is, and what causes a branch hazard.
b. Give a relevant example using the MIPS instruction set architecture. Compare and contrast how the code will proceed it the branch is taken, vs if the branch is not taken, and explain how

See attached file for full problem description.
In the twin paradox, twin A remains on Earth while twin B travels a distance L, measured in the Earth's inertial frame, at a velocity v to a very distant solar system. In turning around for the return trip, the rocket malfunctions somewhat and achieves only a velocity ½ v. Fi

Consider the following loop:
S:= 0;
for K := 1 to 100 do
S : = S - K;
A straightforward translation of this into a generic assembly language would look something like this:
LD R1,0 ;KEEP VALUE OF S IN R1
LD R2,1 ;KEEP VALUE OF K IN R2
LP SUB R1,R1,R2 ;S := S - K
BEQ R2,100,EXIST ;DONE IF K = 100
ADD R2,R

1. A mass - spring system in SHM in the horizontal direction. If the mass is 0.25 kg, the spring constant is 12 N/m, and the amplitude is 15 cm, (a) what is the maximum speed of the mass, and (b) where does this occur? (c) What is the speed at half amplitude position?
2. A clock uses a pendulum that is 75 cm long. The clock i

A clock manufacturer realizes that he is operating in the market for machines that measure time. How should this market be segmented? Identify the key segmentation variables that are relevant for this market.