Computer Organization Answer
Computer Organization Answer
1. Which of the following is the fastest means of memory access for CPU?
b) Cache
2. The memory implemented using the semiconductor chips is
b) Main
3. If M denotes the number of memory locations and N denotes the word size, then an
expression that denotes the storage capacity is ______________
a) M*N
4. Size of the ________ memory mainly depends on the size of the address bus
a) Main
5. What is the formula for Hit Ratio?
-> To calculate a hit ratio, divide the number of cache hits with the sum of the
number of cache hits, and the number of cache misses .
Group B
1. Write the difference between SRAM and DRAM.
2. A cache has 64KB capacity. 128 Byte lines and is 4 way set associative. The CPU
generates 32 bits address for accessing data in the memory.
b)
3. =>
H(hit ratio)= 0.9 , TC(time cache) = 80ns , M(time memory) = 150ns
Now access time :
=H*TC+(1-H)(TC+TM) nsec
= 95 nsec
Advantage: Ensures fast retrieval while making sure the data is in the
backing store and is not lost in case the cache is disrupted.
Write back :
Using the write-back policy, data is written to the cache and Then I/O
completion is confirmed. The data is then typically also written to the backing
store in the background but the completion confirmation is not blocked on that.
highly likely that a nearby/consecutive memory location will be accessed as well and
hence we bring in the nearby memory references too in a nearby memory location for
will benefit from this optimization. Using these optimizations we can greatly improve
upon the efficiency of the programs and can be implemented on hardware level or on
software level.
Temporal locality
This type of optimization includes bringing in the frequently accessed memory
references to a nearby memory location for a short duration of time so that the future
For example, if in an instruction set we have a variable declared that is being accessed
very frequently we bring in that variable in a memory register which is the nearest in
memory than the amount physically installed on the system. This extra memory is
actually called virtual memory and it is a section of a hard disk that's set up to emulate