1. Given a processor with a memory size of 128 MB. The processor has a RAM of 32 kB which is managed by the method of direct mapping, and is divided into blocks of 512 bytes.a. How many bits are needed to represent an address in main memory?B . How many bits are needed to represent the index of each block in the request?c. What is the tag size of each block?d. How many mocks are needed to build the cache memory?2. On the processor in the previous question, run software that accesses the following addresses, according to the order below (from left to right):0x1B430, 0x1BCAA, 0x1B5A3, 0x1BD89, 0x13D00, 0x1BC00The software repeats the access to these addresses ten times.a. What is the hit rate of the software in the first round of accessing the addresses?B . What is the hit rate of the software in the second round of accessing the addresses?c. What is the total hit rate of the software (after it accesses the addresses sixteen times)?3. The following table describes the number of commands of each type in a particular program, and the CPI of each command on a particular processor:a. What is the CPI of the program?B . A clock signal with a frequency of 1 GHz is connected to the processor. What is the running time of the processor?c. Interested in speeding up the running time by 20%, what is the required clock rate?
Arithmetic 5000 3
Store 150 5
Load 400 4
Branch 75 6
IC CPI