Suppose some 32-bit microprocessor and some 16-bit
microprocessor have the same bus cycle.
If a program consists of 100 operands and instructions, of which
50% are 32 bits and 50% are 16 bits long, it is better to use a
32-bit microprocessor when running this program on two
microprocessors. -How fast is it compared to using a bit
microprocessor?
Ans:
Given:
100 operands and instructions
50% of the operands and instructions are 32-bits long, so it is 50
32-bit.
50% of the operands and instructions are 16-bits long, so it is 50
16-bit.
since 16-bit processor requires 2 bus cycles for 1 32-bit instruction and operand ,
The number of bus cycles needed for the 16-bit microprocessor
will equal to:
(50 * 2) + 50 = 150 bus cycles.
The number of bus cycles needed for the 32-bit microprocessor
will equal to:
50+ 50 = 100 bus cycles.
By calculating the improvement achieved with the 32-bit microprocessor to the 16-bit microprocessor will equal to 50/150 = 33.33%.
so 32 bit processor is 33.33% more fast than 16-bit
Get Answers For Free
Most questions answered within 1 hours.