What is Bank?

One of several independently operating sections inside a DRAM. Overlapping activation and access across different banks raises effective performance.

Field: DRAM

Japanese name: バンク

Why DRAM is split into banks

Accessing DRAM involves several slow steps. An activate command opens a row, copying it into the bank's sense amplifiers, often called the row buffer; reads and writes then select columns from that row; finally a precharge closes the row and readies the bit lines. Activation and precharge each take over ten nanoseconds. A bank is an independent array with its own row buffer, so while one bank is activating or precharging, another can be transferring data. Interleaving accesses across banks hides these latencies and keeps the data bus busy.

Bank counts and bank groups

DDR4 x4/x8 devices have 16 banks arranged in four bank groups, and DDR5 x4/x8 devices of 16 Gbit and larger double this to 32; x16 devices have half as many banks. Bank groups add a timing rule: consecutive column accesses to different groups can be issued closer together than accesses within the same group, so controllers spread traffic across groups. Each bank can hold a different open row, which also raises the chance that a request hits an already-open row (a page hit) instead of paying for another activate. A bank is distinct from a rank, which is a set of chips sharing a chip select on a module.

Refresh and bank availability

DRAM cells leak, so every row must typically be refreshed within 64 ms. A bank under refresh cannot serve accesses, and as capacity grows each refresh command covers more rows and lasts longer, a time known as tRFC. For 16 Gbit-class devices, refresh can cost from several percent to about 10% of performance, along with extra power. Per-bank refresh reduces the impact by refreshing one bank while the others remain available, and research has explored refreshing rows with long retention less often.

Banks in GPU shared memory

The word also appears in GPU programming with a related idea. CUDA shared memory is divided into 32 banks assigned in rotation every 4 bytes, and each bank serves one address per access. If the 32 threads of a warp hit distinct banks, the access completes at once; if several threads hit different addresses in one bank, the accesses are serialized, a bank conflict. Reading down a column of a 32 × 32 float tile puts every element in one bank; padding the tile to 32 × 33 shifts each row by one bank and removes the conflict.

Try it: questions about Bank

For simplicity, take the shortest interval at which rows in the same bank can be activated to be tRC = 50 ns. With a refresh period of 64 ms, the maximum number of times a neighbouring row can be activated between one refresh of a given row and the next is 64 ms ÷ 50 ns. What is this maximum number when the refresh rate is doubled?

  1. Aabout 640,000
  2. Babout 1,280,000
  3. Cabout 2,560,000
Show answer and explanation

Answer: A. about 640,000

Doubling the refresh rate makes the period64 ms2=32 ms64 ms ÷ 2 = 32 ms. The maximum number of activations in that time is32 ms50 ns=640,00032 ms ÷ 50 ns = 640,000, half of the original64 ms50 ns=1,280,00064 ms ÷ 50 ns = 1,280,000. Research has reported DRAM that flips after only a few thousand activations, so even halving the number leaves plenty for an attack, and adding refreshes alone cannot prevent it. Moreover, banks cannot be used during refresh and power rises, so the burden on performance and power consumption becomes large.

FAQ

How many banks does DDR5 have?

DDR5 x4/x8 devices of 16 Gbit and larger have 32 banks, organized into eight bank groups, compared with 16 banks in four bank groups for DDR4 x4/x8 devices; x16 devices have half as many in both cases.

What is the difference between a DRAM bank and a rank?

A bank is an independently operating array inside a single DRAM chip. A rank is a set of chips on a module that share a chip select and together supply the full data width, and each chip in it contains its own banks.

What is a shared memory bank conflict?

It occurs when threads in a GPU warp access different addresses that map to the same shared-memory bank, forcing the hardware to serialize the accesses. Padding arrays or changing the access pattern usually avoids it; all threads reading the same address is a broadcast and not a conflict.

Questions that mention Bank (5)

Bank appears in 6 practice questions across 2 topics, including DRAM, Hardware Security: Advanced Topics and Trends.

  1. Why does DRAM need periodic refresh operations?
  2. What is the main purpose of dividing the inside of a DRAM into multiple banks?
  3. As DRAM capacity grows, what tends to become a problem with respect to refresh?
  4. Which correctly describes the idea of "8n prefetch" used in memories such as DDR4 SDRAM?
  5. Which correctly describes the idea of PRAC (per-row activation counting), added to the DDR5 standard?

Books on DRAM Ad

As an Amazon Associate I earn from qualifying purchases.

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary