Computer Systems Structure Main Memory Organization



Similar documents
Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access?

Computer Architecture

Memory Basics. SRAM/DRAM Basics

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

RAM & ROM Based Digital Design. ECE 152A Winter 2012

1. Memory technology & Hierarchy

Chapter 5 :: Memory and Logic Arrays

A N. O N Output/Input-output connection

Slide Set 8. for ENCM 369 Winter 2015 Lecture Section 01. Steve Norman, PhD, PEng

Memory unit. 2 k words. n bits per word

Memory Hierarchy. Arquitectura de Computadoras. Centro de Investigación n y de Estudios Avanzados del IPN. adiaz@cinvestav.mx. MemoryHierarchy- 1

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Memory ICS 233. Computer Architecture and Assembly Language Prof. Muhamed Mudawar

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Computer Architecture

With respect to the way of data access we can classify memories as:

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Semiconductor Device Technology for Implementing System Solutions: Memory Modules

Computer Organization and Architecture. Characteristics of Memory Systems. Chapter 4 Cache Memory. Location CPU Registers and control unit memory

Chapter 9: Peripheral Devices: Magnetic Disks

Dell Reliable Memory Technology

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

Price/performance Modern Memory Hierarchy

NAND Flash FAQ. Eureka Technology. apn5_87. NAND Flash FAQ

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Writing Assignment #2 due Today (5:00pm) - Post on your CSC101 webpage - Ask if you have questions! Lab #2 Today. Quiz #1 Tomorrow (Lectures 1-7)

Understanding Memory TYPES OF MEMORY

The Central Processing Unit:

Memory Systems. Static Random Access Memory (SRAM) Cell

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Memory. The memory types currently in common usage are:

Main Memory & Backing Store. Main memory backing storage devices

CHAPTER 7: The CPU and Memory

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Spacecraft Computer Systems. Colonel John E. Keesee

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Algorithms and Methods for Distributed Storage Networks 3. Solid State Disks Christian Schindelhauer

OpenSPARC T1 Processor

Read this before starting!

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 5 Storage Devices

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

Chapter 8 Memory Units

ERROR DETECTION AND CORRECTION

CS 6290 I/O and Storage. Milos Prvulovic

1 / 25. CS 137: File Systems. Persistent Solid-State Storage

User s Manual HOW TO USE DDR SDRAM

Chapter 7 Memory and Programmable Logic

Lecture 9: Memory and Storage Technologies

RAM. Overview DRAM. What RAM means? DRAM

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 412, University of Maryland. Guest lecturer: David Hovemeyer.

Discovering Computers Living in a Digital World

Random Access Memory (RAM) Types of RAM. RAM Random Access Memory Jamie Tees SDRAM. Micro-DIMM SO-DIMM

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Byte Ordering of Multibyte Data Items

Non-Redundant (RAID Level 0)

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

DDR4 Memory Technology on HP Z Workstations

Primary Memory. Input Units CPU (Central Processing Unit)

Introduction To Computers: Hardware and Software

The Big Picture. Cache Memory CSE Memory Hierarchy (1/3) Disk

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Computer Hardware Submitted in partial fulfillment of the requirement for the award of degree Of MCA

MICROPROCESSOR AND MICROCOMPUTER BASICS

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Computer Systems Structure Input/Output

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner

A3 Computer Architecture

Computer Organization & Architecture Lecture #19

Communicating with devices

Sistemas Operativos: Input/Output Disks

Chapter 1 Computer System Overview

Enhancing IBM Netfinity Server Reliability

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

Lecture-3 MEMORY: Development of Memory:

Disk Storage & Dependability

1 Storage Devices Summary

SDRAM and DRAM Memory Systems Overview

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

CS 61C: Great Ideas in Computer Architecture. Dependability: Parity, RAID, ECC

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Lecture N -1- PHYS Microcontrollers

Memory technology evolution: an overview of system memory technologies

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Chapter 2 - Computer Organization

Input/output (I/O) I/O devices. Performance aspects. CS/COE1541: Intro. to Computer Architecture. Input/output subsystem.

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

Introduction to Information System Layers and Hardware. Introduction to Information System Components Chapter 1 Part 1 of 4 CA M S Mehta, FCA

Transcription:

Computer Systems Structure Main Memory Organization Peripherals Computer Central Processing Unit Main Memory Computer Systems Interconnection Communication lines Input Output Ward 1 Ward 2 Storage/Memory Hierarchy Storage Hierarchy & Characteristics Ward 3 Ward 4

Principle of Memory Hierarchy To optimize memory performance for a given cost, a set of technologies are arranged in a hierarchy that contains a relatively small amount of fast memory and larger amounts of less expensive, but slower memory. Memory Hierarchy Importance 1980: no cache in µproc; 1995: 2-level cache on chip (1989 first Intel µproc with a cache on chip) Performance 1000 100 10 1 CPU Processor-Memory Performance Gap: (grows 50% / year) DRAM 1980 1985 1990 1995 2000 Time Ward 5 Ward 6 Storage Characteristics Location Location CPU Capacity Internal Unit of transfer External Access method Performance Physical type Physical characteristics Organization Ward 7 Ward 8

Capacity Unit of Transfer Word size The natural unit of organization Expected size of most data & instructions Typically 32 bits or 64 bits Past: 16 bits Number of words or Bytes Internal Usually governed by data bus width External Usually a block which is much larger than a word Addressable unit Smallest unit which can be uniquely addressed Byte internally (typically) Ward 9 Ward 10 Access Methods (1) Access Methods (2) Sequential (e.g., tape) Shared read/write mechanism Start at the beginning and read through in order Access time depends on location of data and previous location Direct (e.g., disk) Shared read/write mechanism Individual blocks have unique address Access is by jumping to vicinity plus sequential search Access time depends on location and previous location Random (e.g., RAM) Individual addresses identify locations exactly Access time is independent of location or previous access Associative (e.g., cache) Data is located by a comparison with contents of a portion of the store Access time is independent of location or previous access Ward 11 Ward 12

Performance Transfer Rate Example Problem Latency/Access time Time between presenting the address and getting the valid data (e.g., in memory, time between the Read & Memory Function Competed (MFE) signals) Memory Cycle time Time may be required for the memory to recover before next access Cycle time is latency + recovery Transfer Rate Rate at which data can be moved (# of bits(bytes)) * (1/(cycle time)) Assume we have 32-Mbit DRAM memory with 8 bits simultaneously read and a cycle time 250 ns. How fast can data be moved out of memory (e.g. transfer rate)? 8b*(1/250ns) = 8b*(4x10 6 /s) = 32 Mbps = 4 MBps Ward 13 Ward 14 Physical Types Physical Characteristics Semiconductor RAM Volatility Magnetic Erasable Disk & Tape Power consumption / Heat Optical CD & DVD Others Bubble Hologram Ward 15 Ward 16

Organization Physical arrangement of bits into words Not always obvious e.g. interleaved (striped) The Bottom Line How much? Capacity How fast? Performance (Time is money) How expensive? Ward 17 Ward 18 Hierarchy List Registers L1 Cache (on-chip) L2 Cache (off-chip) Memory controller cache (L3 Cache) Main memory Disk cache Disk Optical Tape Memory Basics Ward 19 Ward 20

Main Memory Basics Data Flow (Indirect Diagram) Memory: where computer stores programs and data Bit (binary digit): basic unit. (8 bits = byte) Each memory cell (location) has an address numbered 0,, n -1 (for n memory cells) Possible address range limited by address size (m bits in address means 2 m addresses) Memory cell size (typically 1 byte) grouped together into words (typically 32 or 64 bits) 32-bit machine will typically have 32-bit registers and instructions for manipulating 32-bit words; similarly for 64-bit machine Ward 21 Ward 22 Semiconductor Memory Random Access Memory (RAM) All semiconductor memory is random access (directly accessed via address logic) Read/Write Volatile (requires constant power supply) Temporary storage Static (holds data) or dynamic (periodically refreshes charge) Static RAM Bits stored as on/off switches (transistors) No charges to leak No refreshing needed when powered Larger per bit More expensive Does not need refresh circuits Faster Example: Cache Ward 23 Ward 24

SRAM Illustration When enable is high, output is same as input. Otherwise, output holds last value Dynamic RAM Bits stored as charge in capacitors (also uses transistors) Charges leak Need refreshing even when powered Smaller per bit Less expensive Need refresh circuits Slower Asynchronous and Synchronous DRAMs Example: Main memory Ward 25 Ward 26 DRAM Illustration More complex than figure implies Must coordinate with normal read and write operations Read Only Memory (ROM) Permanent storage Microprogramming Library subroutines Systems programs Function tables Ward 27 Ward 28

Measures of Memory Technology Density Latency and cycle time Memory Density Refers to memory cells per square area of silicon Usually stated as number of bits on standard chip size Examples: 1 meg chip holds 1 megabit of memory 4 meg chip holds 4 megabit of memory Memory cells typically in arrays 1M x 1 chip is a 1 meg chip 256K x 4 chip is a 1 meg chip Note: higher density chip generates more heat Ward 29 Ward 30 Internal Module Organization [1] b 7 b 7 b 1 b 1 b 0 b 0 W 0 Internal Module Organization [2] FF FF A 0 W1 A 1 A 2 A 3 Address decoder W15 Memory cells Compare with Fig 5.3 in textbook Sense / Write circuit Sense / Write circuit Sense / Write circuit R/ W CS Data input/output lines: b 7 b 1 b 0 16 x 8 chip 256K x 8 chip Ward 31 Ward 32

Internal Module Organization [3] Typical 16 Mb DRAM (Internal) 1M x 8 chip 4M x 4 chip Ward 33 Ward 34 Memory Packaging: Chips 16-Mbit chip (4M x 4) 4M in 11 rows by 11 columns (2 22 =4M) WE = write enable OE = output enable RAS = row address select CAS = column address select A0 A10 = 11 address bits D1 D4 = Data to be read/written Read-Write Performance In many memory technologies, the time required to fetch information from memory differs from the time required to store information in memory, and the difference can be dramatic. Therefore, any measure of memory performance must give two values: the performance of read operations and the performance of write operations. NC = no connect (even # of pins) Vcc = power supply Vss = ground pin Ward 35 Ward 36

Memory Organization Memory controller connects computer to physical memory chips Remember: Latency Cycle time (read and write) Transfer size (or word size) Memory Transfer Physical memory is organized into words, where a word is equal to the memory transfer size. Each read and write operation applies to an entire word. The physical memory hardware does not provide a way to read or write less than a complete word. Example: 32 bits = word Ward 37 Ward 38 Byte & Word Addresses CPU can use byte addresses (convenient) Physical memory can use word addresses (efficient) Translation performed by intelligent memory controller Address Translation To avoid arithmetic calculations, such as division or remainder, physical memory is organized such that the number of bytes per word is a power of two, which means the translation from byte address to a word address and offset can be performed by extracting bits. Ward 39 Ward 40

Performance Enhancements Memory Banks Alternative to single memory and single memory controller Processor connects to multiple controllers Each controller connects to separate physical memory Controllers and memory can operate simultaneously Interleaving Related to memory banks Transparent to programmer Places consecutive bytes in separate physical memories Uses low-order bits of address to choose module Known as N-way interleaving (N = number of physical memories) Illustration of Interleaving Consecutive bytes stored in separate physical memories. Ward 41 Ward 42 Error Correction for Data Error Correction Semiconductor Memory Hard Failure Permanent defect Caused by Environmental abuse Manufacturing defects Wear Soft Error Random, non-destructive No permanent damage to memory Caused by Voltage spikes Alpha particles Data Transmission Ward 43 Ward 44

Parity as Error Detector Error-Correcting Codes Parity can check single bit errors Store one extra bit (parity bit) for each word Even parity: have parity bit set so even number of 1 s 10010101: ok 10000101: not ok (some bit is wrong, don t know which one) Odd parity: have parity bit set so odd number of 1 s Ward 45 Ward 46 4-Bit Hamming Error-Correcting Code Check Bits for Error Correction Ward 47 Ward 48

Single-Bit Error Detection/Correction Hamming code for any size memory word Given r check/parity bits and m data bits, word size = m + r bits Number bits from right to left starting at 1 ( not 0) All bits with power of 2 number are check bits (bits numbered 1, 2, 4, 8, 16, ) Data bit b is checked by parity bits whose numbers add up to b. Example: data bit 5 is checked by parity bits 1 and 4, data bit 6 is checked by parity bits 2 and 4 Add up numbers of all incorrect parity bits = number of incorrect data bit (assumes no errors in parity bits!) 8-Bit Error: Check Bit Calculation C1 = D1 D2 D4 D5 D7 C2 = D1 D3 D4 D6 D7 C4 = D2 D3 D4 D8 C8 = D5 D6 D7 D8 Error in 0110 = 6 Ward 49 Ward 50 Common Error Correction Single-error-correcting (SEC) Double-error-detecting (DED) Requires only 1 bit over SEC Memory Packaging (1992?- ) Memory Chips on a Board SIMM (Single Inline Memory Module) connectors on one side DIMM (Dual Inline Memory Module) - connectors on both sides SO-DIMM (Small Outline DIMM) used in laptops Don t usually have error detection/correction since average is 1 error every 10 years. Ward 51 Ward 52