In Digital Logic Design, memory looks like a grid. There are rows, columns, decoders, and wires crossing a page. Then assembly class begins, and memory suddenly becomes a long sequence of addresses: 0, 1, 2, 3, and so on.
It can feel as though the two classes are describing different machines. If memory has two dimensions, why does a load instruction usually need only one address? Where did the other coordinate go?
The answer is that the circuit’s arrangement and the programmer’s address space describe different things. Hardware needs a practical way to store and select bits; software needs a consistent way to name the data it wants.
We will connect those views with one small example, then separate two ideas that are often mixed together: mapping addresses into DRAM and translating virtual addresses into physical addresses. You need only binary place values and the idea that a byte contains eight bits.
The Hardware Reality: Memory as a 2D Grid (The DLD View)
A memory chip stores information in cells. In the usual introductory semiconductor-memory diagram, each cell holds one bit, and many cells form a repeating array.
Two sets of wires help reach those cells:
- A Word Line runs along a row and enables access to cells in that row.
- A Bit Line runs along a column and carries signals used to read or write cells.
- A Row Decoder interprets row-address bits and activates the appropriate word line.
- Column selection circuitry chooses which part of the activated row connects to the data interface.
A decoder turns a compact binary choice into a selection signal. For example, two row-address bits can choose one of four rows. The wires drawn across the grid are internal connections, not necessarily separate pins on the chip package.
This is a schematic bit-cell array. Activating a word line enables a row of cells; column circuitry and the device’s data width determine what is transferred.
A word line is a circuit term. It does not mean that every physical row holds exactly one CPU word. A processor’s word size, a chip’s I/O width, and the amount of data in a DRAM row are separate quantities.
The details also depend on the memory technology. SRAM commonly uses paired bit lines, while DRAM senses small changes associated with stored charge. The SRAM22 layout documentation shows a real SRAM design with a regular bit-cell array, row decoding, and column circuitry.
Why hardware uses rows and columns
Imagine laying out a huge memory as one extremely long row. The connections would be awkward, and long wires would bring electrical costs. Repeating cells across compact arrays makes storage, decoding, and routing more manageable.
This is the point of the Digital Logic Design (DLD) memory view: it explains what the hardware must build. Its dimensions follow circuit-design needs, rather than the shape of a programmer’s variable.
There is also a pin-count benefit in DRAM, but it needs a precise explanation. Many DRAM interfaces reuse address connections at different times to send row and column information, instead of requiring a separate external pin for every address bit at once.
Consider a teaching example with 12 row bits and 12 column bits. Reusing 12 connections in two phases can convey those 24 address bits, with additional command and control signals still required. Merely drawing a two-dimensional grid does not, by itself, halve every memory chip’s pins.
Harvard’s main-memory lecture connects row/column organization, multiplexed addresses, and the internal row buffer. Modern interfaces have more detailed command encodings, so the simple two-phase picture should be treated as an introduction.
The Software Abstraction: Memory as a 1D Line (The Assembly View)
Software usually names memory locations with a single number: an address. In a byte-addressed system, address A identifies one byte, and A+1 identifies the next byte in that address space.
For example, a small region might contain:
| Byte address | Stored value, in hexadecimal |
|---|---|
| 0 | 11 |
| 1 | 2A |
| 2 | 7C |
| 3 | 00 |
| 4 | 09 |
| 5 | FF |
The address names the location. The stored value is what is currently there. Changing the value at address 5 does not rename that location.
Each box is one addressable byte. The address and the value stored at that address are different numbers.
This is the familiar basis of Assembly language memory addressing. An instruction can name a byte directly or compute an address from a base, an index, and an offset. The hardware eventually receives one resulting address for that access.
For an array of four-byte elements beginning at byte address 1000, element 3 begins at address 1012 when indexing starts at zero: 1000 + 3 × 4. The element occupies bytes 1012 through 1015, rather than one giant byte at 1012.
The RISC-V ISA specification, for example, explicitly describes a byte-addressable address space. It also distinguishes the size of a load or store from the address identifying its starting location. RISC-V memory model
Why the one-dimensional view is useful
A numbered address space gives instructions a stable interface. The same idea of “load data from this address” can survive changes to chip density, bank organization, and physical layout.
It also makes common calculations straightforward: add one to reach the next byte, add an element’s size to reach the next array element, or add an offset to reach a field within a record.
That does not mean software always visits memory in order. Branches, pointers, stacks, and indexed accesses can jump around. Linear addressing describes how locations are named, not a requirement for linear program execution.
Nor does an address space promise that every possible address is backed by usable RAM. Some regions may be unmapped, protected, or assigned to devices. The line of boxes is an interface model, not an inventory of every physical storage cell.
The Magic Bridge: How 2D Becomes 1D (The Memory Controller)
The bridge becomes easier to understand once we separate address translation from memory-device selection. Both transform address information, but they solve different problems.
In a typical application running under an operating system, a load begins with a virtual address. The CPU’s Memory Management Unit (MMU) uses mappings established by the operating system to translate it into a physical address; a translation cache called a TLB can make that lookup faster.
The Memory Controller handles the DRAM side. For an access that needs DRAM, it maps the physical address into the relevant device-selection fields and issues the commands needed to obtain or update data.
The distinction matters when discussing Physical vs logical memory. In some architecture texts, “logical address” has a specific meaning; here, the one-dimensional software view means the address space visible to the program. A physical address can also be a single number.
Microsoft’s explanation of virtual address spaces illustrates why adjacent virtual addresses need not correspond to adjacent physical pages. That is a separate issue from whether a chip’s cells are arranged in rows and columns.
Turn one number into two coordinates
Now temporarily remove paging, caches, banks, and burst transfers from the example. Suppose a tiny teaching memory contains four rows of eight byte-sized slots, numbered consecutively across each row.
This is a byte-slot model for address arithmetic. It is different from the earlier bit-cell diagram, where each intersection represented a single bit.
For physical address A:
row = A // 8
column = A % 8
Here, // means integer division, and % gives the remainder. Address 21 produces row 2 and column 5 because 21 = 2 × 8 + 5.
The reverse calculation is equally useful:
address = row × 8 + column
= 2 × 8 + 5
= 21
The information has not changed. One number and a pair of coordinates identify the same slot under the chosen mapping.
With eight columns, three binary bits identify the column. In this particular model, address 21 is binary 10101: the upper two bits, 10, select row 2, and the lower three bits, 101, select column 5.
The top stage illustrates paging. The bottom stage illustrates a chosen row/column mapping. Neither is a universal address map for all computers.
What a real controller adds
A real DRAM system needs more information than one row and one column. Depending on its design, selection can include a channel, rank, bank group, bank, row, column, and an offset within the transferred data.
The mapping need not use a simple upper-bits/lower-bits split. AMD’s controller address-map documentation shows different configurable arrangements, while its Zynq controller reference explicitly describes mapping byte-addressable physical addresses into DRAM row, bank, and column addresses.
This is the useful meaning of Memory controller address translation in this discussion: mapping physical address information into the memory system’s organization. It should not be used to claim that the controller normally performs an application’s page-table translation.
The controller also schedules work. An access may need to open a row, select data from it, and eventually close that row before opening another in the same bank. Different banks allow more scheduling opportunities.
AMD’s DRAM addressing guide explains why switching rows can add overhead. Those operations help explain why “random access” does not mean every access takes exactly the same time.
One final limit keeps the picture honest: a CPU load can be satisfied by a cache. Even when DRAM is needed, the system often transfers a block or burst of data rather than retrieving exactly one isolated byte-cell for the instruction.
The byte address tells the system which data the program means. It does not dictate that every internal wire carries precisely one byte at a time.
A Real-World Analogy to Make It Click
Imagine a small planned neighborhood with four streets and eight plots per street. The city labels the streets 0 through 3 and the avenues 0 through 7.
A delivery service gives the 32 plots mailbox numbers 0 through 31, counting across each street before moving to the next. Mailbox 21 is therefore on street 2 at avenue 5.
The delivery label supplies one number; the map supplies coordinates. Both refer to the same place under this numbering rule.
Someone sending a letter needs only the mailbox number. The delivery service needs enough knowledge of the neighborhood to find the plot.
The programmer’s address plays the role of that compact delivery label. The hardware’s mapping supplies the additional location and access details needed to reach stored data.
The analogy has a limit. Real controllers may distribute nearby addresses across banks or channels, so a physical chip is not necessarily laid out like this row-major neighborhood. The example demonstrates how a mapping can exist, not how every memory system must map addresses.
And if the letter first used a private customer account number that had to be looked up in another directory, that would be another naming step. Likewise, OS virtual-memory translation should stay separate from the row-and-column explanation.
Conclusion: Keep the Views, Connect the Layers
The 2D memory grid vs 1D memory array question becomes less mysterious when you ask what each picture is trying to explain.
The DLD picture shows cells, wiring, and selection circuits. The assembly picture gives instructions a numbered address space. A memory controller connects physical addresses to the organization and timing of DRAM, while an MMU usually handles virtual-to-physical translation when paging is enabled.
To check your understanding, try address 30 in the eight-column toy memory. Integer division gives row 3, and the remainder gives column 6; 3 × 8 + 6 reconstructs 30.
Now ask why the same calculation cannot identify a real laptop’s DRAM bank without knowing its controller’s mapping. That question marks the boundary between a helpful teaching model and the details of an actual machine.
Understanding how computer memory works means learning to move between these layers. Your hardware and assembly classes are giving you complementary tools for doing that.
Related articles in Computer Architecture
- GPU Compute, Latency, and Throughput — Understand GPU acceleration, memory constraints, inference latency, and throughput for AI workloads.
- How Computers Translate 1s and 0s into Screen Images — How binary memory states are mapped into RGB subpixel voltages and flashed onto physical monitor grids.
- Two's Complement: How Computers Represent Negative Integers — Two's complement is how CPUs store signed integers: count backward past zero, negate by inverting and adding 1, and let one adder handle signed math.