Chap 5
Chap 5
2. Storage Capacity :
It is measure in terms of the word size and the number of words.
It represent as N X M
It indicates the amount of data stored in memory.
N= Number of memory locations (number of words)
M = Number of bits per memory location ( word size )
3. Transfer Modes
Data can be accessed from memory in two different ways.
Word Transfer : Here, the CPU needs some data, it will transfer only that
amount of data.
E.g.data access form L1 cache
Block Transfer : Here, If CPU needs some data, it will transfer an entire
block containing that data.
This makes further access to remaining data of this much faster. This is
based on principle of spatial locality.
A processor is most likely to access data near the current location being
accessed.
4. Access Method:
There are various methods of accessing the memory based on the
memory organization.
These methods are listed below:
Sequential access:
The sequential access means start from the beginning and read
through in order until the byte to be read is reached.
For example: Magnetic tape
It is also called as serial access.
Random access:
In case of random access individual addresses identify location exactly.
Hence the all locations can be directly accessed in any random order.
This means all locations have the same access time irrespective of their
addresses. Eg. Most modern memories like RAM.
5. Physical Properties:
There are various physical attributes to memory.
Writable : Contents of the memory can be altered E.g. RAM
Non-Writable : Contents of the memory cannot be altered e.g. ROM
Volatile : Contents of the memory are lost when power is switched off
e.g. RAM
Non-volatile : Contents of the memory are retained when power is
switched off. e.g ROM
6. Reliability:
It is the time for which memory is expected to hold the data without
any errors. It is measure as MTTF : Mean Time to Failure. It should be
as high as possible.
7. Cost:
This indicates that the cost storing data in memory. It is expressed as
cost/bit. It must be as low as possible.
Temporal locality refers to the reuse of specific data or resources within relatively short time
periods. If a memory location (or data) is accessed once, it is likely to be accessed again in
the near future.
Spatial locality refers to the tendency of a program to access memory locations that are
physically close to each other. If a memory location is accessed, nearby memory locations are
likely to be accessed soon.
8. Explain Interleaved Memory in Detail.
Ans:
1)It is a Technique that divides memory into a number of modules such that Successive
words in the address space are placed in the Different modules.
2) Memory interleaving is a technique used to improve memory access efficiency and overall
system performance.
3) Interleaved memory Main memory divided into two or more sections. The CPU can access
alternate sections immediately, without waiting for memory to catch up (throughwaitstates).
4)Interleaved memory is one technique for compensating for the relatively slow speed of
dynamic RAM (DRAM).
5) Memory interleaving increases bandwidth by allowing simultaneous access to more than
one chunk of memory.
6)This improves performance because the processor can transfer more information to/from
memory in the same amount of time.
7) As an analogy, consider eating a plate of food with a
fork. Two-way interleaving would mean dividing the
food onto two plates and eating with both hands, using
two forks. (Four-way interleaving would require two
more hands. :^)
Remember that here the processor is doing the
"eating" and it is much faster than the forks (memory)
"feeding" it (unlike a person, whose hands are generally
faster.)