Top Banner
1 Computers Internal and External Memory
39

1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

Dec 14, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

1

Computers

Internal and External Memory

Page 2: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

2

Characteristics of Computer Memory

LocationCapacityUnit of transferAccess MethodPerformancePhysical TypeOrganization

Page 3: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

3

UNIVAC Console and CPU

Page 4: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

5

Memory Hierarchy

CACHE

MAIN MEMORY

MAGNETIC DISK | DISK CACHE

MAGNETIC TAPE | OPTICAL DISK

SPEEDCOST

REGISTERS

Page 5: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

6

Capacity Units

BitByteKilobyte MegabyteGigabyteTerabyte

bB = 8 bKB = 1,000 BMB = 1,000,000 BGB = 1,000,000,000 BTB = 1,000,000,000,000

B

Page 6: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

7

Memory Access Method

Sequential - tapeDirect - floppy or hard diskRandom - internal memory

Dynamic (DRAM) simple, small, must be refreshed Static (SRAM)no refresh needed

Associative - some cache

Page 7: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

8

Random Access Memory

Chips and chip technology

Page 8: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

9

Flip Flop Circuit Diagram

Page 9: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

10

Memory Cells

0/1SELECTselect cell

CONTROLread or write

DATA IN / SENSEinput or output

SELECTselect cell

CONTROLread or write

1

Page 10: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

11

Write to Memory

COLADDRESSBUFFER

MUX

REFRESH

ARRAY

DATAINPUT

BUFFER

DATAOUTPUTBUFFER

A0...

A10

D1..

D4

ROWADDRESSBUFFER

Read Enable

Col AddressRow AddressWrite EnableRow Address

ROWADDRESSBUFFER

COLADDRESSBUFFER

Col Address

MUX

Write Enable

DATAINPUT

BUFFER

Page 11: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

12

Pin Assignments

A0 … A10: address location (multiplexed)D1 … D4: data in or outVcc: power supplyVss: groundRAS: row address selectCAS: column address selectWE: write enableOS: output enable

Page 12: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

13

Cache Operation

ALU CNTL.....

BUS

MAIN MEMORY

CACHE

Page 13: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

14

Page 14: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

15

Cache

Main Memory

CPU

CACHE

Word

Block

Page 15: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

16

CacheSlot

NumberTag Block

0

1

2

3

Page 16: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

17

Random Access

Direct Access Storage Device (DASD) or disk drives Optical Magnetic

Page 17: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

18

Optical Disks (CD’s)

                                  

                                      

Page 18: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

19

How CD’s work

Page 19: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

20

Cylinder/Track/Block

Block (Sector)Track

Cylinder

Page 20: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

21

Disk Organization

Page 21: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

22

DASD Structure

Read-Write Heads

Page 22: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

23

Data Storage

FAT (File Access Tables), Directories and Catalogs

Update and DeleteFragmentation and reorganizationBlocks, Headers and Interblock Gaps

Page 23: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

24

DASD Access (PC)

MAIN MEMORY

DASD

BUFFER

CONTROLLER

CPU

CACHE

Page 24: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

25

Page 25: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

27

DASD Access (Mainframe)

MAIN MEMORY

DASD

BUFFER

CONTROLLER

CPU

CHANNEL

Page 26: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

28

Data Structure

HEADER DATA CRCHEADER

BLOCK

• Header written when disk is formatted• Data copied into block• Cyclical Redundancy Check calculated

Page 27: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

29

Controller Operation(DASD retrieval)

CPU passes parameters to registers in the controller

The controller transfers data into the card buffer

The controller checks the CRC to assure the data was copied correctly

The controller (or CPU) transfers buffered data to memory one word at a time

Page 28: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

32

Time Units

MillisecondMicrosecon

dNanosecondPicosecond

ms = 1/1000 sµs = 1/1,000,000 sns = 1/1,000,000,000 sps = 1/1,000,000,000,000

s

Page 29: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

33

Representative Times

Network speed = megabits per second

Disk transfer = megabytes per second

Disk access = millisecondsMemory access = nanosecondsMachine cycle =

microseconds/nanoseconds

Page 30: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

34

Error Correction and Checking

Add bits to a block to use for error discovery Detection only Detection and retransmission Detection and recovery

Check Body Header

Block

Page 31: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

35

Error Detection Only (Asynchronous Transmission)

*******

Parity Bit

7 Data Bits

27 = 128 distinct characters

*

Page 32: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

36

Error Detection &Correction (Hamming Code: 4 bit word)

****

3 Error Checking Bits

4 Data Bits

***

Page 33: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

37

DATA

1

1

10

Error Detection &Correction (Hamming Code: 4 bit word)

1110

***

Page 34: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

38

PARITY (even)

1

1

10

1 0

0

Error Detection

1110

100

Page 35: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

39

PARITY (even)

0

1

10

1 0

0

Error Correction (4 bit word)

0110

100

Page 36: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

40

Error Correction & Detection

Error detection takes fewer bits than error correction

Longer packets take a smaller percent for correction but have more types of errors

Hamming’s scheme detects all errors at a high overhead cost; others may correct only single bit or double bit errors with shorter check fields

Page 37: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

41

CRC Error Checking

The transmitted messages are divided into predetermined blocks

The blocks are divided by a fixed divisor

The remainder is appended to the message

Page 38: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

42

IBM 1107 with tape drives

Page 39: 1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity zUnit of transfer zAccess Method zPerformance zPhysical.

43

Memory