Computer Memory Types

Vinayak Kokane
5 min readApr 1, 2020

--

  • Secondary memory by contrast, is usually physically located within a separate storage device, such as a hard disk drive or solid state drive (SSD), which is connected to the computer system either directly or over a network. The cost per gigabyte of secondary memory is much lower, but the read and write speeds are significantly slower.

There are two key types of primary memory:

  1. RAM, or random access memory
  2. ROM, or read-only memory

Let’s look in-depth at both types of memory.

Types of RAM

  • DRAM: DRAM stands for Dynamic RAM, and it is the most common type of RAM used in computers. The oldest type is known as single data rate (SDR) DRAM, but newer computers use faster dual data rate (DDR) DRAM. DDR comes in several versions including DDR2 , DDR3, and DDR4, which offer better performance and are more energy efficient than DDR. However different versions are incompatible, so it is not possible to mix DDR2 with DDR3 DRAM in a computer system. DRAM consists of a transistor and a capacitor in each cell.
  • What are the common types of DRAM?
  • Synchronous DRAM (SDRAM) “synchronizes” the memory speed with CPU clock speed so that the memory controller knows the exact clock cycle when the requested data will be ready. This allows the CPU to perform more instructions at a given time. Typical SDRAM transfers data at speeds up to 133 MHz.
  • Rambus DRAM (RDRAM) takes its name after the company that made it, Rambus. It was popular in the early 2000s and was mainly used for video game devices and graphics cards, with transfer speeds up to 1 GHz.
  • Double Data Rate SDRAM (DDR SDRAM) is a type of synchronous memory that nearly doubles the bandwidth of a single data rate (SDR) SDRAM running at the same clock frequency by employing a method called “double pumping,” which allows transfer of data on both the rising and falling edges of the clock signal without any increase in clock frequency.
  • DDR1 SDRAM has been succeeded by DDR2 , DDR3 , and most recently, DDR4 SDRAM. Although operating on the same principles, the modules are not backward-compatible. Each generation delivers higher transfer rates and faster performance. The latest DDR4 modules, for example, feature fast transfer rates at 2133/2400/2666and even 3200 MT/s.
  • SRAM: SRAM stands for Static RAM, and it is a particular type of RAM which is faster than DRAM, but more expensive and bulker, having six transistors in each cell. For those reasons SRAM is generally only used as a data cache within a CPU itself or as RAM in very high-end server systems. A small SRAM cache of the most imminently-needed data can result in significant speed improvements in a system

The key differences between DRAM and SRAM is that SRAM is faster than DRAM — perhaps two to three times faster — but more expensive and bulkier. SRAM is usually available in megabytes, while DRAM is purchased in gigabytes.

DRAM uses more energy than SRAM because it constantly needs to be refreshed to maintain data integrity, while SRAM — though volatile — does not need constant refreshing when it is powered up.

ROM : stands for read-only memory, and the name stems from the fact that while data can be read from this type of computer memory, data cannot normally be written to it. It is a very fast type of computer memory which is usually installed close to the CPU on the motherboard.

ROM is a type of non-volatile memory, which means that the data stored in ROM persists in the memory even when it receives no power — for example when the computer is turned off. In that sense it is similar to secondary memory, which is used for long term storage.

When a computer is turned on, the CPU can begin reading information stored in ROM without the need for drivers or other complex software to help it communicate. The ROM usually contains “bootstrap code” which is the basic set of instructions a computer needs to carry out to become aware of the operating system stored in secondary memory, and to load parts of the operating system into primary memory so that it can start up and become ready to use.

ROM is also used in simpler electronic devices to store firmware which runs as soon as the device is switched on.

ROM is available in several different types, including PROM, EPROM, and EEPROM.

Confusingly, NAND flash memory (such as that found in USB memory sticks and solid state disk drives) is a type of EEPROM, but NAND flash is considered to be secondary memory.

Secondary memory comprises many different storage media which can be directly attached to a computer system. These include:

Secondary memory also includes:

Arguably cloud storage can also be called secondary memory.

What Technology is Between Primary and Secondary Memory?

3D XPoint is more expensive but faster than secondary memory, and lower cost but slower than RAM. It is also a non-volatile memory type.

These characteristics mean that it can be used as an alternative to RAM in systems which require vast amounts of system memory that would be too expensive to build using RAM (such as systems hosting in-memory databases). The trade-off is that such systems do not enjoy the full performance gains of using RAM.

Phase-shifting computer memory could herald the next generation of RAM
Computer manufactures are always looking for the next best technology, and thanks to an impressive bit of materials science, a little-used form of random access memory (RAM) could soon be taking over the insides of your personal computer. That’s because materials scientists in China have recently found a way to speed up-by more than a factor of 10-so-called phase-change random access memory (PCRAM), which can hold onto information even when your computer’s power is off.

For decades, computers have been getting smaller, faster, and cheaper. But advances in memory technologies have slowed in recent years, prompting researchers to consider alternatives. Dreamed up in the 1960s, PCRAM has always been a promising candidate for RAM-the rewritable scratch pad that a computer’s central processor uses while making its calculations. But it was much slower than most common forms of RAM-including static RAM (SRAM) and dynamic RAM (DRAM)-which can hold information only temporarily.

To serve as computer memory, a gizmo must be able to faithfully record either a 0 or a 1. PCRAM does this by switching between two states (hence, the phase-change name): a regimented crystalline order that allows for the easy flow of electricity and a glasslike jumble of atoms that does just the opposite. PCRAM records one number when it’s in a high-conductance crystalline state and another when it’s in a low-conductance glass state. Sending a relatively large current through the material heats the bit and changes its state, writing or rewriting the data.

Originally published at https://vinayaklkokane.blogspot.com on April 1, 2020.

--

--

Vinayak Kokane
Vinayak Kokane

Responses (3)