ArticleslgStudy

computer science

Non-volatile random-access memory

Non-volatile random-access memory is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Non-volatile random-access memory rather than just read about it. In short: Non-volatile random-access memory (NVRAM) is random-access memory that retains data without applied power. This is in contrast to dynamic random-access memory (DRAM) and static random-access memory (SRAM), which both maintain data only for as long as power is applied, or forms of sequential-access memory such as magnetic tape, which cannot be randomly accessed but which retains data indefinitely without electric pow…

Non-volatile random-access memory — main illustration
Non-volatile random-access memory — illustration

Key takeaways

  • Non-volatile random-access memory belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Non-volatile random-access memory to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Non-volatile random-access memory from memory before moving on to harder problems.

Reference excerpt

Non-volatile random-access memory (NVRAM) is random-access memory that retains data without applied power. This is in contrast to dynamic random-access memory (DRAM) and static random-access memory (SRAM), which both maintain data only for as long as power is applied, or forms of sequential-access memory such as magnetic tape, which cannot be randomly accessed but which retains data indefinitely without electric power. Read-only memory devices can be used to store system firmware in embedded systems such as an automotive ignition system control or home appliance. They are also used to hold the initial processor instructions required to bootstrap a computer system. Read-write memory such as NVRAM can be used to store calibration constants, passwords, or setup information, and may be integrated into a microcontroller. If the main memory of a computer system were non-volatile, it would greatly reduce the time required to start a system after a power interruption. Current existing types of semiconductor non-volatile memory have limitations in speed (bandwidth and latency), bit density, power consumption, or operating life that make them impractical for main memory. Development is going on for the use of non-volatile memory chips as a system's main memory, as persistent memory. A standard for persistent memory known as NVDIMM-P has been published in 2021.

Early NVRAMs Some early computers used magnetic drum, which was non-volatile as a byproduct of its construction. The industry moved to magnetic-core memory in the later 1950s, which stored data in the polarity of small magnets. Since the magnets held their state even with the power removed, core memory was also non-volatile. Other memory types required constant power to retain data, such as vacuum tube or solid-state flip-flops, Williams tube, and semiconductor memory (static or dynamic RAM). Advances in semiconductor fabrication in the 1970s led to a new generation of solid-state memories that magnetic-core memory could not match on cost or density. Today, dynamic RAM forms the vast majority of a typical computer's main memory. Many systems require at least some non-volatile memory. Desktop computers require permanent storage of the instructions required to load the operating system. Embedded systems, such as an engine control computer for a car, must retain their instructions when power is removed. Many systems used a combination of RAM and some form of ROM for these roles. Custom ROM integrated circuits were one solution. The memory contents were stored as a pattern of the last mask used for manufacturing the integrated circuit, and so could not be modified once completed. PROM improved on this design, allowing the chip to be written electrically by the end-user. PROM consists of a series of diodes that are initially all set to a single value, 1, for instance. By applying higher power than normal, a selected diode can be burned out (like a fuse), thereby permanently setting that bit to 0. PROM facilitated prototyping and small-volume manufacturing. Many semiconductor manufacturers provided a PROM version of their mask ROM part so that development firmware could be tested before ordering a mask ROM. Currently, the best-known form of both NV-RAM and EEPROM memory is flash memory. Some drawbacks to flash memory include the requirement to write it in larger blocks than many computers can automatically address, and the relatively limited longevity of flash memory due to its finite number of write-erase cycles (as of January 2010, most consumer flash products can withstand only around 100,000 rewrites before memory begins to deteriorate). Another drawback is the performance limitations preventing flash from matching the response times and, in some cases, the random addressability offered by traditional forms of RAM. Several newer technologies are attempting to replace flash in certain roles, and some even claim to be a truly universal memory, offering the performance of the best SRAM devices with the non-volatility of flash. As of June 2018, these alternatives have not yet become mainstream. Those who required real RAM-like performance and non-volatility typically have had to use conventional RAM devices and a battery backup. For example, IBM PC and successors beginning with the IBM PC AT used nonvolatile BIOS memory, often called CMOS RAM or parameter RAM, and this was a common solution in other early microcomputer systems, like the original Apple Macintosh, which used a small amount of memory powered by a battery for storing basic setup information like the selected boot volume. (The original IBM PC and PC XT instead used DIP switches to represent up to 24 bits of system configuration data; DIP or similar switches are another, primitive type of programmable ROM device that was widely used in the 1970s and 1980s for very small amounts of data—typically no more than 8 bytes.) Before industry standardization on the IBM PC architecture, some other microcomputer models used battery-backed RAM more extensively: for example, in the TRS-80 Model 100/Tandy 102, all of the main memory (8 KB minimum, 32 KB maximum) is battery-backed SRAM. Also, in the 1990s, many video-game software cartridges (e.g., for consoles such as the Sega Genesis) included battery-backed RAM to retain saved games, high scores, and similar data. Also, some arcade video-game cabinets contain CPU modules that include battery-backed RAM containing keys for on-the-fly game software decryption. Much larger battery-backed memories are still used today as caches for high-speed databases that require a performance level newer NVRAM devices have not yet managed to meet.

… excerpt ends here. Continue reading the full article.

Illustrations

Non-volatile random-access memory: Non-volatile RAM uses various technologies and form factors, including this tall IC package with internal battery used to power its SRAM and retain contents when system power is lost.[1]
Non-volatile RAM uses various technologies and form factors, including this tall IC package with internal battery used to power its SRAM and retain contents when system power is lost.[1]

Worked examples

Example 1 — a first encounter with Non-volatile random-access memory

Start with the simplest possible case. Write down what Non-volatile random-access memory claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Non-volatile random-access memory before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Non-volatile random-access memory ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Non-volatile random-access memory

In research
Non-volatile random-access memory appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Non-volatile random-access memory in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Non-volatile random-access memory is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer memory, Non-volatile memory, Non-volatile random-access memory, so understanding it makes those chapters shorter.
In everyday life
Look for Non-volatile random-access memory outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Non-volatile random-access memory” →

How to study Non-volatile random-access memory in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Non-volatile random-access memory means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Non-volatile random-access memory out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Non-volatile random-access memory in simple terms?

Non-volatile random-access memory (NVRAM) is random-access memory that retains data without applied power. This is in contrast to dynamic random-access memory (DRAM) and static random-access memory (SRAM), which both maintain data only for as long as power is applied, or forms of sequential-access…

Why does Non-volatile random-access memory matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Non-volatile random-access memory?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Non-volatile random-access memory.

Tags

  • Computer memory
  • Non-volatile memory
  • Non-volatile random-access memory
  • Random-access memory

Keep exploring