Internal and External Memory

Slides:



Advertisements
Similar presentations
Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
Advertisements

Lecture # 7. Topics Storage Techniques of Bits Storage Techniques of Bits Mass Storage Mass Storage Disk System Performance Disk System Performance File.
Secondary Storage Rohit Khokher
MEMORY popo.
CS 6560: Operating Systems Design
Chapter 5 Internal Memory
Computer Organization and Architecture
Computer Organization and Architecture
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
Ch 2.7 Error Detection & Correction CS-147 Tu Hoang.
Agenda Types of Storage Media Semiconductor ROM and RAM Magnetic Tapes, Floppy Disks, and Hard Disks Optical CS C446 Data Storage Technologies & Networks.
Memory Basics. 8-1 Memory definitions Memory is a collection of cells capable of storing binary information. Two types of memory: –Random-Access Memory.
Advance Database System
1 The Basic Memory Element - The Flip-Flop Up until know we have looked upon memory elements as black boxes. The basic memory element is called the flip-flop.
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
Registers –Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
Memory Devices Wen-Hung Liao, Ph.D..
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
1 Introduction to Computers Day 4. 2 Storage device A functional unit into which data can be –placed –retained(stored) –retrieved(accessed)
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
CS4432: Database Systems II Data Storage (Better Block Organization) 1.
1 Part I: Machine Architecture 4 A major process in the development of a science is the construction of theories that are confirmed or rejected by experimentation.
Lecture on Electronic Memories. What Is Electronic Memory? Electronic device that stores digital information Types –Volatile v. non-volatile –Static v.
Chapter 2 Data Storage How does a computer system store and manage very large volumes of data ?
L/O/G/O External Memory Chapter 3 (C) CS.216 Computer Architecture and Organization.
Memory and Programmable Logic
Computer Hardware Computers and components. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
Chapter 111 Chapter 11: Hardware (Slides by Hector Garcia-Molina,
Lecture No 11 Storage Devices
Chapter 5 Internal Memory. Semiconductor Memory Types.
1 Chapter 17 Disk Storage, Basic File Structures, and Hashing Chapter 18 Index Structures for Files.
Disks Chapter 5 Thursday, April 5, Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.
Memory System Unit-IV 4/24/2017 Unit-4 : Memory System.
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
Memory Cell Operation.
Memory and Storage. Computer Memory Processor registers – Temporary storage locations within the CPU – Examples Instruction register – holds the instruction.
Auxiliary Memory Magnetic Disk:
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /3/2013 Lecture 9: Memory Unit Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL.
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Chapter 8 Secondary Memory. Topics Types of External Memory Magnetic Disk Optical Magnetic Tape.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
10/15: Lecture Topics Input/Output –Types of I/O Devices –How devices communicate with the rest of the system communicating with the processor communicating.
Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.
Lecture 3 Secondary Storage and System Software I
CHAPTER 10: Computer Peripherals
CS 1251 Computer Organization N.Sundararajan
Multiple Platters.
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Chapter 1 Data Storage.
Computer Organization
Computer Architecture
William Stallings Computer Organization and Architecture 7th Edition
Memory Basics Chapter 8.
Memory Basics Chapter 7.
Presentation transcript:

Internal and External Memory Computers Internal and External Memory

Characteristics of Computer Memory Location Capacity Unit of transfer Access Method Performance Physical Type Organization

UNIVAC Console and CPU

CPU’s

Memory Hierarchy COST SPEED REGISTERS CACHE MAIN MEMORY MAGNETIC DISK | DISK CACHE MAGNETIC TAPE | OPTICAL DISK

Capacity Units Bit Byte Kilobyte Megabyte Gigabyte Terabyte b B = 8 b KB = 1,000 B MB = 1,000,000 B GB = 1,000,000,000 B TB = 1,000,000,000,000 B

Memory Access Method Sequential - tape Direct - floppy or hard disk Random - internal memory Dynamic (DRAM) simple, small, must be refreshed Static (SRAM) no refresh needed Associative - some cache

Random Access Memory Chips and chip technology

Flip Flop Circuit Diagram

Memory Cells 1 0/1 CONTROL CONTROL read or write read or write DATA IN / SENSE input or output SELECT select cell SELECT select cell 1 0/1

Write to Memory Read Enable Write Enable Write Enable Row Address ARRAY Col Address Col Address A0 . A10 ROW ADDRESS BUFFER ROW ADDRESS BUFFER DATA INPUT BUFFER DATA INPUT BUFFER MUX MUX D1 . D4 COL ADDRESS BUFFER COL ADDRESS BUFFER DATA OUTPUT BUFFER REFRESH

Pin Assignments A0 … A10: address location (multiplexed) D1 … D4: data in or out Vcc: power supply Vss: ground RAS: row address select CAS: column address select WE: write enable OS: output enable

Cache Operation ALU CNTL ..... CACHE BUS MAIN MEMORY

Cache CPU Word CACHE Main Memory Block

Cache

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

Optical Disks (CD’s)                                                                         

How CD’s work

Cylinder/Track/Block Block (Sector) Cylinder

Disk Organization

DASD Structure Read-Write Heads

Data Storage FAT (File Access Tables), Directories and Catalogs Update and Delete Fragmentation and reorganization Blocks, Headers and Interblock Gaps

DASD Access (PC) MAIN MEMORY CPU BUFFER CACHE DASD CONTROLLER

DASD Access (PC) MAIN MEMORY CPU BUFFER DASD CONTROLLER

DASD Access (Mainframe) MAIN MEMORY CPU BUFFER CHANNEL DASD CONTROLLER

Data Structure BLOCK HEADER HEADER DATA CRC Header written when disk is formatted Data copied into block Cyclical Redundancy Check calculated

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

Access Time: time from call until first data available Disk Access Time = Rotational Delay + Seek Time + Transfer Time RAM Access Time = Refresh Time +

Access Time Example Disk Drive has 7200 rpm = 120 rps 8 ms average seek time 80 MBps transfer rate Rotational delay = 1/2*1/120 = 1/240 s = .0042 Seek Time = 8/1,000 s = .0080 Transfer Time = 512/80,000 s = .0064

Time Units Millisecond Microsecond Nanosecond Picosecond ms = 1/1000 s ns = 1/1,000,000,000 s ps = 1/1,000,000,000,000 s

Representative Times Network speed = megabits per second Disk transfer = megabytes per second Disk access = milliseconds Memory access = nanoseconds Machine cycle = microseconds/nanoseconds

Error Correction and Checking Block Check Body Header Add bits to a block to use for error discovery Detection only Detection and retransmission Detection and recovery

Error Detection Only (Asynchronous Transmission) * Parity Bit * 7 Data Bits 27 = 128 distinct characters

Error Detection &Correction (Hamming Code: 4 bit word) * 3 Error Checking Bits * 4 Data Bits

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

Error Detection PARITY (even) 100 1 1 1 1 1

Error Correction (4 bit word) PARITY (even) 100 1 1 1 1

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

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

IBM 1107 with tape drives

Memory