SDRAM latency
From Wikipedia, the free encyclopedia
SDRAM latency refers to the delays incurred when a computer tries to access data in SDRAM. SDRAM latency is often measured in front side bus clock cycles. Due to the fact that a modern CPU is much faster than SDRAM, when accessing memory the CPU has to wait for the memory access to complete before it can make further progress. SDRAM latency is a significant bottleneck for system performance.
Contents |
[edit] SDRAM access
SDRAM is notionally organized into a grid like pattern, with "rows", and "columns". The data stored in SDRAM comes in blocks, defined by the coordinates of the row and column of the specific information. SDRAM access has four main measurements (quantified in FSB clock cycles) important in defining the SDRAM latency in a given computer:
(the 't' prefixes are for 'time')
- tCAS
- The number of clock cycles needed to access a certain column of Data in SDRAM. CAS Latency, or simply CAS, is known as Column Address Strobe Latency, sometimes referred to as tCL.
- tRCD
- The number of Clock cycles needed between a Row Address Strobe (RAS) and a CAS. It is the time required between the computer defining the row and column of the given memory block and the actual read or write to that location. Stands for Row address to Column address Delay.
- tRP
- The number of clock cycles needed to terminate access to an open row of memory, and open access to the next row. Stands for Row precharge time.
- tRAS
- The minimum number of clock cycles needed to access a certain row of data in RAM between the data request and the precharge command. Known as Active to Precharge Delay.
The steps for the memory controller to access data in SDRAM:
- Defines which row the requested data is in (RAS)
- Gives the RAM time to access requested row (RCD)
- Defines the column of requested data (CAS)
- Waits for the RAM to send requested data to the CPU
- Precharges the row to recycle it for subsequent use (RP)
[edit] Measurements
As with almost all latency issues, the lower, the better. When picking out SDRAM to buy, these four measurements are only important in high performance computers. RAM speeds are given by the four numbers above, in the format "tCAS-tRCD-tRP-tRAS". So, for example, latency values given as 2.5-3-3-5 would indicate tCAS=2.5, tRCD=3, tRP=3, tRAS=5. (Note that .5 values of latency (such as 2.5) are only possible in Double data rate RAM, where two parts of each clock cycle are used)
Most computer users don't need to worry about SDRAM latency, because the computer can handle the auto-adjustment to RAM timing based on the Serial Presence Detect (SPD) ROM inside the RAM packaging that defines the four timing values, decided by the RAM manufacturer. Although the SDRAM latency timing can be adjusted manually, using lower latency settings than the module's rating (overclocking) may cause a computer to crash or fail to boot.