18
CIM101 : Introduction to CIM101 : Introduction to computer computer Lecture 3 Lecture 3 Memory Memory

CIM101 : Introduction to computer Lecture 3 Memory

Embed Size (px)

Citation preview

Page 1: CIM101 : Introduction to computer Lecture 3 Memory

CIM101 : Introduction to CIM101 : Introduction to computercomputerLecture 3Lecture 3MemoryMemory

Page 2: CIM101 : Introduction to computer Lecture 3 Memory

Devices that uses Devices that uses memorymemorySee

Page 3: CIM101 : Introduction to computer Lecture 3 Memory

MemoryMemory 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.

refer to the semiconductor technology that is used to store information in electronic devices. Current primary computer memory makes use of integrated circuits consisting of silicon-based transistors.

There are two main types of memory: volatile and non-volatile.

04/20/233

Page 4: CIM101 : Introduction to computer Lecture 3 Memory

Types of Computer Types of Computer MemoryMemory

04/20/23 4

Page 5: CIM101 : Introduction to computer Lecture 3 Memory

Volatile memoryVolatile memory

Volatile memory is computer memory that requires power to maintain the stored information.

Current semiconductor volatile memory technology is usually either static RAM (see SRAM) or dynamic RAM (see DRAM).

04/20/23 5

Page 6: CIM101 : Introduction to computer Lecture 3 Memory

Non-volatile memoryNon-volatile memory

Non-volatile memory is computer memory that can retain the stored information even when not powered.

Examples :read-only memory ( ROM), flash memory, most types of magnetic computer storage devices (e.g. hard disks, floppy discs and magnetic tape), optical discs, and early computer storage methods such as paper tape and punch cards.

04/20/23 6

Page 7: CIM101 : Introduction to computer Lecture 3 Memory

Classification based on Classification based on access time access time 1. Internal processor memory

(called registers).2. Main memory (primary memory).

1. Uses semiconductor technology. 2. Capacity more than processor

memory.

3. Secondary memory. 1. Capacity more than main memory.

04/20/23 7

Page 8: CIM101 : Introduction to computer Lecture 3 Memory

04/20/23 8

Page 9: CIM101 : Introduction to computer Lecture 3 Memory

Properties of memory Properties of memory devicesdevices

Access time:◦Rate at which data can be read from

or written to memory.◦Depends on physical characteristics.◦Low access time means high cost.

Punch card

CD-ROM

Magnetic Disks

RAM

COSTAccess Time

04/20/23 9

Page 10: CIM101 : Introduction to computer Lecture 3 Memory

Cost◦The purchase price.

Access mode◦Random access(access time

independent of loc)◦Serial access (access time dependent of

loc)Alterability

◦Read-only (ROM). Can not be erased.◦Read-write (RAM).

Cycle time & data transfer rate◦Time needed to perform any read or

write task.◦Maximum amount of data that can be

transferred every second. (bits/sec)04/20/23 10

Page 11: CIM101 : Introduction to computer Lecture 3 Memory

Physical characteristics◦Technology used to store data.◦The popular technologies are

electronic, magnetic, mechanical and optical.

Capacity◦The number of 0’s and 1’s the

memory can hold.◦Bit(Binary Digit).◦Byte (= 8 bits).◦Kilobyte (= 1024 bytes or 2^10 byte).

KB.◦Megabyte (= 1024 KBs). MB.

04/20/23 11

Page 12: CIM101 : Introduction to computer Lecture 3 Memory

Memory HierarchiesMemory Hierarchies

Microprocessor

Register

Built in cache

External Cache

Main Memory

Secondary Memory

Cost per bit

Access time 04/20/23 12

CapacityCapacity

Page 13: CIM101 : Introduction to computer Lecture 3 Memory

Read Only MemoryRead Only MemoryROM

◦Used to store permanent data/program.

◦ nonvolatile.◦Contains the BIOS(Basic Input Output

System).PROM( Programmable ROM)

◦Initially nothing stored.◦Data written by special programming

device.04/20/23 13

Page 14: CIM101 : Introduction to computer Lecture 3 Memory

Read Only MemoryRead Only Memory

EPROM( Erasable Programmable ROM)◦ Can be erased and re-programmed.◦ Ultraviolet light is used for alteration.◦ Need special programming device

EEPROM(Electrically EPROM)◦ Same as EPROM◦ Uses electrical pulses for alteration.◦ Can be re-programmed by keyboards

commands

04/20/23 14

Page 15: CIM101 : Introduction to computer Lecture 3 Memory

RAMRAMRead/write.Volatile.Holds data and program that will be used

by the processor.Access time (microseconds to nanosecs).MOS and bipolar are used for RAM.A single RAM chip can be 1 MB.Higher capacity RAMs are built by

connecting more than 1 RAM chip

04/20/23 15

Page 16: CIM101 : Introduction to computer Lecture 3 Memory

RAMRAM

04/20/23 16

Page 17: CIM101 : Introduction to computer Lecture 3 Memory

ClassificationClassificationStatic

◦Does not require refreshing.◦High speed, costly, less complexity,

used for cache.Dynamic

◦Needs periodical refreshing.◦Slower, low cost, main memory, high

complexity.

04/20/23 17

Page 18: CIM101 : Introduction to computer Lecture 3 Memory

Cache MemoryCache MemoryUsed for better performance.Placed between CPU and RAM.Its faster than RAM but slower

than CPU.High speed memory that holds

recently/frequently used data.

CPU CacheMain Memory

04/20/23 18