Picture a shelf in a computer shop at Multiplan Center. The tag on one laptop reads: "16 GB DDR4-3200 SO-DIMM, 512 GB NVMe SSD, 12 MB L3 cache, UEFI firmware in a 16 MB flash chip". Four different things on one line, and all four are "memory". Yet they are built in four different ways, they cost different amounts per gigabyte, and they behave differently when you pull the plug. The DDR4 stick forgets everything in a blink. The SSD and the flash chip remember for years. The cache is the smallest of the four and the fastest, and it is the one the processor depends on every nanosecond.
Why so many kinds? Because no single way of keeping a bit is fast, cheap and permanent all at once. This chapter opens each kind and shows you the one idea inside it: how a bit is actually held, what that costs, and what you get in return. You will also meet the arithmetic that goes with it, because the exam papers love one particular calculation. Give a cache's size, its block size and the address width, and they ask: how many bits are the tag, the index and the offset, and how many bits does the whole cache really store?
By the end of the chapter you will be able to sort every memory device into its family and say which ones forget when the power goes. You will draw the SRAM cell and the DRAM cell, explain why DRAM needs refreshing, and work out how often a row must be refreshed. You will explain SDRAM and the DDR generations, calculate the peak bandwidth of a memory module, and tell a SIMM from a DIMM, one channel from two, and ordinary memory from ECC memory.