Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
How Computer Memory Works

How Computer Memory Works

Ratings: (0)|Views: 12|Likes:
Published by Sandeep Nayak

More info:

Published by: Sandeep Nayak on Jul 16, 2012
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





byJeff Tyson
When you think about it, it's amazing how many different types of electronic memory youencnny of them have become an integral part of our vocabulary:outer in daily life. Ma
Video memory 
BIOS Youlrw that thecomputeraeady kno in front of you has memory. What you may not know is thatmost of the electronic items you use every day have some form of memory also. Here are just afew examples of the many items that use memory:
Cell phones 
Game consoles 
TVs Each of these devices uses dery in different ways!In this article, you'll learn whyees of memory and what all of theterms mean.iffrent types of memothre are so many different typ
Computer Memory!
How Computer Memory Works
 How BIOS Works 
 How Caching Works 
 How Flash Memory Works 
Memory Basics
Although mest often to identifyfast, temporary forms of storag mory is technically any form of electronic storage, it is used moe. If your computer'sCPUhad to constantly access thehard drive  to retrieve evhe information is kepted tostore data temporarilery piece of data it needs, it would operate very slowly. When tin memory, the CPU can access it much more quickly. Most forms of memory are intendy.As you can see in the diagram above, the CPU accesses memory according to a distincthierarchy. Whether it comes from permanent storage (the hard drive) or input (thekeyboard),moa
(RAMst dta goes in
random access
) first. The CPU then stores pieces of data itwilleWe'lltaAll of thned to access, often in a
, and maintains certain special instructions in the
.lk about cache and registers later.e components in your computer, such as the CPU, the hard drive and theoperatingsystem, work together as a team, and memory is one of the most essential parts of this team.Frothconstan
m e moment you turn your computer on until the time you shut it down, your CPU istly using memory. Let's take a look at a typical scenario:
You turn the computer on.The computer loads data from
read-only memory
(ROM) and performs a
power-on self-test
(POST) to make sure all the major components are functioning properly. As part ofthis test, the
memory controller
checks all of the memory addresses with a quick
operation to ensure that there are no errors in the memory chips. Read/writemeans that data is written to abitand then read from that bit.The computer loads
basic input/output system
(BIOS) from ROM. The BIOS
ice recognition) capability and a few other items.provides the most basic information about storage devices, boot sequence, security,
Pand Play
(auto dev
The computer loads the
operating system
(OS) from the hard drive into the system'sRAM. Generally, the critical parts of theoperating systemare maintained in RAM as longas the computer is on. This allows the CPU to have immediate access to the operatingsystem, which enhances the performance and functionality of the overall system.
When you open an
, it is loaded intoRAM. To conserve RAM usage, manapplications load only the essential parts of the program initially and then load othery
pieces as needed.
After an application is loaded, any
that are opened for use in that application areloaded into RAM.
When you
a file and
the application, the file is written to the specified storagedevice, and then it and the application are purged from RAM.ng is loaded or opened, it is placed into RAM. This simplyes itputers, this shuffling ofdata between the CPU and RAM happens millions of times every second. When an application isclos,are usually
(deleted) from RAM to make room forneware not saved to a permanent storage device before being purged,therees acomputer ne
In the list above, every time somethimeans that it has been put in the computer's
temporary storage area
so that the CPU canaccess that information more easily. The CPU requests the data it needs from RAM, processand writes new data back to RAM in a
continuous cycle
. In most comed it and any accompanying filesdta. If the changed files ay a lost.
The Need for Speed
 One common question about desktop computers that comes up all the time is, "Why doed so many memory systems?" A typical computer has:
Level 1 and level 2 caches
ystem RAM
Normal s
Virtual memory
A hard disk
 Why so many? The answer to this question can teach you a lot about memory!Fast, powerful CPUs need quick and easy access to large amounts of data in order to maximizetheir performance. If the CPU cannot get to the data it needs, it literally stops and waits for it.Modern CPUs running at speeds of about
1 gigahertz
can consume massive amounts of data --potentially billions ofbytesper second. The problem that computer designers face is that memorythat can keep up with a 1-gigahertz CPU is extremely
-- much more expensive thananyone can afford in large quantities.Computer designers have solved the cost problem by "
" memory -- using expensivememory in small quantities and then backing it up with larger quantities of less expensivememory.The cheapest form of read/write memory in wide use today is the
hard disk
. Hard disks providlarge quantities of inexpensive, permanent storage. You can buy hard disk space for pennies permegabyte, but it can take a good bit of time (approaching aesecond) to read a megabyte off ahard disk. Because storage space on a hard disk is so cheap and plentiful, it forms the final stageof a CPUs memory hierarchy, called
virtual memory
.The next level of the hierarchy is
. We discuss RAM in detail inHow RAM Works, butseveral points about RAM are important here.ts =The
bit size
of a CPU tells you how many bytes of information it can access from RAM at thesame time. For example, a 16-bit CPU can process 2 bytes at a time (1 byte = 8 bits, so 16 bi2 bytes), and a 64-bit CPU can process 8 bytes at a time.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->