Menu

DRAM Address Mapping: How a Memory Controller Turns an Address Into a Bank and Row
📰

DRAM Address Mapping: How a Memory Controller Turns an Address Into a Bank and Row

DEV Community: career·Open Row·9 days ago
#6FI2zRjl
#devtocareer#devto#dev#bank#bits
Long article (589 words) — no AI summary yet.
Reading 0:00
15s threshold

Here's a question that separates people who've memorized DRAM terms from people who understand controllers: "Given a physical address, how does the memory controller decide which channel, bank, row and column it goes to?" The answer is address mapping, and the choice of mapping can swing bandwidth as much as the scheduler does.

The pieces of a DRAM address

A DDR5 system splits every physical address into fields:

Channel: which independent memory channel (each DDR5 DIMM has two 32-bit subchannels).

Rank: which set of chips on the channel.

Bank group and bank: which of the 32 banks in a DDR5 device (8 bank groups of 4 banks for 16 Gb parts).

Row: which row inside the bank gets activated.

Column: which burst inside that open row.

The controller's job is to decide which address bits feed which field.

The naive mapping and why it hurts

The simplest mapping puts the fields in order from top to bottom: row bits at the top, then bank, then column at the bottom.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.