Unit 03 - Computer Memory
Unit 03 - Computer Memory
3.1 Introduction
As discussed in the previous unit, the history of computer development is
often referred to in reference to the different generations of computing
devices. A generation refers to the state of improvement in the product
development process.
Manipal University Jaipur B1475 Page No.: 49
Fundamentals of IT and Programming Unit 3
In this unit, we are going to study the computer memory and different types
of computer memory.
Computer, memory means to the state information of a computing system,
as it is kept active in some physical structure. The term "memory" is used for
the information in physical systems which are fast (i.e. RAM), as a
distinction from physical systems which are slow to access (i.e. data
storage). By design, the term "memory" denotes to temporary state devices,
whereas the term "storage" is reserved for permanent data. Advances in
storage technology have blurred the distinction a bit memory kept on what is
conventionally a storage system is called "virtual memory".
Objectives:
describe the Primary & Secondary Memory
discuss the memory types
explain the Memory organization
the ticket printed out. The programme containing these steps is kept in
memory of the computer and is followed for each request.
The steps followed in the computer are quite different from what we see on
the monitor or screen. In computer’s memory both programs and data are
stored in the binary form. You have already been introduced with decimal
number system that is the numbers 1 to 9 and 0. The binary system has
only two values 0 and 1. These are called bits. As human beings we all
understand decimal system but the computer can only understand binary
system. It is because a large number of integrated circuits inside the
computer can be considered as switches, which can be made ON, or OFF.
If a switch is ON it is considered 1 and if it is OFF it is 0. A number of
switches in different states will give you a message like this: 110101....10.
So the computer receipts input in the form of 0 and 1 and gives output in the
form 0 and 1 only. Is it not absurd if the computer gives outputs as 0’s & 1’s
only? But you do not have to worry about. Every number in binary system
can be converted to decimal system and vice versa; for example, 1010
meaning decimal 10. Therefore it is the computer that takes information or
data in decimal form from you, convert it in to binary form, process it
producing output in binary form and again convert the output to decimal
form.
The primary memory in computer is in the form of IC’s (Integrated Circuits).
These circuits are called Random Access Memory (RAM). Each of RAM’s
locations stores one byte of information. (One byte is equal to 8 bits). A bit is
an acronym for binary digit, which stands for one binary piece of information.
This can be either 0 or 1. The Primary or internal storage section is made up
of several small storage locations (ICs) called cells. Each of these cells can
store a fixed number of bits called word length.
Each cell has a unique number assigned to it called the address of the cell
and it is used to identify the cells. The address starts at 0 and goes up to
(N-1) you should know that the memory is like a large cabinet containing as
many drawers as there are addresses on memory. Each drawer contains a
word and the address is written on outside of the drawer.
Self Assessment Questions
1. Computer memory is used to ________ & __________.
2. If a switch is ON, it is considered as _______.
3. Each of RAM’s locations stores _________ byte of information.
Later on, the computer writes the number 106 into memory cell [875]; this is
shown below:
[227]: 105 [875]: 106
Even later on, the computer overwrites memory cell [227] with 72. The
previous contents of memory cell [227] are lost forever; this is shown below:
[227]: 72 [875]: 106
Finally, at some even later point in time, the number 105 is stored back into
memory cell [227]. Again, the previous contents of memory (72) cell [227] is
lost forever; this is shown below:
[227]: 105 [875]: 106
The computer reads and overwrites the contents of memory cells [227] and
[875] as many times as needed to accomplish its current task.
Self Assessment Questions
4. Primary computer memory is made up of __________.
5. The unique number that names a memory cell is called ________.
The thirteen memory cells above have addresses from [0] to [12]. All
thirteen memory cells contain the number 0. While memory can easily be
listed as shown above, it is not very compact.
A more compact representation is to list the memory cells as an array. An
example memory array is shown below and the paragraph describing it
follows:
Every row lists the contents of ten consecutive memory cells. Thus, the first
row lists the contents of the ten memory cells whose addresses are [0]
through [9], the second row lists the contents of the ten memory cells whose
addresses are [10] through [19], etc. For the memory array above, every
memory cell has a content of zero.
An even more compact representation is possible by dropping all of the lines
between rows and columns and dropping all of the column headings. An
example of the more compact representation is shown below:
[ 0x] : 0 0 0 0 0 0 0 0 0 0
[ 1x] : 0 0 0 0 0 0 0 0 0 0
[ 2x] : 0 0 0 0 0 0 0 0 0 0
[ 3x] : 0 0 0 0 0 0 0 0 0 0
The small ‘x' in [0x], [1x], [2x], and [3x] is a place holder for the last digit of
the memory cell address. Thus, memory cell [20] corresponds to the first
number after the colon on the row labeled [2x], memory cell [21]
corresponds to the second number, and so forth. The last number on the
row labeled [2x] corresponds to the [29] memory cell.
As an example of memory use, let's store each character of the word ‘Hello!'
into consecutive memory cells starting at memory cell [22]. For
convenience, the conversions are listed below:
‘H’ – 74
‘e’ – 101
‘l’ – 108
‘l’ – 108
‘o’ – 111
‘!’ – 33
After computer has stored the word ‘Hello!' into memory, the memory looks
as follows:
[ 0x] : 0 0 0 0 0 0 0 0 0 0
[ 1x] : 0 0 0 0 0 0 0 0 0 0
[ 2x] : 0 0 74 101 108 108 111 33 0 0
[ 3x] : 0 0 0 0 0 0 0 0 0 0
The word ‘Hello!' can be changed into ‘Help!!' by overwriting memory cells
[25] and [26] with the numbers corresponding to the letters ‘p' (112) and ‘!'
(33). The resulting memory looks as follows:
[ 0x] : 0 0 0 0 0 0 0 0 0 0
[ 1x] : 0 0 0 0 0 0 0 0 0 0
[ 2x] : 0 0 74 101 108 112 33 33 0 0
[ 3x] : 0 0 0 0 0 0 0 0 0 0
To finish off the example, the word `Help!!' can be changed into `Bye!!!' by
overwriting memory cells [22] through [25] with the numbers corresponding
to the letters `B' (68), `y' (121), `e' (101), and `!' (33). The resulting memory
looks as follows:
[ 0x] : 0 0 0 0 0 0 0 0 0 0
[ 1x] : 0 0 0 0 0 0 0 0 0 0
[ 2x] : 0 0 68 121 101 33 33 33 0 0
[ 3x] : 0 0 0 0 0 0 0 0 0 0
In Gulliver's Travels, the war between the Lilliputians was over whether hard
boiled eggs should be eaten from the big end of the egg first or the little end
of the egg first. Obviously, it is pretty silly to have a war over which end of a
hardboiled egg to eat first. Likewise, as long as a computer is consistent, it
does not matter whether it is big-endian or little endian. Sometimes
computer scientists will get into arguments whether big-endian or little-
endian representations are better; such arguments are ultimately pretty silly
and should be ignored. When a number is transmitted between a little-
endian computer and a big-endian computer, one of the computers will have
to reverse the sequence of smaller numbers prior to further processing.
3.4.3 Capacity of Primary Memory
Each memory cell contains one character or 1 byte of data. So the capacity
is defined in terms of byte or words. Thus 64 kilobyte (KB) memory is
capable of storing 64 X 1024 = 65,536 bytes. (1 kilobyte is 1024 bytes). A
memory size ranges from few kilobytes in small systems to several
thousand kilobytes in large mainframe and super computer. In your personal
computer you will find memory capacity in the range of 64 KB, 4 MB, 8 MB
and even 16 MB (MB = Million bytes).
Self Assessment Questions
6. Computers use a memory cell whose contents are limited to a number
between _________ & __________.
7. For example, the nine digit number 123456789 is stored as the number
_________ and ________ in the next cell.
the main memory but they store data or information temporarily and pass it
on as directed by the control unit.
Self Assessment Questions
8. ____________ is the main memory of a computer system used for
storing programs and data.
9. Volatile random access memory devices may be further divided into
_______________.
10. _________ is a memory device for reading and writing information
wherein multi-layer ferromagnetic thin films.
resistance. The NOR flash memory lowers the resistance by providing one
through-hole to bit line for two cells connected in parallel. A NAND flash
memory device is comprised of memory cells serially connected between a
drain selection transistor and a source selection transistor in the unit of 16 or
32 in number.
The flash memory cells of the NAND flash memory device include a current
path formed between the source and drain on a semiconductor substrate,
and a floating gate and a control gate that are connected over the
semiconductor substrate with an insulator intervened between them. NAND
flash memory devices are typically used as mass data storage devices, and
NOR flash memory devices are typically used as information storage
devices for high speed data processing.
Flash memory devices are increasing applications in smart cards for
recording, storing and transporting digital information. Flash memory cards
are currently used in digital cameras for recording and storing pictures that
can be later displayed on personal computers, TVs screen or printed
material. Flash memories in smart cards are being used not only for storing
data but also for storing application programs such as fingerprint
identification, identification cards, health records, transportation programs
and many more applications which include encryption for personal security,
and also applications such as e-passport, credit card, JAVA card subscriber
identity module (SIM).
Self Assessment Questions
11. EEPROM stands for ___________.
12. ___________ Memory is a type of EEPROM device that can be erased
and reprogrammed in blocks instead of one byte at a time.
External memory is for the long term storage of information. Data from
external memory will be transferred to the main memory before the CPU can
operate on it. Access to the external memory is much slower, and usually
involves groups of several hundred bytes.
External memory is also known as backing store or secondary memory,
allows the permanent storage of large quantities of data. Some technique of
magnetic recording on magnetic disks or tapes is most commonly used.
More recently, optical methods which rely upon marks fixed by a laser beam
on the surface of a disc (CD-ROM) have become popular, although they
remain more expensive than magnetic media. The capacity of external
memory is high, usually measured in hundreds of megabytes or gigabytes
even in tetra byte at present. External memory has the important property
that the information stored is not lost when the computer is switched off.
Common form of external memory is a hard disc which is permanently
installed in the computer and will typically have a capacity of Gigabytes. A
hard disc is a flat, circular oxide-coated disc which rotates continuously.
Information is recorded on the disc by magnetising spots of the oxide
coating on concentric circular tracks. Figure 3.1 shows internal hard disk &
external hard disk which are used in the computers.
An access arm in the disc drive positions a read/write head over the
appropriate track to read and write data from and to the track. This means
that before accessing or modifying data the read/write head must be
positioned over the correct track. This time is called the seek time and is
measured in milliseconds. There is also a small delay waiting for the
appropriate section of the track to rotate under the head.
Manipal University Jaipur B1475 Page No.: 63
Fundamentals of IT and Programming Unit 3
This latency is much smaller than the seek time. Once the correct section of
the track is under the head, successive bytes of information can be
transferred to the main memory at rates of several megabytes per second.
This discrepancy between the speed of access to the first byte required, and
subsequent bytes on the same track means that it is not economic to
transfer small numbers of bytes. Transfers are usually of blocks of several
hundred bytes or even more. Notice that the access time to data stored in
secondary storage will depend on its location.
The hard disc will hold all the software that is required to run the computer,
from the operating system to packages like Word-processing, Spread sheet
programs, Image processing, 3D Animation, Audio producing. The entire
user's data and programs will also be stored on the hard disc. In addition,
most computers have some form of removable storage device which can be
used to save copies of important files etc.
Self Assessment Questions
13. External memory is for the long term storage of information.
(True/False)
14. External memory which is sometimes called backing store or
secondary memory. (True/False)
Mechanical frame, and Circuit board. Figure 3.2 shows floppy disk drive
which is used in most of the computers.
The design of floppy disk is similar to the hard drive: it operates on the
principles of magnetic recording; it uses magnetic heads for data storage
and retrieval from the rotating magnetic media. The main differences are in
the quality of the media (with much lower magnetic performance for the
floppy) and low rotational speed of the disk – about 300 rotations per
minute. Another difference – continuous contact between two spring-loaded
sliders and the media is not, most likely, going to exist forever. Today's hard
drives already show some level of slider-disk interference at much higher
velocities (beyond 7500 rpm).
The 8 inch floppy disk design first invented by IBM in the late 1960s and
used in the early 1970s as first a read-only format and then as a read-write
format. The typical desktop/laptop computer does not use the 8-inch floppy
disk. Similarly, 5¼ inch common size for PCs made before 1987 and the
predecessor to the 8-inch floppy disk. This type of floppy is generally
capable of storing between 100K and 1.2MB (megabytes) of data. The most
common sizes are 360K and 1.2MB. Another one is 3½-inch floppy is
something of a misnomer for these disks, as they are encased in a rigid
envelope. Despite their small size, microfloppies have a larger storage
capacity than their cousins – from 400K to 1.4MB of data. The most
common sizes for PCs are 720K (double-density) and 1.44MB (high-
density). Macintoshes support disks of 400K, 800K, and 1.2MB.
Compact disk data format that specifies space for data, address
information, and error correction codes.
Error correction code (ECC) scheme, with room for additional data and
ECC.
The CD-ROM standards, also created by Sony and Phillips, use the same
disk and scanning technology, and the same mastering and replication
technique as used for CD-DA. The only difference between CD-DA and CD-
ROM is in the data format, more powerful ECC, and more precise data
addressing for CD-ROM. Most of the following explanation applies equally
applied to CD-DA and CD-ROM.
Self Assessment Questions
17. VLP stands for __________.
18. The CD-ROM standards, also created by Sony and Phillips, use the
same disk and scanning technology. (True/False)
To read data stored on the surface, a read head is used. The read head
called a magneto resistive head. The resistance of this head increases if a
magnet with SN alignment is placed below it and the resistance
decreases if the alignment of a magnet below it is opposite, namely, N S.
The current i(t) flowing through the head is proportional to the resistance of
the head. Thus, if the current increases we say that a 1 is read (1 is N S),
and if it decreases then a 0 is read. Recording on a magnetic surface is
used in magnetic hard disk, floppy disk and magnetic tape.
3.11.4 A Polycarbonate Cell
This cell is used in laser disks or compact disks. The surface of a thin
polycarbonate substrate is coated with a shiny material, usually aluminum.
Above this, a protective layer is coated (see Fig 3.6). To write bits on this
surface a laser beam is used. Whenever a “1” to be written, the beam is
turned on and burns a ‘pit’ up to the reflective layer. Wherever a “0” is to be
written, the laser beam is defocused and no ‘pit’ is burnt. A sequence of
cells, each cell being a pit or no pit (no ‘pit is called a ‘land’) is traced along
a spiral track on the surface as the disk is rotated. Reading is accomplished
by rotating the disk and moving a laser beam along a track. Whenever there
is a ‘land’ light reflects from the reflective layer and no light gets reflected
from a ‘pit’. The reflecting light is sensed by an electronic light sensing
device and converted to an electrical signal representing a 0 or 1.
3.12 Summary
In computer, memory denotes to the state information of a computing
system, as it is kept active in some physical structure.
There are two kinds of computer memory: primary and secondary.
Primary computer memory is made up of memory cells, where each
memory cell contains exactly one number.
Memory cells are limited to positive and negative numbers of five digits
or less (i.e. -99999 to 99999.)
Ram is the main memory of a computer system used for storing
programs and data.
A cache memory and a main memory are used for a large scale
integration circuit having a central processing unit.
EEPROM comprise a large number of memory cells having electrically
isolated gates (floating gates).
A flash memory is a type of flash EEPROM device that can be erased
and reprogrammed in blocks instead of one byte at a time.
The history of the compact disk (CD) started with the videodisk in the
form of Video Long Play (VLP) read-only systems.
3.14 Answers
Self Assessment Questions
1. Execute a program & Store a data
2. 1
3. One byte (8 bits)
4. Memory cells
5. Address
6. 0 and 255.
7. 1234 in one cell & 56789
8. Random Access Memory
9. Static random access memory & Dynamic random access memory
10. MRAM
11. Electrically erasable programmable read-only memory
12. Flash memory
13. True
14. True
15. True
16. True
17. Video Long Play
18. True
19. Magnetic storage device.
20. True
21. True
22. flip-flop
Terminal Questions
1. In computer, memory denotes to the state information of a computing
system, as it is kept active in some physical structure. Refer section 3.1
& 3.2.
2. Primary computer memory is made up of memory cells, where each
memory cell contains exactly one number. Refer section 3.3.
3. Is the main memory of a computer system used for storing programs
and data. Refer section 3.5.
4. A cache memory and a main memory are used for a large scale
integration circuit having a central processing unit. Refer section 3.5.1.
5. It is secondary memory in computer, which is called Read Only Memory
(ROM). Refer section 3.6.
6. A number of different physical devices have been used to construct
memories of computers. Refer section 3.11.