Sunday 18 June 2023

what is DDR prefetching ? what is 4n & 8n prefetching ?

 DDR prefetching, also known as Double Data Rate prefetching, is a technique used in DDR (Double Data Rate) SDRAM (Synchronous Dynamic Random Access Memory) to improve memory access performance. It involves fetching data from memory into a cache or a buffer before it is actually needed by the processor.


In DDR prefetching, the memory controller anticipates the next set of data that the processor will require and fetches it in advance. This prefetching is done in bursts, where multiple data words are transferred in a single memory access.


The terms "4n prefetching" and "8n prefetching" refer to the specific burst lengths used in DDR SDRAM prefetching.


4n Prefetching:

 In 4n prefetching, the memory controller fetches data in bursts of four data words per memory access. Each burst transfers four consecutive data words from memory to the processor. This technique effectively increases the data transfer rate by fetching more data in a single access.


8n Prefetching: 

In 8n prefetching, the memory controller fetches data in bursts of eight data words per memory access. Each burst transfers eight consecutive data words. This technique further enhances the data transfer rate compared to 4n prefetching, as more data is fetched in each memory access.


The choice between 4n and 8n prefetching depends on the specific DDR SDRAM module and its capabilities. Some DDR SDRAM modules support 4n prefetching, while others support 8n prefetching. The module's prefetching capability is typically specified in its technical specifications.


The use of 4n or 8n prefetching has an impact on the overall memory performance and bandwidth of the system. Higher burst lengths can lead to increased data transfer rates and improved system performance, but they also require more resources and may have specific requirements for the memory controller and system architecture.


It's important to note that the specific prefetching mode is determined by the DDR SDRAM module itself and is transparent to the software running on the computer. The memory controller and the DDR SDRAM module handle the prefetching automatically based on the module's capabilities and the system's configuration.



No comments:

Post a Comment