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

  • 25Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: DRAM vs SSD

What are the key differences between SSD and DRAM in terms of storage persistence, physical structure, and access speed?

25 questions

  1. 1

    What are the key differences between SSD and DRAM in terms of storage persistence, physical structure, and access speed?

    Model answer

    SSDs store data permanently in massive 3D arrays of memory cells, yielding terabytes of storage, with access times around 50 microseconds. DRAM temporarily stores data in 2D arrays of capacitor memory cells, yielding gigabytes of working memory, with access times around 17 nanoseconds—about 3000 times faster than an SSD.

    Explanation

    The content contrasts SSDs (permanent, 3D, terabytes, ~50 µs) with DRAM (temporary, 2D, gigabytes, ~17 ns, 3000× faster).

  2. 2

    Why does a computer use both an SSD and DRAM despite DRAM being much faster?

    Model answer

    SSDs provide large permanent storage at lower cost, while DRAM offers fast temporary access. By copying data from SSD to DRAM during loading and using prefetching, the computer can store terabytes on the SSD and access active data in nanoseconds from DRAM.

    Explanation

    The content explains the trade-off: SSD for capacity and persistence, DRAM for speed; loading time is the cost of moving data.

  3. 3

    What is prefetching in the context of memory management?

    Model answer

    Prefetching is the process of moving data from the SSD to DRAM before it is actually needed, so that the CPU can access it quickly when required.

    Explanation

    Defined directly in the content as moving data before it's needed.

  4. 4

    Describe the role of the memory controller inside the CPU regarding DRAM and SSD communication.

    Model answer

    The memory controller manages and communicates with DRAM, while a separate section handles communication with SSDs (via M.2 or SATA). The CPU uses these sections along with data mapping tables to control the flow of data between SSD, DRAM, and cache memory.

    Explanation

    The content specifies the memory controller for DRAM and separate sections for SSDs.

  5. 5

    Explain the structure of a DDR5 memory channel as it connects the CPU to DRAM chips.

    Model answer

    Each DDR5 memory channel is divided into two parts: Channel A and Channel B. Each channel independently transfers 32 bits at a time using 32 data wires. Additionally, there are 21 address wires and 7 control signal wires per channel. The addresses and commands are shared by all 4 chips on the channel, but the 32 data lines are divided so each chip reads or writes 8 bits at a time.

    Explanation

    Detailed in the content: two sub-channels, 32-bit data, 21 address, 7 control, chips share addresses but split data.

  6. 6

    How is a DRAM die organized internally in terms of bank groups, banks, rows, and columns for a typical 2 GB DDR5 chip?

    Model answer

    A 2 GB DRAM die has 8 bank groups, each containing 4 banks, for a total of 32 banks. Each bank consists of 65,536 rows and 8,192 columns of memory cells.

    Explanation

    Explicitly given in the content.

  7. 7

    How is a 31-bit address used to select a specific group of 8 memory cells in a DRAM chip?

    Model answer

    The 31-bit address is broken into: 3 bits to select the bank group, 2 bits to select the bank, 16 bits for the row address, and 10 bits for the column address (since columns are grouped into sets of 8).

    Explanation

    The content describes the address breakdown.

  8. 8

    Why is the 31-bit address sent in two separate parts over only 21 wires?

    Model answer

    First, the bank group, bank, and row address are sent together (RAS). Then, the column address is sent separately (CAS). This two-step approach allows row hits to be detected early, saving time by skipping row activation if the desired row is already open.

    Explanation

    The content explains that address is split into RAS and CAS, and mentions row hits as the reason.

  9. 9

    What is a 1T1C memory cell and what are its two components?

    Model answer

    A 1T1C memory cell consists of a capacitor to store one bit of data as electrical charge and a transistor to access and read or write that data.

    Explanation

    Defined directly in the content.

  10. 10

    How does a DRAM capacitor store a binary 1 or 0?

    Model answer

    If the capacitor is charged to 1 volt (or approximately 1.1V for DDR5), it represents a binary 1. If it is at 0 volts (no charge), it represents a binary 0.

    Explanation

    The content states the voltage levels for binary states.

  11. 11

    Describe the role of the wordline and bitline in accessing a DRAM memory cell.

    Model answer

    The wordline connects to the gate of the transistor; applying a voltage turns on the transistor. The bitline connects to the other side of the transistor's channel, allowing charge to flow to or from the capacitor when the transistor is on.

    Explanation

    The content explains the function of wordline and bitline.

  12. 12

    Why can only one wordline be active at a time within a single DRAM bank?

    Model answer

    If more than one wordline were active, multiple capacitors would connect to the same bitline, causing interference and making the stored data unreadable.

    Explanation

    The content explicitly states this reason.

  13. 13

    Outline the steps involved in reading data from a specified group of 8 memory cells in a DRAM bank.

    Model answer
    1. The read command and 31-bit address are sent. 2. The bank is selected. 3. All wordlines are turned off, and bitlines are precharged to 0.5V. 4. The 16-bit row address activates a single row, connecting capacitors to bitlines. 5. Sense amplifiers detect voltage perturbations and drive bitlines to full 1V or 0V. 6. The column multiplexer uses the 10-bit column address to connect the specific 8 bitlines to the read driver, which sends the data to the CPU.

    Explanation

    Detailed reading process from the content.

  14. 14

    How does a write operation differ from a read operation in DRAM?

    Model answer

    In a write, after the row is opened and sense amplifiers have driven the bitlines, the column multiplexer connects the selected bitlines to a write driver that overrides the existing voltages with the new data bits (1V for 1, 0V for 0), thereby writing to the capacitors.

    Explanation

    The content contrasts write driver overriding versus read driver sending data.

  15. 15

    Why does DRAM require periodic refresh operations, and how often must each bank be refreshed?

    Model answer

    Charge leaks from the tiny capacitors through the access transistor. To prevent data loss, each bank must be refreshed once every 64 milliseconds. The refresh operation reads and rewrites every row to restore full charge for 1s.

    Explanation

    The content gives the 64 ms interval and the reason.

  16. 16

    What is a row hit and why is it faster than a row miss?

    Model answer

    A row hit occurs when the CPU sends a read/write command to a row that is already open. It skips the row activation (opening) steps and only uses the column address to select the desired columns, saving significant time compared to a row miss, which requires closing the current row, precharging, and opening a new row.

    Explanation

    The content defines row hit and row miss.

  17. 17

    Explain the four timing parameters typically listed on DRAM packaging (CL, tRCD, tRP, tRAS) and what each measures.

    Model answer

    CL (CAS latency) is the time between sending a column address (row hit) and receiving data. tRCD is the time to open a row when bitlines are already precharged. tRP is the time to precharge the bitlines before opening a row. tRAS is the minimum time between row activation and the following precharge. All are measured in clock cycles.

    Explanation

    The content mentions these four numbers and their meanings.

  18. 18

    What is the purpose of having 32 banks in a DDR5 DRAM chip?

    Model answer

    Multiple banks allow several rows from different banks to be open simultaneously, increasing the likelihood of row hits and reducing average access time. Additionally, having multiple bank groups enables the CPU to refresh one bank in each group at a time while accessing others, minimizing the impact of refresh.

    Explanation

    The content explains the benefit of 32 banks for row hits and refresh concurrency.

  19. 19

    Describe the burst buffer and how it enables a burst length of 16 in DDR5.

    Model answer

    The burst buffer is a 128-bit temporary storage location. When reading, 6 bits of the column address select 128 memory cells whose values are loaded into the burst buffer. Then, 4 bits of the column address cycle through 16 sets of 8 bits, outputting them in sequence. This yields a burst length of 16, meaning 16 sequential 8-bit transfers per chip (total 128 bits per burst).

    Explanation

    The content describes the burst buffer with 6-bit multiplexer and 4-bit buffer cycling.

  20. 20

    Why are large DRAM banks subdivided into smaller sub-arrays (e.g., 1024×1024)?

    Model answer

    Subdividing reduces the length of bitlines and wordlines. Shorter bitlines mean the capacitor perturbs a smaller capacitance, allowing a smaller capacitor. Shorter wordlines reduce capacitive load, speeding up row activation.

    Explanation

    The content gives these two benefits.

  21. 21

    What is folded DRAM architecture and what are its three main benefits?

    Model answer

    Folded DRAM uses two bitlines per column with alternating rows connected to left or right bitlines. Each sense amplifier is a cross-coupled inverter that creates a differential pair (active and passive). Benefits: (1) Precharge is easier—connecting the two bitlines averages them to 0.5V. (2) Better noise immunity because electric fields are contained between the pair. (3) Reduced parasitic capacitance on the bitline.

    Explanation

    The content explains folded DRAM and its three benefits.

  22. 22

    What voltage levels are used for DDR5 for writing a binary 1 and for the bitline precharge?

    Model answer

    For DDR5, a binary 1 is stored at approximately 1.1V (but 1.4V is applied when writing or refreshing to compensate for leakage). The bitline precharge voltage is half of the operating voltage, so about 0.55V (the content simplifies to 0.5V for clarity).

    Explanation

    The content mentions DDR5 voltages relative to DDR4, with note about higher refresh voltage.

  23. 23

    List three common specifications printed on DRAM packaging and what they indicate.

    Model answer

    The capacity in Gigabytes (e.g., 16 GB), the data transfer rate in millions of transfers per second (MT/s, which is twice the clock frequency), and the peak data transfer rate in Megabytes per second (MB/s).

    Explanation

    The content mentions these three as on the packaging.

  24. 24

    How does GPU DRAM (VRAM) differ from standard DDR5 DRAM?

    Model answer

    VRAM is located around the GPU chip, has larger bandwidth, can read and write simultaneously, but operates at a lower frequency compared to standard DDR5 DRAM used in CPUs.

    Explanation

    The content provides these differences.

  25. 25

    Why is DRAM in smartphones often stacked on top of the CPU?

    Model answer

    Smartphone DRAM is optimized for smaller packaging and lower power consumption, and stacking it on the CPU saves space and reduces power loss from shorter interconnects.

    Explanation

    The content mentions smaller packaging and lower power consumption as optimizations for mobile DRAM.

1 of 25
Question 1 of 25

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent