eet 450 - advanced digital chapter 4 computer memory

27
EET 450 - Advanced EET 450 - Advanced Digital Digital Chapter 4 Chapter 4 Computer Memory Computer Memory

Post on 21-Dec-2015

225 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: EET 450 - Advanced Digital Chapter 4 Computer Memory

EET 450 - Advanced EET 450 - Advanced DigitalDigital

Chapter 4Chapter 4

Computer MemoryComputer Memory

Page 2: EET 450 - Advanced Digital Chapter 4 Computer Memory

MemoryMemory

Primary and Secondary StoragePrimary and Secondary Storage– Primary is part of main memoryPrimary is part of main memory

at one point, DISK, DRUM, or CORE at one point, DISK, DRUM, or CORE memory was used.memory was used.

– Secondary is an antiquated view of a Secondary is an antiquated view of a system, but usually refers to mass system, but usually refers to mass storage.storage.

Old technology included the use of punch Old technology included the use of punch card, tape or DISK/DRUM memorycard, tape or DISK/DRUM memory

Page 3: EET 450 - Advanced Digital Chapter 4 Computer Memory

MemoryMemory

Main memory in modern PC’s uses a Main memory in modern PC’s uses a volatile type of memoryvolatile type of memory– Semiconductor memory is the ruleSemiconductor memory is the rule

Non-Volatile memory is used for special Non-Volatile memory is used for special purpose functions within the PCpurpose functions within the PC– BIOSBIOS– CMOS - is battery backup version on non-CMOS - is battery backup version on non-

volatile memoryvolatile memory– EEPROM or FLASH memory EEPROM or FLASH memory

Page 4: EET 450 - Advanced Digital Chapter 4 Computer Memory

MeasurementMeasurement

Capacity of memory is based on Capacity of memory is based on the amount of digital information the amount of digital information that can be stored.that can be stored.– Bits/ Bytes/ NibblesBits/ Bytes/ Nibbles– WordsWords– Double WordsDouble Words– Quad WordsQuad Words– LineLine

Page 5: EET 450 - Advanced Digital Chapter 4 Computer Memory

Memory is used in modern based Memory is used in modern based on GRANULARITYon GRANULARITY– the smallest amount of memory that the smallest amount of memory that

can be addressedcan be addressed– Increased bus widths have Increased bus widths have

INCREASED the size of the smallest INCREASED the size of the smallest granule accessedgranule accessed

Pentium/Pentium Pro use eight-byte Pentium/Pentium Pro use eight-byte modules modules

Page 6: EET 450 - Advanced Digital Chapter 4 Computer Memory

TechnologiesTechnologies

Random Access MemoryRandom Access Memory– Dynamic MemoryDynamic Memory

Data InData Out

Page 7: EET 450 - Advanced Digital Chapter 4 Computer Memory

Static Memory - referred to as Static Memory - referred to as SRAM SRAM

Read Only Memory ROMRead Only Memory ROM– Mask ROM - older bios chipsMask ROM - older bios chips– PROM - ProgrammablePROM - Programmable– EPROM - Erasable Programmable ROMEPROM - Erasable Programmable ROM– EEPROM - Electrically Erasable PROMEEPROM - Electrically Erasable PROM– Flash MemoryFlash Memory

Page 8: EET 450 - Advanced Digital Chapter 4 Computer Memory

Where’s the MemoryWhere’s the Memory

Memory uses in a PCMemory uses in a PC

CPU

CACHE

L1

CACHE

L2

Main Memory

Mass StorageCache

Page 9: EET 450 - Advanced Digital Chapter 4 Computer Memory

Memory UseMemory Use

Storage of program information Storage of program information Storage of BOOT informationStorage of BOOT information

– program and settingsprogram and settings Storage of DATAStorage of DATA

Page 10: EET 450 - Advanced Digital Chapter 4 Computer Memory

Logical OrganizationLogical Organization

Real Mode Memory - Real Mode Memory - – legacy of the 8086 processorlegacy of the 8086 processor– 1 Mbyte address space1 Mbyte address space

base memorybase memory

Page 11: EET 450 - Advanced Digital Chapter 4 Computer Memory

Logical OrganizationLogical Organization

Protected Mode memoryProtected Mode memory– Provides the entire address space of Provides the entire address space of

the processorthe processor– 4 Gbytes +4 Gbytes +

Lower MemoryLower Memory– Legacy stuff againLegacy stuff again– < 640k - conventional DOS memory< 640k - conventional DOS memory

Page 12: EET 450 - Advanced Digital Chapter 4 Computer Memory

BIOS Data AreaBIOS Data Area– Vector Table - lower 1kVector Table - lower 1k

Upper MemoryUpper Memory– the upper 384k of memory address the upper 384k of memory address

spacespace– top 32K - ROM Bios memorytop 32K - ROM Bios memory

Page 13: EET 450 - Advanced Digital Chapter 4 Computer Memory

High MemoryHigh Memory– 64kB+16 bytes above Upper memory 64kB+16 bytes above Upper memory – address line A20 allows thisaddress line A20 allows this– a function of binary round-offa function of binary round-off

Frame Buffer memoryFrame Buffer memory– Part of video memoryPart of video memory

Page 14: EET 450 - Advanced Digital Chapter 4 Computer Memory

Shadow MemoryShadow Memory– Provides solution to slower ROM memory Provides solution to slower ROM memory

providing BIOS functions. providing BIOS functions. ROM memory is slower than fast RAM for a ROM memory is slower than fast RAM for a

variety of reasons - bus width, intrinsic speed, variety of reasons - bus width, intrinsic speed, etc.etc.

– BIOS is ‘shadowed’ into RAM at boot time, BIOS is ‘shadowed’ into RAM at boot time, allowing faster access to these functions.allowing faster access to these functions.

– Other ROM memory - controller cards, Other ROM memory - controller cards, video, etc may be shadowed.video, etc may be shadowed.

Page 15: EET 450 - Advanced Digital Chapter 4 Computer Memory

Cache MemoryCache Memory– provides the speed interface between provides the speed interface between

slower memory/devices and the faster slower memory/devices and the faster memory/devicesmemory/devices

Page 16: EET 450 - Advanced Digital Chapter 4 Computer Memory

System Resource MemorySystem Resource Memory– Memory allocated by ‘heaps’ Memory allocated by ‘heaps’ – older OS problems with release of older OS problems with release of

memory on program exit.memory on program exit.

Page 17: EET 450 - Advanced Digital Chapter 4 Computer Memory

Unified Memory ArchitectureUnified Memory Architecture– UMAUMA– maps main memory into video display maps main memory into video display

address space address space

Page 18: EET 450 - Advanced Digital Chapter 4 Computer Memory

PerformancePerformance

Memory SpeedMemory Speed– based on access speed of integrated based on access speed of integrated

circuitscircuits -12 is 120 nS memory, -12 is 120 nS memory,

– Must have faster memory than called Must have faster memory than called for by processor speed.for by processor speed.

– Bus interface may be the problem.Bus interface may be the problem.

Page 19: EET 450 - Advanced Digital Chapter 4 Computer Memory

CachingCaching

Cache Size - 1k Cache Size - 1k – 256 k most favored256 k most favored

Note: Celeron processor suffered Note: Celeron processor suffered severe performance penalties by severe performance penalties by failing to include Cache memoryfailing to include Cache memory

Page 20: EET 450 - Advanced Digital Chapter 4 Computer Memory

Cache PerformanceCache Performance– four sectionsfour sections

show cache hits for access to store a show cache hits for access to store a single line - one for each transfersingle line - one for each transfer

1-1-1-1 would be best1-1-1-1 would be best

Page 21: EET 450 - Advanced Digital Chapter 4 Computer Memory

Cache MappingCache Mapping– Direct MappedDirect Mapped

CACHE mapped to block of memoryCACHE mapped to block of memory

– Full associativeFull associative CACHE can be for any block of memoryCACHE can be for any block of memory very costly - complexvery costly - complex

– set-associativeset-associative sections of CACHE are direct mapped.sections of CACHE are direct mapped.

Page 22: EET 450 - Advanced Digital Chapter 4 Computer Memory

Burst-Mode CachesBurst-Mode Caches– blocks of data at a timeblocks of data at a time

Synchronous Burst Ram - SRAM Synchronous Burst Ram - SRAM (note acronym conflict)(note acronym conflict)

Pipelined burst SRAMPipelined burst SRAM

Page 23: EET 450 - Advanced Digital Chapter 4 Computer Memory

Cache consistency Cache consistency

Write-throughWrite-through Write-backWrite-back

Page 24: EET 450 - Advanced Digital Chapter 4 Computer Memory

Memory TypesMemory Types

Static Column RamStatic Column Ram Page-Mode RAM (FP)Page-Mode RAM (FP) Extended Data Out Memory (EDO)Extended Data Out Memory (EDO) Burst EDO DRAMBurst EDO DRAM Synchronous DRAMSynchronous DRAM Enhanced DRAMEnhanced DRAM Cached DRAMCached DRAM

Page 25: EET 450 - Advanced Digital Chapter 4 Computer Memory

Rambus DRAMRambus DRAM Multibank DRAMMultibank DRAM PC100 RAMPC100 RAM PC166/266/333/400 etc.PC166/266/333/400 etc.

Page 26: EET 450 - Advanced Digital Chapter 4 Computer Memory

Memory PackagesMemory Packages

DIPDIP SIPPSIPP SIMMSIMM

– 30 pin30 pin– 72 pin72 pin

DIMMDIMM– 168 pin168 pin

Page 27: EET 450 - Advanced Digital Chapter 4 Computer Memory

AssignmentAssignment

Complete Chapter on memoryComplete Chapter on memory Review ‘Tom’s Hardware Guide: Review ‘Tom’s Hardware Guide:

Ram Guide.Ram Guide. Research ‘other’ RAM packages Research ‘other’ RAM packages

that may be available.that may be available.