Computer Memory

By Suresh Chand

 Important Questions

The unit which are used to store data, information, programs and its instruction either temporarily or permanently is called memory. Computer memory refers to devices that are used to store data or programs (sequences of instructions) on a temporary or permanent basis for use in an electronic digital computer. Computers represent information in binary code, written as sequences of 0s and 1s.For example RAM, ROM, Hard Disk, CD/DVD etc.

Download Application: Complete CSIT Notes Application

Computer Memory Representation:

In computing, a memory address is a reference to a specific memory location used at various levels by software and hardware. Memory addresses are fixed-length sequences of digits. Computer data storage, often called storage or memory, is a technology consisting of computer components and recording media that are used to retain digital data. It is a core function and fundamental component of computers.

A modern digital computer represents data using the binary numeral system. Text, numbers, pictures, audio, and nearly any other form of information can be converted into a string of bits, or binary digits, each of which has a value of 1 or 0. The most common unit of storage is the byte, equal to 8 bits. A piece of information can be handled by any computer or device whose storage space is large enough to accommodate the binary representation of the piece of information, or simply data.

Physical addresses

A digital computer’s memory, more specifically main memory, consists of many memory locations, each having a physical address, a code, which the CPU (or other device) can use to access it. Generally only system software, i.e. the BIOS, operating systems, and some specialized utility programs (e.g., memory testers), address physical memory using machine code operands or processor registers, instructing the CPU to direct a hardware device, called the memory controller, to use the memory bus or system bus, or separate control, address and data busses, to execute the program’s commands. The memory controllers’ bus consists of a number of parallel lines, each represented by a binary digit (bit).

The width of the bus, and thus the number of addressable storage units, and the number of bits in each unit, varies among computers.

A computer program uses memory addresses to execute machine code, store and retrieve data. In early computers logical and physical addresses corresponded, but since the introduction of virtual memory most application programs do not have a knowledge of physical addresses.

The most fundamental unit of computer memory is the bit. A bit can be a tiny magnetic region on a hard disk, a tiny dent in the reflective material on a CD or DVD, or a tiny transistor on a memory stick. Whatever the physical implementation, the important thing to know about a bit is that, like a switch, it can only take one of two values: it is either “on” or “off”.

User Loaded Image | CSIT Guide

A collection of 8 bits is called a byte and (on the majority of computers today) a collection of 4 bytes, or 32 bits, is called a word.

For example, the text “hello” would take up 5 bytes of storage, one per character. The text “12345” would also require 5 bytes

Computer Memory Hierachy | CSIT Guide

Memory Structure

1. Primary Memory

The memory unit which stores data and instruction to run computer system is called main memory. Refers to physical memory that is internal to the computer. Primary storage, or internal memory, is computer memory that is accessible to the central processing unit of a computer without the use of computer’s input/output channels. Primary storage is used to store data that is likely to be in active use.

The computer can manipulate only data that is in main memory. Therefore, every program you execute and every file you access must be copied from a storage deviceinto main memory. The amount of main memory on a computer is crucial because it determines how many programs can be executed at one time and how much data can be readily available to a program. Thus these memory units stores data and instruction temporarily. Primary storage is typically very fast, as in the case of RAM. RAM is also volatile, losing the stored information in an event of power loss, and quite expensive.

Types of  Main Memory

1. RAM(Random access Memory)

RAM is called volatile memory, which means that it stores data and instruction that the computer is using at the present moment when the power is  on and it loses its contents when the power is off. The RAM is called read/write memory where any data or instructions can be read or write in random way.

The primary functions of RAM:
  1. It stores data or program and other information those can be quickly accessed by the CPU at the time of execution at consistent rate.
  2. It stores the copy of main software program that controls the general operations of the computer. This copy is loaded into the main memory when the computer power is on.
  3. It stores data that has been input from keyboard or other input devices until instruction call for the data to be transferred into the CPU for processing.

Note: The disadvantage of RAM over physically moving media is cost, and the loss of data when power is turned off. For these reasons, nearly all PCs have disc storage as “secondary storage. and its storage capacity ranges up to MB to GB.

Types of RAM:

1. SRAM(static Random Access memory):

The word “static” indicates that the memory retains its contents as long as power remains applied, unlike dynamic RAM (DRAM) that needs to be periodically refreshed whereas SRAM do not need to refresh(ie recharging the memory circuit chips)and SRAM is a little more expensive, but faster more reliable than DRAM. SRAM is also easier to control.

2.DRAM(Dynamic Random Access Memory):

DRAM are slower ,cheaper and popular than SRAM. DRAM is called dynamic because it must constantly be refreshed or it will lose the data which it is supposed to be storing. Refreshing DRAM consists of reading the contents from the DRAM and immediately writing them back to the DRAM.

This memory cells needs to be constantly refreshed.

Types of DRAM:

A) SDRAM(Synchronous DRAM): Synchronous dynamic random access memory (SDRAM) is dynamic random access memory (DRAM) that has a synchronous interface which means it is directly depend on the clock speed of the entire system.The SDRAM can handle higher bus speed.The SDRAM is faster than DRAM ie the SDRAM could operate at up to 100MHz.

B) RDRAM(Rambus DRAM):

Stands for “Rambus Dynamic Random Access Memory.” It is a type of RAM made by Rambus (big surprise) and is the fastest type of computer memory available. Typical SDRAM can transfer data at speeds up to 133 MHz, while standard RDRAM can crank it up over 1 GHz. Though some motherboards can use RDRAM as system memory, it is so fast, most boards cannot fully benefit from the speed. Because of this, RDRAM is typically used for video memory on graphics acclerator cards, for cache memory (located on the CPU), and for system memory in high-performance workstations and servers.

C) VRAM(video-DRAM): 

It is another types of DRAM that is used in PC’S to handle graphical data and display images on the screen. it is called display or graphic memory. This memory chips is mounted on display cards,quite fast,as it needs to respond quickly to the CPU’s instructions and constantly refresh and update the screen image so that there is no flicker.

2. Cache memory

There is a small amount of high-speed memory that lies between the CPU’s and the main memory which is used to improves the processing speed of CPU’s by storing frequently used data and instruction is called cache memory. Cache memory is random access memory (RAM) that a computer microprocessor can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous reading of data), it does not have to do the more time-consuming reading of data from larger memory. The speed of CPU  is extremely high compared to the access time of main memory. Therefore the performance of CPU decreases due to the slow speed of main memory so to decreases mismatch in operating speed a small memory chip is attached between CPU and main memory which is called cache memory. These memories are very expensive as have bigger size of cache memory hence its size is normally kept small. The modern computers have two types of cache:Level1(L1): Which is called primary cache or internal cache is directly built into CPU chips which have very small capacity ranges fro 8KB to 64KB.for example: Pentium II uses L1 cache.LEVEL2:Which is not part of processor chip or external chip and consists of high-speed SRAM chip.L2 cache is slightly slower than L1 cache but larger capacity up to 2MB.

2. Non-volatile memory-ROM

NVM or non-volatile storage, is computer memory that can retain the stored information even when not powered. Examples of non-volatile memory include read-only memory, flash memory, most types of magnetic computer storage devices (e.g. hard disks, floppy disk drives, and magnetic tape), optical disc drives. Non-volatile memory is typically used for the task of secondary storage, or long-term persistent storage. The ROM that type of memory chip which store data that only can be Read only. That is the data stored in ROM can not be modified hence named Read only. Thus ROM consists of data and set of program instruction to load the computer system when you first turned on the computer. These sequence of instructions are stored permanently in ROM chips often by chip manufacturing company which is called firmware. Note: most of digital devices such as calculators, mobile, laser printer uses ROM.

Types of ROM:

  1. PROM(Programmable Read only memory):

A PROM is a blank memory chip on which data can be written only once and and can be read many times but can not changed data. Once the program has been written onto PROM ,it remains there permanently. The difference between ROM  and PROM is that  ROM is programmed during the manufacturing process where  PROM is manufactured as a blank memory. To write data on PROM you need special components PROM burner.The process of programming a PROM is called burning the PROM.

  1. EPROM(Erasable Programmable Read only memory):

EPROM chips are developed as an improvements over PROM chips.It works as PROM except that data written can be erased. so to erase data it uses special ultraviolet light and then new data can be written.To change instruction on EPROM chip,the chip must be taken out from the machine.In EPROM  we can not make changes in the data individually that have already written.To write new data or delete existing data,we have to erase all the data from the EEPROM.

  1. EEPROM(Electrically Erasable Read-only memory):

EEPROM chip avoids the inconvenience of having to take out chips out of the computer to change data and instructions.instead changes are made under software control.Unlike EPROM we can make changes to the existing data without erasing the entire data.EEPROM requires data written and erased one bit at a time.But EEPROM are expensive than other ROM.

  1. Flash Memory:

Flash Memory is special type of EEPROM that can be programmed and erased in blocks instead of one bit at a time.These memories are popular in world which are commonly used in pen drives,Digital cameras,mobile phones etc.The modern PC uses flash memory to store instructions so that which makes easily to update. Flash memory gets its name because the microchip is organized so that a section of memory cells are erased in a single action or “flash.” Flash memory is non-volatile computer memory that can be electrically erased and reprogrammed.

Download Application: Complete CSIT Notes Application

Secondary memory (Auxiliary memory)

Secondary memory is where programs and data are kept on a long-term basis. Common secondary storage devices are the hard disk and floppy disks. Secondary memory (or secondary storage) is the slowest and cheapest form of memory. It cannot be      processed directly by the CPU. It must first be copied into primary storage(also known as RAM ). Secondary memory devices include magnetic disks like hard drives and floppy disks ; optical disks  such as CDs and CDROMs ; and magnetic tapes, which were the first forms of secondary memory.

A) Magnetic Tape:

Magnetic tape is the most popular storage medium for large data, which are sequentially accessed and processed. the magnetic tape medium is a plastic ribbon, which is ½” or ¼” wide and 50 to 2400 feet long. It is coated with a magnetically recording material, such as iron oxide. This type of device is still used for large data backup because these are cheaper than other devices. Like audio or videotape, the magnetic tape used in computer system which can also erased and reused indefinitely. old data on a tape are automatically erased ,as new data are recorded in the same area. Tapes for computer are similar to the tapes used to store music. Accessing data on tapes however is much slower than accessing data on disk.

B) Magnetic Disk:

Magnetic disk is a circular disk which is coated with magnetic material. the disk rotates with very high speed inside the computer drive. Data is stored on both the surface of the disk. magnetic disks are most popular for direct access storage device. Each disk consists of a number of indivisible concentric circles called tracks. Information recorded on tracks of a disk surface in the form of magnetic spots. A good example of magnetic disks is hard disk .

  • Hard DiskThe hard disk is direct-access storage medium with a rigid magnetic disk.The disk is divided into number of tracks and each tracks are divided into sectors.A hard disk uses round, flat disks called platters, coated on both sides with a special media material designed to store information in the form of magnetic patterns. The platters are mounted by cutting a hole in the center and stacking them onto a spindle. The platters are rotated at very high speed, driven by a special spindle motor connected to the spindle. Each platters consists of READ/WRITE head to read and write data. The disks are rotated at very high speed (usually around 7200RPM-revolution per minute.)
  • Floppy DiskFloppy disk is a round, flat piece of flexible plastic coated with magnetic oxide. These are small removal, media storage device. The data is recorded on thin plastic film. Floppy disk is a soft magnetic disk and it is a thin piece of flexible plastic called floppy disk, or also called floppy Diskette .They are removable disks.A floppy disk is inserted inside the computer the floppy drive when needed. These are different sizes of floppy disk 5.25” or 3.5” having capacity 1.2MB and 1,44MB respectively.

C) Optical Disk

An optical disk is random access storage medium. It is made up glass. Optical disks uses light technology where laser beam is projected and reflected light is observed. the As compared to magnetic tape and disk, optical disk is relatively new secondary storage medium. An optical disk storage system consists of a rotating disk which is coated with a thin metal or some material that is highly reflective. This type of disk uses laser beam technology for READ/WRITE data. Due to the use of laser beam technology, optical disks are also known as laser disk or optical laser disks. Unlike magnetic disks, which have several concentric tracks, an optical disk has one long track, which starts at the outer edge and spirals inwards to the center. The optical disk has no mechanical R/W arm movements.

Advantages of optical disks:

  1. The cost-per-bit of storage for optical disks is very low, because of their low cost.
  2. The use of a single spiral track makes optical disks an ideal storage medium for reading large blocks of sequential data such as music.
  3. Optical disks have no mechanical read/write, which makes optical disks a more reliable storage medium than magnetic tapes or disks.
  4. Due to their compact size and light weight, optical disks are easy to handle, store and port from one place to another.

Limitation:

  1. The data access speed for optical disks is slower than magnetic disks.
  2. Optical disk requires a more complicated drive mechanism than magnetic disks.

Types of optical disks:

  1. CD-ROM(compact-disk read only memory): it is a music CD technology and works much like the music CD’S used in music system. The CD-ROM disk is a shiny, silver color metal disk. it has storage capacity of about 650MB or more and it is a read only storage medium such that can not be modified.
  2. CD-RW(compact disk read/write): CD-RW is a CD-Rewritable disc and this is new type of CD disc that enables us to write onto it in multiple session. Thus we can treat the optical disk just like floppy disk or hard disk writing onto multiple times.
  3. DVD( Digital versatile Disc): It is family of optical discs that are the same overall dimension of a CD, but have significantly higher capacity. DVD’s are double sided, whereas CD’s are single sided. it needs DVD drive and its capacity ranges from 4.5gb to 17GB.
Important Questions
Comments
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments