Professional Documents
Culture Documents
SLM - Unit 06
SLM - Unit 06
6.1 Introduction
As discussed in the previous unit, the history of computer development is
often referred to as the different generations of computing devices. A
generation refers to the state of improvement in the product development
process.
From the moment you switch ON the computer till you switch it OFF, the
computer uses its memory. When you request for the information the
processor fetches request information from the memory. As a computer
user you need to be aware of the memory present in a computer.
In this unit, we are going to study memory system, memory cells, memory
arrays, different types of primary memories like Random Access Memory,
Read Only Memory and we will also study about memory building blocks.
Objectives:
define memory
explain memory cells
discuss the memory arrays
list and explain Random Access Memory
list and explain Read Only Memory
list and discuss Memory building blocks
Access Time: The access time is the time required between the requests
made for a read or write operation till the data is made available at the
requested location.
Permanence of Storage: The memory which requires refreshing is called
dynamic memories. The memories which do not require refreshing are
called static memories.
Cycle Time: It is defined as the minimum time elapsed between two
consecutive read requests.
Data Transfer Rate: The amount of information that can be moved in to the
memory in a second is termed as data transfer rate or bandwidth. It is
measured in bits per second. Maximum number of bits that can be
transferred in a second depends on how many bits can be transferred in or
out of the memory simultaneously.
Self-Assessment Questions
1. Memory in a computer system is required to display the information.
(True/False)
2. ______________ is defined as the number of bits read in or out of the
memory in a single read or write operation.
3. The memories which don’t require refreshing are called _________.
Since a memory cell has both content and an address, both of which are
numbers, it is useful to use a notation to keep them separate. A common
notation is to enclose the memory cell address in square brackets, followed
by a colon, followed by the memory cell contents. For example, the notation
‘[226]: 19' specifies that memory cell [226] currently has the number 19 as
its contents.
Now, consider the two arbitrary memory cells named [227] and [875]. When
power is first applied to these two memory cells, both cells will have initial
contents of zero; this is shown below:
[227]: 0 [875]: 0
Eventually, the computer writes the number 105 into memory cell [227]; this
is shown below:
[227]: 105 [875]: 0
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]:105 are lost forever; this is shown
below:
[227]: 72 [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 identifies a memory cell is called ________.
The thirteen memory cells above have addresses from [0] to [12]. All
thirteen memory cells contain the number 0. Memory can easily be listed as
shown above and it is not very compact.
A more compact representation is to list the memory cells as an array. An
example table 6.2 shows a memory array
Table 6.2: Memory Array
First Last Digit
Digit 0 1 2 3 4 5 6 7 8 9
0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0 0
6 0 0 0 0 0 0 0 0 0 0
7 0 0 0 0 0 0 0 0 0 0
8 0 0 0 0 0 0 0 0 0 0
9 0 0 0 0 0 0 0 0 0 0
10 0 0 0 0 0 0 0 0 0 0
11 0 0 0 0 0 0 0 0 0 0
12 0 0 0 0 0 0 0 0 0 0
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], and so on. 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.
Table 6.3 shows compact memory array.
The small ‘k' in [0k], [1k], [2k], and [3k] 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 [2k]; memory cell [21]
corresponds to the second number, and so forth. The last number on the
row labeled [2k] corresponds to the [29] memory cell.
As an example of memory use, let us store any random number for each
character of the word ‘Hello!' into consecutive memory cells starting at
memory cell [22]. The conversions are listed below:
‘H’ – 62
‘e’ – 94
‘l’ – 99
‘l’ – 99
‘o’ – 104
‘$’ – 44
After the computer has stored the word ‘Hello$' into memory, the memory
array looks as shown in the table 6.4.
Table 6.4: Memory array for Hello$
[ 0k] : 0 0 0 0 0 0 0 0 0 0
[ 1k] : 0 0 0 0 0 0 0 0 0 0
[ 2k] : 0 0 62 94 99 99 104 44 0 0
[ 3k] : 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' (109) and ‘$'
(44). Table 6.5 shows a memory array for Help$$
To complete 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' (56), `y' (95), `e' (112), and `$' (44). Table
6.6 shows a resulting memory array for Bye$$$
Table 6.6: Memory array for Bye$$$
[ 0k] : 0 0 0 0 0 0 0 0 0 0
[ 1k] : 0 0 0 0 0 0 0 0 0 0
[ 2k] : 0 0 56 95 112 44 44 44 0 0
[ 3k] : 0 0 0 0 0 0 0 0 0 0
just a convention. The computer can just as easily store the least significant
digits first, as shown below:
[22]: 42153
[23]: 6987
As long as the numbers are stored consistently, problems do not arise. It
turns out that some computers store big numbers with the most significant
digits first and others store big numbers with the least significant digits first;
the former computers are called ‘big-endian' and the latter computers are
called ‘little-endian'. The terms big-endian and little-endian are a reference
to the Lilliputians in the book Gulliver's Travels written by Johnathan Swift.
6.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 bytes or words. Thus 64 kilobyte (KB) memory is
capable of storing 64 X 1024 = 65,536 bytes, (1 kilobyte = 1024 bytes). A
memory size ranges from few kilobytes in small systems to several
thousand kilobytes in large mainframe and super computers. In your
personal computer you will find memory capacity in the range of 12GB(Giga
Bytes), 8GB, 4GB, 2GB, 64 KB, 4 MB, 8 MB an even 16 MB (MB = Mega
Bytes).
Self-Assessment Questions
6. Computers use a memory cell whose contents are limited to a number
between _________ & __________.
7. Capacity of primary memory is defined in terms of ________.
Random access memory is much faster to read from and write into the
RAM, than the other kinds of storage devices in a computer such as the
hard disk, floppy disk, and CD-ROM. Random Access Memory (RAM) is
further divided into two categories
Static Random Access Memory (SRAM)
Dynamic Random Access Memory (DRAM).
Dynamic Random Access Memory (DRAM): In DRAM, the memory cell is
made up of a transistor and a capacitor and requires periodic electrical
refreshing to retain its data.
Static Random Access Memory (SRAM): Unlike a DRAM, SRAM is a type
of RAM which can retain its contents as long as electrical power is supplied
to the chip. However, if power is switched off, its contents are lost forever.
Instead of a transistor and a capacitor, the memory cell of a SRAM consists
of a memory latch (made using flip-flop circuits).Once the latch is turned
ON, it can retain its value as long as the power is ON without any
refreshing. Since these RAM do not require periodic refreshing of the
existing data, these are called static RAM and are much faster than
Dynamic RAM. Table 6.7 shows a comparison between DRAM and SRAM
Table 6.7: Comparison between DRAM and SRAM
DRAM SRAM
It is a volatile memory It is also a volatile memory
Basic memory cell consists of a Basic memory cell consists of
transistor and a capacitor several transistors only
Needs to be refreshed at regular No need to refresh at regular
intervals of time to retain its data intervals of time to retain its data.
RAM ROM
One can both read and write One can only read information from
information to a RAM the ROM
It is a volatile memory i.e. it is a It is a nonvolatile memory i.e. it is a
form of temporary memory where form of permanent memory where
the memory content is lost when the memory content is not lost even
the power is switched off. after the power is switched off.
It is usually used to form the It is usually used to form the Basic
working memory of the computer Input Output System (BIOS) chip of
the computer
There are several ROM variants that can be changed under certain
circumstances. The following are the different types of ROMs:
Programmable Read Only Memory (PROM)
Erasable Programmable Read-Only Memory (EPROM)
Flash Memory
6.6.1 Programmable Read Only Memory (PROM)
PROM is a Read Only Memory. Here the user can load and store the
contents. Once the content is written, it cannot be changed and remains
intact even if power is switched off. Therefore content written in PROM
cannot be erased or changed. PROM is also known as one-time
programmable memories or user-programmed ROM.
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 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.
6.7.4 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 Figure 6.4). 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. Figure 6.4
shows a memory cell on polycarbonate layer.
Self-Assessment Questions
16. A capacitance can be in two states: a state in which it is fully charged,
and another in which it is fully discharged. (True/False)
6.8 Summary
Memory in a computer system is required for storage and subsequent
retrieval of the information.
Characteristics of Memory Systems are storage capacity, unit of
transfer, access modes, access time, permanence of storage, cycle time
and data transfer rate
The primary memory is made up of memory cells, where every memory
cell contains exactly one number. The number contained in a memory
cell can be changed over time.
In memory arrays, every memory cell is named with a unique address
number, they are named using sequential numbers starting from the
number zero. 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 the computer system. Random Access
Memory (RAM) is a form of memory where we can both read as well as
write in to it. Random Access Memory (RAM) is divided into two
categories SRAM and DRAM
A cache memory is also a type of volatile memory like RAM but it is
much faster than RAM. Read Only Memory (ROM) is a type of memory
in which it can only read the contents but it cannot write the contents.
ROM is a non-volatile memory.
Contents written in PROM cannot be erased or changed. PROM are
also known as one-time programmable memories or user-programmed
ROM.
An EPROM is a type of read only memory in which the contents can be
erased and reprogrammed.
Flash memory is a non-volatile computer storage medium in which the
contents can be electrically erased and reprogrammed.
A number of different physical devices have been used to construct
memories of computers, some of the common ones used to construct
memories are: a capacitor storage cell, a flip-flop storage cell, a
magnetic storage cell.
Sikkim Manipal University B2071 Page No.: 137
Fundamentals of Information Technology Unit 6
6.10 Answers
Self-Assessment Questions
1. False
2. Unit of transfer
3. Static memories
4. Memory cells
5. Address
6. 0 and 255.
7. byte or words
8. Volatile
9. Dynamic Random Access Memory and Static Random Access Memory
10. Cache memory
11. Spatial locality and temporal locality
12. ROM
13. non-volatile
14. Erasable Programmable Read-Only Memory
15. Mobile phone and printer
16. True
17. flip-flop
Terminal Questions
1. Memory in a computer system is required for storage and subsequent
retrieval of the information. (Refer section 6.2)
2. The primary memory is made up of memory cells, where every memory
cell contains exactly one number. (Refer section 6.3)
3. RAM is the main memory of the computer system. RAM is a form of
memory where we can read as well as write in to it. (Refer section 6.5)