Chapter 5. Internal Memory. Yonsei University

Similar documents
William Stallings Computer Organization and Architecture 6th Edition. Chapter 5 Internal Memory

Organization. 5.1 Semiconductor Main Memory. William Stallings Computer Organization and Architecture 6th Edition

Computer Organization. 8th Edition. Chapter 5 Internal Memory

Chapter 5 Internal Memory

Internal Memory. Computer Architecture. Outline. Memory Hierarchy. Semiconductor Memory Types. Copyright 2000 N. AYDIN. All rights reserved.

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

Basic Organization Memory Cell Operation. CSCI 4717 Computer Architecture. ROM Uses. Random Access Memory. Semiconductor Memory Types

Chapter 4 Main Memory

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

Semiconductor Memory Types. Computer & Microprocessor Architecture HCA103. Memory Cell Operation. Semiconductor Memory.

(Advanced) Computer Organization & Architechture. Prof. Dr. Hasan Hüseyin BALIK (5 th Week)

CS 320 February 2, 2018 Ch 5 Memory

Computer Organization and Assembly Language (CS-506)

Memory and Disk Systems

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Contents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory

Advanced Parallel Architecture Lesson 4 bis. Annalisa Massini /2015

Concept of Memory. The memory of computer is broadly categories into two categories:

Memory Pearson Education, Inc., Hoboken, NJ. All rights reserved.

ECE 485/585 Microprocessor System Design

Introduction read-only memory random access memory

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Chapter 8 Memory Basics

COSC 6385 Computer Architecture - Memory Hierarchies (III)

EECS150 - Digital Design Lecture 16 Memory 1

Large and Fast: Exploiting Memory Hierarchy

ECSE-2610 Computer Components & Operations (COCO)

Module 5a: Introduction To Memory System (MAIN MEMORY)

Memory technology and optimizations ( 2.3) Main Memory

Memory classification:- Topics covered:- types,organization and working

EECS150 - Digital Design Lecture 16 - Memory

Summer 2003 Lecture 18 07/09/03

chapter 8 The Memory System Chapter Objectives

COMPUTER ARCHITECTURES

UNIT V (PROGRAMMABLE LOGIC DEVICES)

Design and Implementation of an AHB SRAM Memory Controller

Real Time Embedded Systems

Computer Systems Laboratory Sungkyunkwan University

Address connections Data connections Selection connections

Embedded Systems Design: A Unified Hardware/Software Introduction. Outline. Chapter 5 Memory. Introduction. Memory: basic concepts

Embedded Systems Design: A Unified Hardware/Software Introduction. Chapter 5 Memory. Outline. Introduction

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

Memory memories memory

Semiconductor Memories: RAMs and ROMs

,e-pg PATHSHALA- Computer Science Computer Architecture Module 25 Memory Hierarchy Design - Basics

Memory Challenges. Issues & challenges in memory design: Cost Performance Power Scalability

COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

CENG3420 Lecture 08: Memory Organization

UMBC. Select. Read. Write. Output/Input-output connection. 1 (Feb. 25, 2002) Four commonly used memories: Address connection ... Dynamic RAM (DRAM)

Topic 21: Memory Technology

Topic 21: Memory Technology

Computer Memory.

CENG4480 Lecture 09: Memory 1

Allmost all systems contain two main types of memory :

Overview. Memory Classification Read-Only Memory (ROM) Random Access Memory (RAM) Functional Behavior of RAM. Implementing Static RAM

UNIT-V MEMORY ORGANIZATION

a) Memory management unit b) CPU c) PCI d) None of the mentioned

Logic and Computer Design Fundamentals. Chapter 8 Memory Basics

Chapter 2: Fundamentals of a microprocessor based system

The Memory Hierarchy 1

Very Large Scale Integration (VLSI)

Design with Microprocessors

The Memory Hierarchy Part I

ELCT 912: Advanced Embedded Systems

Internal Memory Cache Stallings: Ch 4, Ch 5 Key Characteristics Locality Cache Main Memory

Memory Hierarchy and Cache Ch 4-5

Grundlagen Microcontroller Memory. Günther Gridling Bettina Weiss

k -bit address bus n-bit data bus Control lines ( R W, MFC, etc.)

Chapter 2: Memory Hierarchy Design (Part 3) Introduction Caches Main Memory (Section 2.2) Virtual Memory (Section 2.4, Appendix B.4, B.

Lecture-7 Characteristics of Memory: In the broad sense, a microcomputer memory system can be logically divided into three groups: 1) Processor

Views of Memory. Real machines have limited amounts of memory. Programmer doesn t want to be bothered. 640KB? A few GB? (This laptop = 2GB)

MEMORIES. Memories. EEC 116, B. Baas 3

Computer Memory. Textbook: Chapter 1

Multilevel Memories. Joel Emer Computer Science and Artificial Intelligence Laboratory Massachusetts Institute of Technology

Design with Microprocessors

Unit IV MEMORY SYSTEM PART A (2 MARKS) 1. What is the maximum size of the memory that can be used in a 16-bit computer and 32 bit computer?

Memories: Memory Technology

7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.

CS429: Computer Organization and Architecture

RTL Design (2) Memory Components (RAMs & ROMs)

Memory Hierarchy and Cache Ch 4-5. Memory Hierarchy Main Memory Cache Implementation

Read and Write Cycles

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

CS429: Computer Organization and Architecture

Overview. EE 4504 Computer Organization. Historically, the limiting factor in a computer s performance has been memory access time

Advanced Parallel Architecture Lesson 4. Annalisa Massini /2015

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

Random Access Memory (RAM)

10/24/2016. Let s Name Some Groups of Bits. ECE 120: Introduction to Computing. We Just Need a Few More. You Want to Use What as Names?!

Memory. Outline. ECEN454 Digital Integrated Circuit Design. Memory Arrays. SRAM Architecture DRAM. Serial Access Memories ROM

Computer Architecture and System Software Lecture 08: Assembly Language Programming + Memory Hierarchy

8051 INTERFACING TO EXTERNAL MEMORY

Chapter Seven. Memories: Review. Exploiting Memory Hierarchy CACHE MEMORY AND VIRTUAL MEMORY

ECE 341. Lecture # 16

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Storage Technologies and the Memory Hierarchy

Main Memory (RAM) Organisation

Introduction to SRAM. Jasur Hanbaba

Read this before starting!

CMPEN 411 VLSI Digital Circuits Spring Lecture 22: Memery, ROM

Transcription:

Chapter 5 Internal Memory

Contents Main Memory Error Correction Advanced DRAM Organization 5-2

Memory Types Memory Type Category Erasure Write Mechanism Volatility Random-access memory(ram) Read-write memory Electrically, byte level Electrically Volatile Read-only memory(rom) Programmable ROM(PROM) Read-only memory Not possible Mask Erasable PROM(EPROM) Flash memory Electrically Erasable PROM(EEPROM) Read-mostly memory UV light, chip level Electrically, block level Electrically, byte level Electrically Nonvolatile 5-3

Memory Cell Operation 5-4

RAM Misnamed as all semiconductor memory is random access Read/Write Volatile Temporary storage Static or dynamic DRAM requires periodic charge refreshing to maintain data storage 5-5

DRAM Bits stored as charge in capacitors Charges leak Need refreshing even when it is powered Simpler construction Smaller per bit Less expensive Need refresh circuits Slower 5-6

DRAM 5-7

DRAM Operation Address line active when bit read or written Transistor switch closed (current flows) Write Voltage to bit line High for 1 low for 0 Then signal address line Transfers charge to capacitor Read Address line selected transistor turns on Charge from capacitor fed via bit line to sense amplifier Compares with reference value to determine 0 or 1 Capacitor charge must be restored 5-8

SRAM Bits stored as on/off switches No charges to leak No refreshing needed when it is powered More complex construction Larger per bit More expensive Does not need refresh circuits Faster Cache 5-9

SRAM 5-10

SRAM Operation Transistor arrangement gives stable logic state State 1 C 1 high, C 2 low T 1 T 4 off, T 2 T 3 on State 0 C 2 high, C 1 low T 2 T 3 off, T 1 T 4 on Address line transistors T 5 T 6 is switch Write apply value to B & compliment to B Read value is on line B 5-11

SRAM vs DRAM Both volatile Power needed to preserve data Dynamic cell Simpler to build, smaller More dense Less expensive Needs refresh Larger memory units Static Faster Cache 5-12

Read Only Memory (ROM) Permanent storage Applications Microprogramming Library subroutines Systems programs (BIOS) Function tables Problems The data insertion step includes a large fixed cost No room for error Written during manufacture Very expensive for small runs 5-13

Types of ROM Written during manufacture Very expensive for small runs Programmable (once) PROM Needs special equipment to program Read mostly Erasable Programmable (EPROM) Erased by UV Electrically Erasable (EEPROM) Takes much longer to write than read Flash memory Erase whole memory electrically 5-14

Programmable ROM (PROM) Nonvolatile & Written only once Writing is performed electrically and may be performed by a supplier or customer at a time later than the original chip fabrication Needs special equipment to program 5-15

Read Mostly Memory (RMM) Read operations are far more frequent than write operations But for which nonvolatile storage is required EPROM EEPROM Flash 5-16

EPROM Erasable Programmable Storage cell must be erased by UV before written operation Read and written electrically More expensive than PROM Advantage of multiple update capability 5-17

Electrically Erasable PROM(EEPROM) A read-mostly memory that can be written into at any time without erasing prior contents Takes much longer to write than read Advantage Nonvolatility with the flexibility of being updatable in place using ordinary bus control, address, data lines 5-18

Flash Memory Erase whole memory electrically Entire flash memory can be erased in one or few seconds (faster than EPROM) Possible to erase just blocks Impossible to erase byte-level Use only one transistor per bit Achieves high density 5-19

Chip Logic A 16Mbit chip can be organized as 1M of 16 bit words A bit per chip system has 16 lots of 1Mbit chip with bit 1 of each word in chip 1 and so on A 16Mbit chip can be organized as a 2048 x 2048 x 4bit array Reduces the number of address pins Multiplex row address and column address 11 pins to address (2 11 =2048) Adding one more pin doubles range of values So the memory size grows by a factor of 4 5-20

Refreshing Refresh circuit included on chip Disable chip Count through rows Read & Write back Takes time Slows down apparent performance 5-21

Typical 16 Mb DRAM (4M x 4) 5-22

Chip Packaging Pins support following signal lines Address of words being accessed For 1M words, a total of 20(2 20 =1M) pins needed(a0-a19) Data to be read out, consisting of 8 lines(d0-d7) Power supply to the chip(vcc) Ground pin(vss) Chip enable (CE)pin Program voltage(vpp) that is supplied during programming(writing operation) 5-23

Typical Memory Package 5-24

Module Organization How a memory module consisting of 256K 8-bit words could be organized For 256K word, 18-bit address is needed and is supplied to the module from some external sources 5-25

Module Organization Possible organization of a memory consisting of 1M word by 8 bits per word Need four columns of chips, each column containing 256K words arranged 5-26

1-Mbyte Memory Organisation 5-27

Error Correction Error Correction Hard Failure Permanent physical defect Memory cell or cells affected cannot reliably store data and become stuck at 0 or 1or switch erratically between 0 and 1 Caused by harsh environmental abuse, manufacturing defects and wear Soft Error Random, non-destructive No permanent damage to memory Caused by power supply problems or alpha particles Detected using Hamming error correcting code 5-28

Error - Correcting Code When data are to be read into memory, a function f is performed to produce a code Both the data and the code are stored If M-bit data word and K-bit code, the stored word is M+K bits 5-29

Error Correction If M-bit word of data is stored, and code is K bit, then actual size of stored word is M+K bits New set of K code is generated from M data bits compared with fetched code bits Comparison one of three results No errors detected The fetched data bits sent out An error is detected and it is possible to correct error The data bit plus error-correction bits fed into corrector which produces a corrected set of M bits to be sent out An error is detected, but it is impossible to correct it This condition reported 5-30

Hamming Error-Correcting Code 5-31

Hamming Code Parity bits By checking the parity bits, discrepancies found in circle A and circle C, but not in circle B Only one of the seven compartments is in A and C but not B The error can be corrected by changing that bit Syndrome word : result of comparison of bit-by-bit Each bit of syndrome is 0 or 1 according to if there is or is not a match in position for two input The syndrome word is K bits wide and has a range between 0 and 2 K -1 2 K 1 M + k 5-32

Increase in Word Length Data Bits Single-Error- Correction Single-Error Correction/Double- Error Detection Check Bits %Increase Check Bits %Increase 8 4 50 5 62.5 16 5 31.25 6 37.5 32 6 18.75 7 21.875 64 8 10.94 8 12.5 128 8 6.25 9 7.03 256 9 3.52 10 3.91 5-33

Error Correction To generate 4-bit syndrome If the syndrome contains all 0s, no error is detected If the syndrome contains one and only one bit set to 1, an error occurs in one of 4 check bits No correction needed If the syndrome contains more than one bit set to 1, numerical value of syndrome indicates the position of data bit in error This data bit is inverted for correction 5-34

Layout of Data Bits & Check Bits 5-35

Layout of Data Bits & Check Bits To achieve these characteristics, data and check bits are arranged into a 12-bit word as depicted Those bit positions whose position numbers are powers of 2 are designated as check bits 5-36

Yonsei University 5-37 Error Correction Error Correction Each check bit operates on every data bit position whose position number contains 1 in corresponding column position 8 7 6 5 8 8 4 3 2 4 7 6 4 3 1 2 7 5 4 2 1 1 M M M M C M M M M C M M M M M C M M M M M C = = = =

Check Bit Degeneration Data and check bits are positioned properly in the 12-bit word. By laying out position number of each data bit in columns, the 1s in each row indicates data bits checked by the check bit for that row 5-38

Check Bit Degeneration 5-39

Error Correction Single-error-correcting(SEC) Single-error-correcting, double-error -detecting(sec-ded) 5-40

Hamming SEC-DEC Code 5-41

Error Correction Error Correction IBM 30xx implementations use 8-bit SEC- DED code for each 64 bits of data in main memory Size of main memory is 12% larger than apparent to the user VAX computer use 7-bit SEC-DED for each 32 bits of memory, for 22% overhead A number of contemporary DRAMs use 9 check bits for each 128 bits of data, for 7% overhead 5-42

Advanced DRAM Organization Advanced DRAM organization Basic DRAM same since first RAM chips Enhanced DRAM Contains small SRAM as well SRAM holds last line read (c.f. Cache!) Cache DRAM Larger SRAM component Use as cache or serial buffer 5-43

Synchronous DRAM(SDRAM) Advanced DRAM organization SDRAM exchanges the data with the processor synchronized to an external clock signal and running at the full speed of the proc./mem. bus without imposing wait states With synchronous access, the DRAM moves data in & out under control of the system clock Since SDRAM moves data in time with system clock, CPU knows when data will be ready CPU does not have to wait, it can do something else 5-44

Synchronous DRAM(SDRAM) Advanced DRAM organization Burst mode allows SDRAM to set up stream of data and fire it out in block To eliminate the address setup time and row and column line precharge time after first access In burst mode, a series of data bits can be clocked out rapidly after the first bit has been accessed Useful when all bits are to be accessed in sequence and in the same row of the array as the initial access 5-45

SDRAM Advanced DRAM organization Dual-bank architecture that improves opportunities for on-chip parallelism The mode register and associated control logic is another key feature differentiating SDRAMs from conventional DRAMs It provides a mechanism to customize the SDRAM to suit specific system needs The mode register specifies the burst length SDRAM performs best when it is transferring large blocks of data serially DDR-SDRAM sends data twice per clock cycle (leading & trailing edge) 5-46

IBM 64Mb SDRAM Advanced DRAM organization 5-47

SDRAM Operation Advanced DRAM organization 5-48

Rambus DRAM(RDRAM) 5-49 Advanced DRAM organization A more revolutionary approach to the memory-bandwidth problem Adopted by Intel for Pentium & Itanium Main competitor to SDRAM Vertical package all pins on one side The chip exchanges data with processor over 28 wires no more than 12cm long Bus addresses up to 320 RDRAM chips at 1.6Gbps The special RDRAM bus delivers address and control information using an asynchronous block-oriented protocol Asynchronous block protocol 480ns access time Then 1.6 Gbps An RDRAM gets a memory request over the high-speed bus

RAMBUS Diagram Advanced DRAM organization 5-50

Cache DRAM(CDRAM) Advanced DRAM organization Includes a larger SRAM cache than EDRAM SRAM on the CDRAM can be used in two ways Used as a true cache, consisting of a number of 64-bit lines The cache mode is effective for ordinary random access to memory Used as a buffer to support the serial access of a block of data 5-51