1 Computers Internal and External Memory. 2 Characteristics of Computer Memory zLocation zCapacity...

Preview:

Citation preview

1

Computers

Internal and External Memory

2

Characteristics of Computer Memory

LocationCapacityUnit of transferAccess MethodPerformancePhysical TypeOrganization

3

UNIVAC Console and CPU

5

Memory Hierarchy

CACHE

MAIN MEMORY

MAGNETIC DISK | DISK CACHE

MAGNETIC TAPE | OPTICAL DISK

SPEEDCOST

REGISTERS

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

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

8

Random Access Memory

Chips and chip technology

9

Flip Flop Circuit Diagram

10

Memory Cells

0/1SELECTselect cell

CONTROLread or write

DATA IN / SENSEinput or output

SELECTselect cell

CONTROLread or write

1

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

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

13

Cache Operation

ALU CNTL.....

BUS

MAIN MEMORY

CACHE

14

15

Cache

Main Memory

CPU

CACHE

Word

Block

16

CacheSlot

NumberTag Block

0

1

2

3

17

Random Access

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

18

Optical Disks (CD’s)

                                  

                                      

19

How CD’s work

20

Cylinder/Track/Block

Block (Sector)Track

Cylinder

21

Disk Organization

22

DASD Structure

Read-Write Heads

23

Data Storage

FAT (File Access Tables), Directories and Catalogs

Update and DeleteFragmentation and reorganizationBlocks, Headers and Interblock Gaps

24

DASD Access (PC)

MAIN MEMORY

DASD

BUFFER

CONTROLLER

CPU

CACHE

25

27

DASD Access (Mainframe)

MAIN MEMORY

DASD

BUFFER

CONTROLLER

CPU

CHANNEL

28

Data Structure

HEADER DATA CRCHEADER

BLOCK

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

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

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

33

Representative Times

Network speed = megabits per second

Disk transfer = megabytes per second

Disk access = millisecondsMemory access = nanosecondsMachine cycle =

microseconds/nanoseconds

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

35

Error Detection Only (Asynchronous Transmission)

*******

Parity Bit

7 Data Bits

27 = 128 distinct characters

*

36

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

****

3 Error Checking Bits

4 Data Bits

***

37

DATA

1

1

10

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

1110

***

38

PARITY (even)

1

1

10

1 0

0

Error Detection

1110

100

39

PARITY (even)

0

1

10

1 0

0

Error Correction (4 bit word)

0110

100

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

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

42

IBM 1107 with tape drives

43

Memory

Recommended