Computer memory
Computer memory
The CPU Contains the basic instructions needed to operate the computer, but
it can’t store large sets of data permanently. The CPU does contain registers,
but these are small areas that can hold only a few bytes at a time. In addition
to registers, the CPU needs to have millions of bytes of randomly accessed
space where it can quickly read or write programs and data while they are
being used. This area is called memory.
Ex. RAM, ROM Ex. HD, CD, DVD, Pen drive etc.
Computer Memory
(According to the importance)
ROM is a primary memory used to store some embedded data and instruction
for Input-Output operation and other important operations. Unlike RAM, in a
ROM data can only be read but not write. Although in programmable ROM
data can write but it is a complex operation. Processor can direct access in
ROM and executes its internal instructions.
One important reason a computer needs ROM is that it must know that to do
when the power is first turned on. Among other things, ROM contains a set of
start-up instructions, which ensures that the rest of memory is functioning
properly, checks for hardware devices, and checks for an operating system on
the computer’s disk drives.
BIOS: The full meaning of BIOS is Basic Input Output System. A BIOS is a
MROM. The instructions of a BIOS are executed by the processor and a
POST (Power On Self Test) procedure is taken place for checking whether the
input-output devices are in working order or not.
Types of ROM
Input Buffer E
R/W { 0=write
1=read
O0
O1
A5
O2
A4
6 to 64
A3
A2
Decoder
: :
CS { CS=1
Chip Select
for read/write
A1
: :
A0
O62
O63
Output Buffer E
O3 O2 O1 O0
Fig. Internal organization of a 64x4 RAM.
Question: Draw the internal organization of a 64x4 RAM and discuss data
read write operation in it.
Answer:
Write Operation: To write any data in a location of memory, at first the input
buffer is enabled (E) by CS=1 and R/W=0. Then, the address of the specified
location is determined by decoding the address lines (A0 to A5). Finally, a
group of 4 bits data is sent through input data lines (I0 to I3) and written in the
specified memory location via input buffer.
Read Operation: To read any data in a location of memory, at first the output
buffer is enabled (E) by CS=1 and R/W=1. Then, the address of the specified
location is determined by decoding the address lines (A0 to A5). Finally, a
group of 4 bits data is sent from the specified memory location to the output
data lines (O0 to O3) via output buffer.
Answer:
SRAM DRAM
1. Faster RAM. 1. Slower RAM.
2. Made by Flip-Flops. 2. Made by charged capacitors.
3. Data density is low. 3. Data density is high.
4. No refreshing is needed. 4. Refreshing is needed.
5. Expensive. 5. Less expensive.
Question: Why RAM is called a Main memory?
Computer Memory
Hard Disk
DRAM SRAM
MROM PROM EPROM EEPROM
RDRAM SDRAM
Cache Memory
Question: What is a cache memory? Why is it important in a computer system?
Answer:
Definition of cache memory
A cache memory is a physical memory like RAM. It is smaller in capacity but
faster in operation than RAM. It is positioned in between processor and RAM.
There are two types of cache memory, such as L1 type cache memory and L2
type cache memory. L1 type cache memory is built-in into the processor and
L2 type cache memory is built-in outside the processor but inside the
motherboard.
Importance of cache memory in a computer system
There is an unbelievable speed mismatch in between the operation of a
processor and RAM. Processor is the fastest unit in a computer system, but
RAM is not as fast as processor. So, there is always a speed mismatch
problem in between them when they work together. To overcome this speed
mismatch problem, a faster memory is used in between processor and RAM.
This faster memory is called cache memory.
Question: Discuss the function of a cache memory.
Answer:
Function of a Cache Memory
Track
To write any data in a hard disk, the same processes which are followed in a
read operation are also followed here. But, in the case of a write operation, the
conversion of data are taken place from electrical form to magnetic form. The
data are sent through data bus and written from read-write head to desired
sector.
During a read/write operation, the read-write head does not contact to the
surface of a disk. There is a very fine gap (narrow space) in between a read-
write head and the surface of a disk. A hair, or a dust particle or even a smoke
particle is sufficient to contact the head to the surface of a disk. As a result, a
head crash is taken place and data of the surface are lost.
Data capacity of all tracks in a sector are equal. That is, the inner most
track contains highest density of and outer most track contains lowest density
of data.
Capacity of a Hard Disk:
Example:
Solution:
So,