Random Access Memory (RAM)

Similar documents
ENGIN 112 Intro to Electrical and Computer Engineering

Logic and Computer Design Fundamentals. Chapter 8 Memory Basics

Digital Design, Kyung Hee Univ. Chapter 7. Memory and Programmable Logic

Memory and Programmable Logic

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

Chapter 6 (Lect 3) Counters Continued. Unused States Ring counter. Implementing with Registers Implementing with Counter and Decoder

Picture of memory. Word FFFFFFFD FFFFFFFE FFFFFFFF

Memory & Logic Array. Lecture # 23 & 24 By : Ali Mustafa

ECE 341. Lecture # 16

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

Chapter 8 Memory Basics

EECS 3201: Digital Logic Design Lecture 7. Ihab Amer, PhD, SMIEEE, P.Eng.

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

Introduction read-only memory random access memory

CENG4480 Lecture 09: Memory 1

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Memory and Programmable Logic

The Memory Hierarchy Part I

Computer Organization and Assembly Language (CS-506)

ECE 485/585 Microprocessor System Design

Computer Organization. 8th Edition. Chapter 5 Internal Memory

CENG3420 Lecture 08: Memory Organization

UNIT V (PROGRAMMABLE LOGIC DEVICES)

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

Read and Write Cycles

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

Unit 6 1.Random Access Memory (RAM) Chapter 3 Combinational Logic Design 2.Programmable Logic

Memories. Design of Digital Circuits 2017 Srdjan Capkun Onur Mutlu.

ECE 152 Introduction to Computer Architecture

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

Chapter 4 Main Memory

ECSE-2610 Computer Components & Operations (COCO)

CS 320 February 2, 2018 Ch 5 Memory

Memory Supplement for Section 3.6 of the textbook

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

Random Access Memory (RAM)

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

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?!

Presentation 4: Programmable Combinational Devices

ECE 485/585 Microprocessor System Design

Memory Devices. Future?

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

Address connections Data connections Selection connections

Lecture 13: Memory and Programmable Logic

RISC (Reduced Instruction Set Computer)

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

Chapter 5 Internal Memory

EE414 Embedded Systems Ch 5. Memory Part 2/2

Semiconductor Memory Classification. Today. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. CPU Memory Hierarchy.

Chapter 5. Internal Memory. Yonsei University

The University of Adelaide, School of Computer Science 13 September 2018

Computer Organization. Chapter 12: Memory organization

chapter 8 The Memory System Chapter Objectives

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

University of Alexandria Faculty of Engineering Division of Communications & Electronics

Design and Implementation of an AHB SRAM Memory Controller

CHAPTER X MEMORY SYSTEMS

DESIGN RAM MEMORIES BY USING FLIP-FLOP CIRCUITS

CMOS Logic Circuit Design Link( リンク ): センター教官講義ノートの下 CMOS 論理回路設計

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

falling edge Intro Computer Organization

Where Have We Been? Ch. 6 Memory Technology

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422)

Summer 2003 Lecture 18 07/09/03

UNIT-V MEMORY ORGANIZATION

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

Read this before starting!

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

Memory Basics. Course Outline. Introduction to Digital Logic. Copyright 2000 N. AYDIN. All rights reserved. 1. Introduction to Digital Logic.

8051 INTERFACING TO EXTERNAL MEMORY

Sir Sadiq s computer notes for class IX. Chapter no 4. Storage Devices

Menu. word size # of words byte = 8 bits

Memory and Programmable Logic

Memory & Simple I/O Interfacing

Memory. Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University

Lecture-14 (Memory Hierarchy) CS422-Spring

P-2 Digital Design & Applications

CSEE 3827: Fundamentals of Computer Systems. Storage

+1 (479)

CS650 Computer Architecture. Lecture 9 Memory Hierarchy - Main Memory

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

UMBC D 7 -D. Even bytes 0. 8 bits FFFFFC FFFFFE. location in addition to any 8-bit location. 1 (Mar. 6, 2002) SX 16-bit Memory Interface

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

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

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

Memory technology and optimizations ( 2.3) Main Memory

Transistor: Digital Building Blocks

ECEN 449 Microprocessor System Design. Memories. Texas A&M University

CS152 Computer Architecture and Engineering Lecture 16: Memory System

SECTION-A

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

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

CS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2017 Lecture 13

Large and Fast: Exploiting Memory Hierarchy

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

Chapter Two - SRAM 1. Introduction to Memories. Static Random Access Memory (SRAM)

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

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

Transcription:

Random Access Memory (RAM) EED2003 Digital Design Dr. Ahmet ÖZKURT Dr. Hakkı YALAZAN 1 Overview Memory is a collection of storage cells with associated input and output circuitry Possible to read and write cells Random access memory RAM stores data temporarily RAM contains words of information Memory cells can be accessed to transfer information to or from any desired location with the same time regardless of the location. In contrast, in serial memories (magnetic disk or tape), takes different lengths of time to access the information, depending on where the desired location is relative to the current position of the disk or tape. 2

Preliminaries RAMs contain a collection of data bytes A collection of bytes is called a word Capacity of RAM device is usually described in bytes (e.g. 16 MB) Write operations write data to specific words Read operations read data from specific words Array logic symbols for gates 3 RAM Interface Signals Data input and output lines carry data Memory contains 2 k words k address lines select one word out of 2 k Read asserted when data to be transferred to output Write asserted when data input to be stored 4

Random-Access Memory (RAM) Example: a memory unit w/ 1K words of 16 bits each 1024 x 2 bytes = 2K bytes decimal address: 0 to 1023 address: 10 bits; data: 16 bits 5 RAM Size If memory has 2 k words, k address bits are needed 2 3 words, 3 address bits Address locations are labelled 0 to 2 k -1 Common subscripts: Kilo 2 10 Mega 2 20 Giga - 2 30 6

Write Operation 1. Apply binary address of word to address lines 2. Apply data bits to data input lines 3. Activate write input Data output lines unused Read input signal should be inactive Delay associated with write 7 Read Operation 1. Apply binary address of word to address lines 2. Activate read input Data input lines unused Write input signal should be inactive Delay associated with read Memory enable used to allow read and writes 8

Memory Timing - write operation Memory does not use a clock Control signals may be generated on clock edges Cycle time is the maximum time from the application of the address to the completion of the operation to store the data. 9 Timing Waveforms read operation Access time indicates time to read Address indicates location Data valid on Data Output following access time Multiple clock signals needed for data read in this example 10

Types of Random Access Memories Static random access memory (SRAM) Operates like a collection of latches Once value is written, it is guaranteed to remain in the memory as long as power is applied. Since it doesn't need refresh, static RAM's power consumption is much less than dynamic RAM. Static RAM cells use 4-6 transistors to store a single bit of data. This provides faster access times at the expense of lower bit densities. Generally expensive Used inside processors (like the Pentium) Extensively for second level cache memory, where its speed is needed and a relatively small memory will lead to a significant increase in performance. A high-performance 1998 processor will generally have 512kB to 4Mbyte of L2 cache. 11 Types of Random Access Memories Dynamic random access memory (DRAM) Generally, simpler internal design than SRAM Requires data to be rewritten (refreshed), otherwise data is lost Often hold larger amount of data than SRAM Longer access times than SRAM Used as main memory in computer systems 12

Inside the RAM Device Address inputs go into decoder Only one output active Word line selects a row of bits (word) Data passes through OR gate Each binary cell (BC) stores one bit Input data stored if Read/Write is 0 Output data driven if Read/Write is 1 13 Inside the SRAM Device Basis of each SRAM cell is an S-R latch Note that data goes to both S and R Select enables operation Read/write enables read or write, but not both 14

Inside the SRAM Device Word Note:delay primarily depends on the number of words Delay not effected by size of words 15 RAM Integrated Circuits RAM Bit Slice Model 16

Three-state Buffer have three distinct states logic-0, logic-1, high-impedance (Hi-Z) state Hi-Z state: open circuit, (the output appears to be disconnected) ENABLE input (EN) Three-state Buffer 17 Form a multiplexed output line (S) (S ) truth table (in shaded area) is a 2-way multiplexer with S 18

8 x 2 RAM chip (8 words of 2 bits each) 3 address bits: two are handled by the row decoder column decoder has only one address bit & produces 2 column select lines 19 DRAM The transistor acts like a switch When the switch is closed, the charge can be flow from the bit value B to the capacitor C. When the swith is open, the value in the capacitor is stored. 20

Inside DRAM Cell 21 22

DRAM Bit Slice Model 23 Block diagram of a DRAM including Refresh Logic 24

DRAM Write Timing 25 DRAM Read Timing 26

Page Mode 27 Array of RAM ICs construct 256K x 8 RAM four 64K x 8 RAM chips requires 18-bit address lines 2 MSBs are applied to a 2 x 4 decoder, 4 outputs are applied to the CS inputs of the four chips 28

Array of RAM ICs Form a 64K x 16 memory 16 data input & output lines are split between the two chips 29 Error Detection and Correction parity-bit most common error-detection scheme it is generated & stored along with data word in memory checked after reading the word in memory the data word is accepted if the parity is correct the error cannot be corrected check-bits an error-correcting code generates multiple check bits each check bit is a group of bits in the data word check bits compare with the stored parity; generate a unique pattern (a syndrome) to identify the bit in error 30

Error Detection and Correction Hamming Code most common error-correcting codes used in RAM k parity bits are added to an n-bit data word, forming n+k bits positions as a power of 2 are reserved for the parity bits; the remaining bits are the data bits (ex) 8-bit data word 11000100 Bit position 1 2 3 4 5 6 7 8 9 10 11 12 P 1 P 2 1 P 4 1 0 0 P 8 0 1 0 0 P 1 = XOR of bits (3,5,7,9,11) = 0 P 2 = XOR of bits (3,6,7,10,11) = 0 P 4 = XOR of bits (5,6,7,12) = 1 P 8 = XOR of bits (9,10,11,12) = 1 12-bit composite word = 0 0 1 1 1 0 0 1 0 1 0 0 31 Error Detection and Correction (ex) Error Bit position 1 2 3 4 5 6 7 8 9 10 11 12 0 0 1 1 1 0 0 1 0 1 0 0 No Error 1 0 1 1 1 0 0 1 0 1 0 0 Error in bit 1 0 0 1 1 0 0 0 1 0 1 0 0 Error in bit 5 C 8 C 4 C 2 C 1 0 0 0 0 No Error 0 0 0 1 Error in bit 1 0 1 0 1 Error in bit 5 Hamming code can be used for data words of any length n (data bits) & k (check bits) to accomodate a word of 2 k -1 n = 2 k - 1 - k (or less) can detect & correct only a single error 32

Summary Memories provide storage for computers Memories are organized in words Selected by addresses SRAMs store data in latches Accessed by surrounding circuitry RAM waveforms indicate the control signals needed for access Words in SRAMs are accessed with decoders Only one word selected at a time Some starageies have been developed for error correction. 33