
Recall signed multiplication.
Compute it yourself


Compute -5/8 * 6/8





Describe the exponent of 32 bit machine
8 bits are reserved for the exponent.
23 bits are reserved for the mantisa.
1 bit is reserved for sign.
because we’re using 2’s complement we have a range of -127<=x<=128.
We add 127 to x to have positive numbers.
Zero is taken by x = -127, and mantisa all zeros.
x = 128 implies infinity, so..
-126<=x<=127 -> (+127) -> 1<=x<=254
That is, exponent can shift from -126 to 127.
If the number is normalized, it starts with 1, thus the smallest mantisa is 1.0, and largest is 2-2^-23.
If the number is not normalized, it starts with 0, thus the smallest mantisa is 2^-23 and largest is 1-2^-23
1
2
Explain associative cache
Address: 13|3 =>BlockNumber|LineInBlock
Size of block = size of line in cache.
Tag memory = an array in the cache in which block numbers are saved
Valid bits = 1 if block is present in the cache.
Time of search O(n), where n is the number of blocks in the cache.
Write about cache:




What are the advantages of mapping system for both I/O and memory?