← Back to the lesson

Why RAM has to keep refreshing

Every bit is a leaky bucket of charge. The chip tops up every row, over and over, many times a second.

Interactive 3D DRAM array: capacitor buckets leak charge and each row is read and rewritten in turn

This is the text version. With JavaScript on, it’s a 3D drawing you can play, slow down and turn.

Step by step

  1. Leak. Each bit is a tiny bucket of charge, called a capacitor, with a transistor as its door. Full is 1, empty is 0. The buckets leak, so a stored 1 slowly drains. The leak is drawn much faster than a real one.
  2. Open. The memory controller, in the processor, sends a refresh command. The chip’s row picker switches on this row’s word line. Every door in the row opens at once, and each bucket shares its charge with the wire below it, called a bit line.
  3. Sense. At the end of each bit line, a sense amplifier checks the charge: more than half full is a 1, less is a 0. While a row is being refreshed, nothing else can read it.
  4. Rewrite. The sense amplifiers push the answer back up the bit lines, filling every 1 back to full, and the row closes. The controller sends a refresh for every row, every 64 milliseconds, for as long as the power is on.

From the lesson

Why does RAM need to be refreshed many times a second?

Because each bit is a tiny bucket of charge that leaks, and the chip tops them all up constantly. Grandma Ruth’s two 2 GB sticks are DDR3, an older generation of those buckets. The laptop can take 8 GB of it, and old DDR3 sticks are cheap.

Lesson 9.3: Rings, Then Buckets

More 3D drawings

All How Computers Work lessons · See it in 3D