Explanation:
A.)
we have two machines M1 and M2
cpi stands for clocks per instruction.
to get cpi for machine 1:
= we multiply frequencies with their corresponding M1 cycles and add everything up
50/100 x 1 = 0.5
20/100 x 2 = 0.4
30/100 x 3 = 0.9
CPI for M1 = 0.5 + 0.4 + 0.9 = 1.8
We find CPI for machine 2
we use the same formula we used for 1 above
50/100 x 2 = 1
20/100 x 3 = 0.6
30/100 x 4 = 1.2
CPI for m2 = 1 + 0.6 + 1.2 = 2.8
B.)
CPU execution time for m1 and m2
this is calculated by using the formula;
I * CPI/clock cycle time
execution time for A:
= I * 1.8/60X10⁶
= I x 30 nsec
execution time b:
I x 2.8/80x10⁶
= I x 35 nsec
Answer:
-3874₁₀ = 1111 1111 1111 1111 1111 1111 1101 1110₂
Explanation:
2's complement is a way for us to represent negative numbers in binary.
To get 2's complement:
1. Invert all the bits
2. Add 1 to the inverted bits
Summary: 2's complement = -N = ~N + 1
1. Inverting the number
3874₁₀ = 1111 0010 0010₂
~3874₁₀ = 0000 1101 1101₂
2. Add 1 to your inverted bits
~3874₁₀ + 1 = 0000 1101 1101₂ + 1
= 0000 1101 1110₂
You can pad the most signigicant bits with 1's if you're planning on using more bits.
so,
12 bits 16 bits
0000 1101 1110₂ = 1111 0000 1101 1110₂
They asked for double word-length (a fancy term for 32-bits), so pad the left-most side with 1s' until you get a total of 32 bits.
32 bits
= 1111 1111 1111 1111 1111 1111 1101 1110
Answer:
In geometry, the area enclosed by a circle of radius r is πr2. Here the Greek letter π represents a constant, approximately equal to 3.14159, which is equal to the ratio of the circumference of any circle to its diameter.
Explanation:
Answer:
Ethernet standards are written and maintained by the IEEE, the Institute of Electrical and Electronic Engineers which has its corporate office in New York City and its operations center in Piscataway, New Jersey.
Explanation:
names = ["Kevin", "Joe", "Thor", "Adam", "Zoe"]
names.sort()
for x in names:
if x == "Thor":
break
else:
print(x)
I made up my own names for the sake of testing my code. I wrote my code in python 3.8. I hope this helps.