1. Home
  2. Explore
  3. Computer Science
  4. Computer Memory Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Computer Memory Overview

Speaker 1Speaker 2

Computer Memory Overview

7:09
0:00-7:09
  1. Hope

    So Anna, I've always wondered — when I load a video game, why does it take time, and what's actually happening inside my computer?

  2. Anna

    Great question! The most common operation is copying data from your solid-state drive, or SSD, into dynamic random-access memory, or DRAM. The SSD stores everything long-term, but the CPU can only work with data once it's in DRAM — that's why it's called working memory.

  3. Hope

    But why do we need both? Can't we just use the SSD for everything?

  4. Anna

    It's all about speed versus capacity. An SSD holds terabytes in a 3D array of memory cells, but accessing any data takes about 50 microseconds. DRAM, on the other hand, uses billions of tiny capacitor cells in a 2D array — it holds gigabytes, not terabytes — but it's 3000 times faster, with access times around 17 nanoseconds.

  5. Hope

    3000 times faster? That's like comparing a supersonic jet to a tortoise.

  6. Anna

    Exactly! So computers use a few seconds of loading time to copy data from the SSD to DRAM. And with prefetching — moving data before it's needed — the CPU can then access game textures or your save file in nanoseconds.

  7. Hope

    So the loading bar is essentially waiting for that transfer. But how does the CPU actually talk to DRAM?

  8. Anna

    Let's look at the hardware. A stick of DRAM is called a DIMM, and it's plugged into the motherboard. The CPU has a memory controller that manages two memory channels. For DDR5, each channel is split into two subchannels, each with 32 data wires plus address and control wires. The CPU sends commands and addresses to all four chips on a channel, but each chip only reads or writes 8 bits at a time.

  9. Hope

    So each chip gets a different piece of the data? That makes sense. But inside a DRAM chip — what's the actual structure?

  10. Anna

    Inside the packaging is the die, which is the integrated circuit. This 2-gigabyte die has 8 bank groups, each with 4 banks, so 32 banks total. Each bank is a massive array — 65,536 rows by 8,192 columns. That's over 500 million memory cells per bank.

  11. Hope

    That's huge. How do we find a specific cell? We must need a long address.

  12. Anna

    Exactly — a 31-bit address. First, 5 bits select the bank group and bank. Then 16 bits choose the row. And because the chip reads or writes 8 bits at a time, the 8,192 columns are grouped into sets of 8, so only 10 bits are needed for the column address. To save wires, the address is sent in two parts: first the row address (RAS), then the column address (CAS).

  13. Hope

    And inside each cell? I've heard of capacitors storing bits.

  14. Anna

    Yes — it's called a 1T1C cell: one transistor and one capacitor. The capacitor stores charge: 1 volt means a binary 1, 0 volts means a 0. The transistor acts like a gate. A wire called the wordline controls the gate, and another wire called the bitline connects to the capacitor. When the wordline is activated, the transistor turns on, connecting the capacitor to the bitline so we can read or write.

  15. Hope

    But how do you actually read the charge? The bitline is long, and the capacitor is tiny.

  16. Anna

    That's where the sense amplifier comes in. Before reading, all bitlines are precharged to 0.5 volts. Then the target row is activated, and each capacitor either adds charge to the bitline (if it's a 1) or pulls charge away (if it's a 0). The sense amplifier detects that tiny voltage change and drives the bitline all the way to 1 volt or 0 volts. Then the column multiplexer selects the specific 8 bitlines and sends the data to the CPU.

  17. Hope

    And writing is similar, but with the write driver overriding the bitline?

  18. Anna

    Exactly. The row is opened, the sense amplifiers work, but when it's time to write, the write driver — much stronger — forces each bitline to the desired voltage, which charges or discharges the capacitor accordingly.

  19. Hope

    I've also heard that DRAM needs to be refreshed, because charge leaks away.

  20. Anna

    Right. The transistors are so small — just a few dozen nanometers — that electrons leak across the channel. So every 64 milliseconds, the memory controller goes through every row in each bank: it closes the row, precharges bitlines, opens the row, and the sense amplifiers restore each capacitor to full charge. That takes about 3 milliseconds per bank.

  21. Hope

    That's a lot of overhead. But I've noticed there are multiple banks — 32 of them. Why so many?

  22. Anna

    Multiple banks allow parallelism. If a program accesses a row that's already open — a row hit — it saves the time of opening a new row. With 32 banks, you can have many rows open simultaneously, increasing hit rates. Also, bank groups let the CPU refresh one bank in each group while using others, reducing the performance hit.

  23. Hope

    And that's why you see timing parameters on DRAM like CL, tRCD, tRP, tRAS — they define how many clock cycles each step takes.

  24. Anna

    Yes. CL is the column address strobe latency — time from a column address to data. tRCD is row to column delay, tRP is row precharge time, and tRAS is the minimum time a row must be active. Memory controllers and compilers optimize code to increase row hits and avoid thrashing.

  25. Hope

    What about burst buffers? I've seen that term.

  26. Anna

    That's a clever optimization. Instead of sending just 8 bits, the DRAM reads 128 bits into a temporary buffer using 6 column bits. Then a 4-bit counter cycles through 16 groups of 8 bits, sending them all out — that's a burst of 16. This way, sequential data can be accessed extremely quickly without multiple column selections.

  27. Hope

    And I read that the large arrays are broken into subarrays. Why?

  28. Anna

    To keep wires short. A huge array has long wordlines and bitlines, which slows things down. By splitting the 65,536 x 8,192 bank into smaller blocks, say 1,024 x 1,024, each subarray has shorter lines. That means the capacitor doesn't have to drive as much wire, and the wordline can turn on transistors faster because there's less capacitance.

  29. Hope

    And there's something called folded DRAM. What's that about?

  30. Anna

    Folded DRAM uses a differential pair. Each sense amplifier connects to two bitlines: an active one and a passive one, with memory cells alternating between them. When a row activates, only half the bitlines connect to cells; the other half serve as references. The sense amplifier is a cross-coupled inverter that forces the passive bitline to the opposite voltage of the active one.

  31. Hope

    So you always have a complementary signal. That helps with noise and precharging?

  32. Anna

    Exactly. For precharge, you simply short the active and passive bitlines together — they average to 0.5 volts. It also reduces electric field interference and parasitic capacitance, making the sensing more reliable. And because the bitline capacitance is lower, the sense amplifier can detect smaller voltage changes.

  33. Hope

    This is fascinating. So in the end, DRAM is a marvel of engineering — billions of tiny cells, all working together at nanosecond speeds, with clever optimizations to keep up with the CPU.

  34. Anna

    Absolutely. And with DDR5, we're seeing even higher speeds and lower voltages. But the core concepts — 1T1C cells, row and column addressing, sense amplifiers, and burst modes — remain the foundation of modern computing memory.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent