Студопедия
Случайная страница | ТОМ-1 | ТОМ-2 | ТОМ-3
АрхитектураБиологияГеографияДругоеИностранные языки
ИнформатикаИсторияКультураЛитератураМатематика
МедицинаМеханикаОбразованиеОхрана трудаПедагогика
ПолитикаПравоПрограммированиеПсихологияРелигия
СоциологияСпортСтроительствоФизикаФилософия
ФинансыХимияЭкологияЭкономикаЭлектроника

Types of Memory

Instruction Execution with the CPU | USB and FireWire | Input Devices | IDE Interface | Disk Drive Reliability | Magnetic Media | How Components Work Together |


Читайте также:
  1. A Sluggish Memory
  2. A The following are dictionary definitions of different types of markets.
  3. A) two types of combinability with other words
  4. Ask different types of questions to the text and answer your groupmates’ questions.
  5. Automatic memory management
  6. B. Computer Memory
  7. B. Some speeches are recited from memory.

Memory components include the main memory, also known as RAM, and the memory components needed to boot or start a computer, ROM and CMOS. Each of these memory components will be discussed in the following pages.

The figure below shows a top-level view of the different types of memory.

Figure 1 RAM, ROM, and CMOS

RAM

RAM (random access memory) is a temporary holding area for both data and instructions. It is also referred to as main memory. RAM stores data and instructions needed to execute programs. The data in RAM is lost when the computer is turned off. In contrast to accessing data serially, searching sequentially for the data to be retrieved, data in RAM can be accessed directly via its address. Therefore, RAM stands for "random access memory." Random access is similar to accessing a song on a CD directly via its track number, as opposed to finding a song serially on tape.

RAM is measured by its memory capacity and latency.

Capacity is the maximum number of bits or bytes that can be stored. The capacity of RAM is typically measured in megabytes (MB). Many computers have RAM capacity of 128MB or more.

Latency is the delay between the time when the memory device receives an address and the time when the first bit of data is available from the memory device. This delay is also referred to as access time. Latency is typically measured in nanoseconds (ns), billionth of a second (10-9 sec). Latency measures the speed of RAM.

Two major categories of RAM called DRAM and SRAM are discussed below.

DRAM - Dynamic RAM is a common type of RAM. It is made of an integrated circuit (IC), composed of millions of transistors and capacitors. A capacitor can hold electrons, just as a cup can hold water. An empty capacitor represents a zero, and a non-empty capacitor represents a one. Each capacitor can register either a zero or a one for a memory cell, storing one bit of data. The transistor is like a switch that controls whether the capacitor's state (charged or not charged, 1 or 0) is to be read or changed. Changing the state of a capacitor is like writing new data to a memory cell. However, a capacitor is like a cup that leaks, in order to keep its charge, the memory control needs to be recharged or refreshed periodically. Therefore, it is called the dynamic RAM because its state is not constant. Refreshing capacitors also takes time and slows down memory.

There are several types of DRAM, one is SDRAM (Synchronous Dynamic RAM) used in many personal computers. It is fast and relatively inexpensive. It is synchronized to the clock so that data can be sent to the CPU at each tick of the clock, increasing the number of instructions the processor can execute within a given time. Below is a picture of SDRAM configured as a series of DIPs (dual in-line packages), which has two rows of pins that connect the IC circuitry to a circuit board. The entire circuit board shown is called a DIMM (dual in-line memory module).

Figure 2 SDRAM circuit board

A faster version of SDRAM is DDR SDRAM (Double Data Rate SDRAM), which transfers twice the amount of data per clock cycle compared to SDRAM. Its capacity is up to 2 GB.

Another type of DRAM is RDRAM (Rambus Dynamic RAM), which has a higher bandwidth than SDRAM, but it is more expensive compared to SDRAM. The high bandwidth enhances the performance of applications that access large amounts of data through memory, i.e. real-time video and video editing. You can learn more about RDRAM.

SRAM - Static RAM is a type of RAM that uses transistors to store data. Because SRAM does not use capacitors, reading data from SRAM does not require recharging the capacitors. Therefore, it is faster than DRAM. But, because it consists of more electronic parts, it holds fewer bits and costs more compared to DRAM of the same size. SRAM is appropriate for use in the cache because it is fast and cache does not require a large memory capacity.

The following chart lists the relative capacity and price of the types of RAM mentioned above.

Type of RAM Capacity Price
SDRAM @@ $
DDR SDRAM @@@ $
RDRAM @@@ $$
SRAM @ $$$

Table 1 Comparing different types of RAM

You can learn more about RAM in the white paper, "A Basic Overview of Commonly Encountered Types of Random Access Memory (RAM)." A table comparing different types of RAM can be found on page 20 of the PDF document.

ROM

Read-only memory (ROM) is programmed with data hard-wired when it is manufactured. Data and instructions on a ROM are permanent, or nonvolatile, which means they are not lost when power is turned off. Why is ROM needed when RAM enables all the memory operations necessary for a computer? Because data in RAM is lost when the computer is turned off, some instructions are needed for the CPU to start or boot the computer when the computer is first turned on. Therefore, ROM contains a set of instructions that is needed to start the computer. These instructions tell the computer how to access the hard disk, find the operating system, and load it into RAM. Then RAM stores all subsequent instructions to be executed by the CPU.

Typically, ROM is hardwired with start-up instructions for the computer. At one time, changing the boot instructions (for example, to integrate a new video card and disable the old one) on a ROM required replacing the entire ROM chip. Currently, a type of ROM, electrically erasable programmable read-only memory (EEPROM), can be updated by applying an electrical field changing instructions stored on the chip one byte at a time. This could slow down the update process.

An alternative to EEPROM is flash memory. Flash memory is a type of EEPROM that rewrites data in chunks, usually 512 bytes in size, instead of 1 bit at a time.

CMOS Memory

Configuration settings of a computer such as storage capacity, memory capacity (RAM), and display configurations also need to be stored permanently. This information is stored in CMOS (complementary metal oxide semiconductor) memory. The CMOS chip requires very little electrical power to hold data. It can be powered by a small battery on the motherboard, or packaged with the chip. The battery maintains the data on the CMOS when the computer is turned off.

More about the role of BIOS and CMOS in booting a computer will be discussed later in unit 4: Operating System Software.

Summary

The decision diagram below indicates under what circumstances each memory device is needed.

Figure 3 Memory decision tree

The chart below shows the different memory devices including the register, which stores the results of CPU operations. The chart also lists the relative price, memory capacity, latency, and location of each device.

Memory Cost Capacity Latency Location
Register $$$$ 8-128 bits almost instantaneous On CPU close to the ALU
L1 Cache $$$ 1-100 KB ~1 ns On the CPU
L2 Cache $$ 100-1000 KB ~1 ns Between the L1 cache and the RAM
DRAM $ 1-1000 MB ~10 ns Outside the CPU on the motherboard

Table 2 Comparing memory devices

 

 

Peripherals

In addition to the microprocessor and the memory, a computer also has other devices such as the monitor, printer, keyboard, and speakers. These peripheral devices are connected via ports to the computer. Buses inside the system unit transport data among components in a computer and connect all peripheral devices to the CPU and memory. In this section, you will learn about the various types of ports and buses. You will also become familiar with some important peripheral devices of a computer.


Дата добавления: 2015-11-14; просмотров: 43 | Нарушение авторских прав


<== предыдущая страница | следующая страница ==>
Types of Processors| Expansion Slots and Cards

mybiblioteka.su - 2015-2024 год. (0.008 сек.)