ArticleslgStudy

computer science

Memory timings

Memory timings is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Memory timings rather than just read about it. In short: Memory timings or RAM timings describe the timing information of a memory module or the onboard LPDDRx. Due to the inherent qualities of VLSI and microelectronics, memory chips require time to fully execute commands.

Key takeaways

  • Memory timings belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Memory timings to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Memory timings from memory before moving on to harder problems.

Reference excerpt

Memory timings or RAM timings describe the timing information of a memory module or the onboard LPDDRx. Due to the inherent qualities of VLSI and microelectronics, memory chips require time to fully execute commands. Executing commands too quickly will result in data corruption and results in system instability. With appropriate time between commands, memory modules/chips can be given the opportunity to fully switch transistors, charge capacitors and correctly signal back information to the memory controller. Because system performance depends on how fast memory can be used, this timing directly affects the performance of the system. The timing of modern synchronous dynamic random-access memory (SDRAM) is commonly indicated using four parameters: CL, TRCD, TRP, and TRAS in units of clock cycles; they are commonly written as four numbers separated with hyphens, e.g. 7-8-8-24. Variations include:

The fourth (tRAS) is often omitted. Or a fifth, the Command rate, is sometimes added (normally 2T or 1T, also written 2N, 1N or CR2). These parameters (as part of a larger whole) specify the clock latency of certain specific commands issued to a random access memory. Lower numbers imply a shorter wait between commands (as determined in clock cycles). The Intel systems also have Gear 2 (Gear type 0) and Gear 4 (Gear type 1).

What determines absolute latency (and thus system performance) is determined by both the timings and the memory clock frequency. When translating memory timings into actual latency, timings are in units of clock cycles, which for double data rate memory is half the speed of the commonly quoted transfer rate. Without knowing the clock frequency it is impossible to state if one set of timings is "faster" than another. For example, DDR3-2000 memory has a 1000 MHz clock frequency, which yields a 1 ns clock cycle. With this 1 ns clock, a CAS latency of 7 gives an absolute CAS latency of 7 ns. Faster DDR3-2666 memory (with a 1333 MHz clock, or 0.75 ns exactly; the 1333 is rounded) may have a larger CAS latency of 9, but at a clock frequency of 1333 MHz the amount of time to wait 9 clock cycles is only 6.75 ns. It is for this reason that DDR3-2666 CL9 has a smaller absolute CAS latency than DDR3-2000 CL7 memory.

Additional timings For DDR3 and newer (DDR4, DDR5), the four timings described earlier are not the only relevant timings and give a very short overview of the performance of memory. The full, manufacturer-verified timings of a memory module are stored inside of a module's Serial Presence Detect (SPD) chip. On DDR3 and DDR4 DIMM modules, this chip is a PROM or EEPROM flash memory chip and contains the JEDEC-standardized timing table data format. See the SPD article for the table layout among different versions of DDR and examples of other memory timing information that is present on these chips. On some DIMM modules, there are also "verified" overclocking profiles in the SPD using XMP or Expo formats. They indicate faster timing information (and higher voltages) that the manufacturer has verified to work with the module: higher voltages tend to reduce memory latency (time-to-stabilize) at a cost of more heat production. The BIOS on a PC may allow the user to choose among JEDEC profiles, XMP/Expo profiles, or define their own timing adjustments in an effort to increase performance (with possible risk of decreased stability). On Alder Lake CPUs and later, tRCD and tRP are no longer linked, while before Intel did not allow to set them to different values. DDR4 introduced support for FGR (fine granular refresh), with its own tRFC2 and tRFC4 timings, while DDR5 retained only tRFC2.

Relationship to bandwidth Memory bandwidth measures the throughput of memory, and is generally limited by the transfer rate, not latency. By interleaving access to SDRAM's multiple internal banks, it is possible to transfer data continuously at the peak transfer rate. It is possible for increased bandwidth to come at a cost in latency. In particular, each successive generation of DDR memory has higher transfer rates but the absolute latency does not change significantly, and especially when first appearing on the market, the new generation generally has longer latency than the previous one. The architecture and bugs in the CPUs can also change the latency. Increasing memory bandwidth, even while increasing memory latency, may improve the performance of a computer system with multiple processors and/or multiple execution threads. Higher bandwidth will also boost performance of integrated graphics processors that have no dedicated video memory but use regular RAM as VRAM. Modern x86 processors are heavily optimized with techniques such as superscalar instruction pipelines, out-of-order execution, memory prefetching, memory dependence prediction, and branch prediction to preemptively load memory from RAM (and other caches) to speed up execution even further. With this amount of complexity from performance optimization, it is difficult to state with certainty the effects memory timings may have on performance. Different workloads have different memory access patterns and are affected differently in performance by these memory timings.

Handling in BIOS In Intel systems, memory timings and management are handled by the Memory Reference Code (MRC), a part of the BIOS, which adjusts the operation of the CPU's integrated memory controller. A lot of it is also managed in Intel MEI, a Minix OS that runs on a dedicated core in PCH. Some of its sub-firmwares can have effect on memory latency. The analogous part of the BIOS in modern AMD systems is the AGESA. The memory controller is integrated into the CPU/APU as part of the Infinity Fabric on-chip interconnect.

See also Eye pattern – for visualizing the quality of a digital signal Overshoot and crosstalk – features that make a digital signal deviate from the ideal square wave

References

External reading DDR4 SDRAM - Understanding Timing Parameters - resource for hardware designers (systemverilog.io) DDR4 overclock guide - explains the tuning of primary, secondary, and tertiary timings on Intel and AMD memory controllers Infinity Fabric Overclocking on Zen2/3

Worked examples

Example 1 — a first encounter with Memory timings

Start with the simplest possible case. Write down what Memory timings claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Memory timings before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Memory timings ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Memory timings

In research
Memory timings appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Memory timings in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Memory timings is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer memory, so understanding it makes those chapters shorter.
In everyday life
Look for Memory timings outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Memory timings” →

How to study Memory timings in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Memory timings means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Memory timings out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Memory timings in simple terms?

Memory timings or RAM timings describe the timing information of a memory module or the onboard LPDDRx. Due to the inherent qualities of VLSI and microelectronics, memory chips require time to fully execute commands.

Why does Memory timings matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Memory timings?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Memory timings.

Tags

  • Computer memory

Keep exploring