Interleaved Memory
Interleaved Memory
15/08/2012
Introduction
Principle of memory interleaving
Dividing memory into a number of memory modules and arranging different sets of addresses to different modules
In our memory Designs , If we want a larger memory, we simply add more memory modules. This modular design is useful in incrementally expanding the memory.
This design however, has one major disadvantage. Since sequential addresses are mapped to the same memory module, we have wait for the memory access time for each word we read from the memory module.
15/08/2012 CA & PP Assignement Presentation 2
In the memory designs we described so far, we divided the nbit memory address bits into two parts:
The higher- order r bits are used to identify a memory module and lower order m bits are used to specify a locations in the memory module. n= r+m. this technique is sometimes called high-order interleaving.( fig-a)
15/08/2012 CA & PP Assignement Presentation 3
Interleaved memory
To provide overlapped access to address, we have to resort to low-order interleaving, as shown in above fig- b. In this design, the lower- order r bits are used to identify a memory module and higher order m bits are used to specify a location. We normally use the term interleaved memory to mean low-order interleaving .
15/08/2012
The key idea is to design the memory system with multiple banks (similar to our memory modules) and access all banks simultaneously so that access time can be overlapped.
15/08/2012
We can implement interleaved memories using two possible designs: synchronized access organization & independent access organization
15/08/2012 CA & PP Assignement Presentation 6
Example mappings
15/08/2012
15/08/2012
Fig-1 On the other hand ( Figure-2) interleaved memory ,transfers the first word ( WO) after four cycle, After that, one word is transferred every clock cycle. Thus, to transfer eight words, we need 12 clock cycles.
Fig-2
10
15/08/2012
11
In order to support this kind of access, we have provide each memory bank with a memory address register(MAR) to latch the address that the bank should use. In our example, we can load four different addresses for the four banks. In this design, we do not need the MDR registers to latch the data. Instead, the data are read directly from the memory bank.
15/08/2012 CA & PP Assignement Presentation 12
15/08/2012
13
15/08/2012
14
15/08/2012
15
Drawbacks
Why do we see interleaved memories only in highperformance computers? Why not in our PCs? One reason is that interleaved memories involve complex design. We have seen some of this complexity in our examples. We need extra registers (MAR or MDR) to latch addresses or data. What we have not shown in these examples is the control circuit needed to transfer data and to load addresses.
Another major reason is that interleaved memories do not have good fault-tolerance properties. That is, if one bank fails, we lose the entire memory.
15/08/2012 CA & PP Assignement Presentation 16
THANK YOU
15/08/2012
17