Logic and Computer Design Fundamentals. Chapter 8 Memory Basics

Similar documents
Chapter 8 Memory Basics

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

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

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

Random Access Memory (RAM)

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

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

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

ENGIN 112 Intro to Electrical and Computer Engineering

Lecture 13: Memory and Programmable Logic

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

SECTION-A

Memory & Simple I/O Interfacing

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

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

Announcement. Computer Architecture (CSC-3501) Lecture 20 (08 April 2008) Chapter 6 Objectives. 6.1 Introduction. 6.

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

ECSE-2610 Computer Components & Operations (COCO)

Computer Organization and Assembly Language (CS-506)

Memory memories memory

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

Random Access Memory (RAM)

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

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

UNIT V (PROGRAMMABLE LOGIC DEVICES)

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

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Chapter 5 Internal Memory

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

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.

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

Address connections Data connections Selection connections

CHAPTER X MEMORY SYSTEMS

Read and Write Cycles

Memory and Programmable Logic

Summer 2003 Lecture 18 07/09/03

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

CS 320 February 2, 2018 Ch 5 Memory

Chapter 6 Objectives

8051 INTERFACING TO EXTERNAL MEMORY

Introduction read-only memory random access memory

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

CS152 Computer Architecture and Engineering Lecture 16: Memory System

ECE 341. Lecture # 16

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

Design and Implementation of an AHB SRAM Memory Controller

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

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

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

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

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

MEMORIES. Memories. EEC 116, B. Baas 3

Computer Organization. 8th Edition. Chapter 5 Internal Memory

CENG3420 Lecture 08: Memory Organization

Introduction to Semiconductor Memory Dr. Lynn Fuller Webpage:

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

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

ELCT 912: Advanced Embedded Systems

RISC (Reduced Instruction Set Computer)

ECE 485/585 Microprocessor System Design

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

CS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2017 Lecture 13

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

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

UNIT-V MEMORY ORGANIZATION

ECE 152 Introduction to Computer Architecture

! Memory Overview. ! ROM Memories. ! RAM Memory " SRAM " DRAM. ! This is done because we can build. " large, slow memories OR

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Allmost all systems contain two main types of memory :

CSEE 3827: Fundamentals of Computer Systems. Storage

CENG4480 Lecture 09: Memory 1

The Memory Hierarchy Part I

DESIGN RAM MEMORIES BY USING FLIP-FLOP CIRCUITS

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

Contents. Main Memory Memory access time Memory cycle time. Types of Memory Unit RAM ROM

ECEN 449 Microprocessor System Design. Memories

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

Memory Devices. Future?

Semiconductor Memories: RAMs and ROMs

The Memory Component

EE251: Thursday November 15

MODULE 12 APPLICATIONS OF MEMORY DEVICES:

The Memory Hierarchy. Daniel Sanchez Computer Science & Artificial Intelligence Lab M.I.T. April 3, 2018 L13-1

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 15 Memories

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

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

Chapter 5. Internal Memory. Yonsei University

ECE 485/585 Microprocessor System Design

EEM 486: Computer Architecture. Lecture 9. Memory

Memory Hierarchy. Cache Memory. Virtual Memory

Grundlagen Microcontroller Memory. Günther Gridling Bettina Weiss

Computers: Inside and Out

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T

UNIT:4 MEMORY ORGANIZATION

Topic 21: Memory Technology

Topic 21: Memory Technology

Transcription:

Logic and Computer Design Fundamentals Memory Basics

Overview Memory definitions Random Access Memory (RAM) Static RAM (SRAM) integrated circuits Arrays of SRAM integrated circuits Dynamic RAM (DRAM) Read Only Memory (ROM) 2

Memory Definitions Memory : A collection of storage cells together with the necessary circuits to transfer information to and from them. Random Access Memory (RAM): a memory organized such that data can be transferred to or from any cell (or collection of cells) in a time that is not dependent upon the particular cell selected. Memory Address : A vector of bits that identifies a particular memory element (or collection of elements). 3

Memory Definitions (Continued) Typical data elements are: bit a single binary digit byte a collection of eight bits accessed together word a collection of binary bits whose size is a typical unit of access for the memory. It is typically a power of two multiple of bytes (e.g., 1 byte, 2 bytes, 4 bytes, 8 bytes, etc.) Memory Data: a bit or a collection of bits to be stored into or accessed from memory cells. Memory Operations: operations on memory data supported by the memory unit. Typically, read and write operations over some data element (bit, byte, word, etc.). 4

Memory Block Diagram A basic memory system is shown here: o k address lines are decoded to address 2 k words of memory. o Each word is n bits. o Read and Write are single control lines defining the simplest of memory operations. k Address Lines k Read Write 1 1 n Data Input Lines n Memory Unit 2 k Words n Bits per Word n n Data Output Lines 5

Basic Memory Operations Memory operations require the following: Data data written to, or read from, memory as required by the operation. Address specifies the memory location to operate on. The address lines carry this information into the memory. Typically: n bits specify locations of 2 n words. An operation Information sent to the memory and interpreted as control information which specifies the type of operation to be performed. Typical operations are READ and WRITE. 6

Basic Memory Operations (continued) Read Memory an operation that reads a data value stored in memory: Place a valid address on the address lines. Activate the Read input Wait for the read data to become stable. Write Memory an operation that writes a data value to memory: Place a valid address on the address lines Apply the data to the data lines. Toggle the memory write control line 7

Basic Memory Operations (continued) Instead of separate Read and Write control lines, most ICs provide a Chip Select that selects the chip to be read from or written to and a Read/Write that determines the particular operation. 8

Basic Memory Operations (continued) 9

RAM Integrated Circuits Types of random access memory Static information stored in latches Dynamic information stored as electrical charges on capacitors Charge leaks off Periodic refresh of charge required Dependence on Power Supply Volatile loses stored information when power turned off Non-volatile retains information when power turned off 10

Static RAM (1-Cell) Array of storage cells used to implement static RAM Storage Cell Select SR Latch Select input for control Dual Rail Data B S Q C Inputs B and B C R Q Dual Rail Data B Outputs C and C 11

Static RAM 1 Bit Slice Represents all circuitry that is required for 2 n 1-bit words Multiple Control Lines: Word select i one for each word Read / Write Bit Select Data Lines: Data in Data out Word Select 0 Word Select 1 Word Select2 n - 1 Read/Write logic Data in Data out Read/ Bit Write select 12

2 n -Word 1-Bit RAM IC To build a RAM IC from a RAM slice, we need: Decoder : decodes the n address lines to 2 n word select lines A 3-state buffer: on the data output permits RAM ICs to be combined into a RAM with c 2 n words A 3 A 2 A 1 A 0 Data input Read/ Write Memory enable 16 x 1 RAM (a) Symbol A 3 A 2 A 1 A 0 Data output 4-to-16 Decoder 0 2 3 1 2 2 2 3 4 2 1 5 6 2 0 7 8 9 10 11 12 13 14 15 Data input Word select Read/Write logic Data in Data out Read/ Write Bit select Data output Read/Write Chip select (b) Block diagram 13

2 n -Word 2-Bit RAM IC A 3 A 2 A 1 A 0 4-to-16 Decoder 0 2 3 1 2 2 2 3 4 2 1 5 6 2 0 7 8 9 10 11 12 13 14 15 Word select Read/Write logic Read/Write logic Data input Data in Data out Read/ Write Bit select Data 1 Data in Data out Read/ Write Bit select Data 0 Read/Write Chip select 14

Making Larger Memories Using the CS lines, we can make larger memories from smaller ones by: Tying all address, data, and R/W lines in parallel, and Using the decoded higher order address bits to control CS. Using the 4-Word by 1- Bit memory from before, we construct a 16-Word by 1-Bit memory. A3 A2 A1 A0 R/W Decoder S1 S0 D3 D2 D1 D0 A1 A0 R/W CS A1 A0 R/W CS A1 A0 R/W CS A1 A0 R/W CS D-In D-Out D-In D-Out D-In D-Out D-In D-Out Data In Data Out 15

Larger RAMs from Smaller RAMs 16

Making a Larger Memory 17

Analyzing the 256K x 8 RAM 18

Address Ranges 19

Making Wider Memories To construct wider memories from narrow ones, we tie the address and control lines in parallel and keep the data lines separate. For example, to make a 4-word by 4-bit memory from 4, 4-word by 1-bit memories Note: Both 16x1 and 4x4 memories take 4-chips and hold 16 bits of data. 20

Making a Wider Memory Here is a 64K x 16 RAM, created from two 64K x 8 chips. The left chip contains: The most significant 8 bits of the data. The right chip contains: The lower 8 bits of the data. 21

Dynamic RAM (DRAM) Dynamic memory is built with capacitors. A stored charge on the capacitor represents a logical 1. No charge represents a logic 0. However, capacitors lose their charge after a few milliseconds. The memory requires constant refreshing to recharge the capacitors. (That s what s dynamic about it.) Dynamic RAMs tend to be physically smaller than static RAMs. A single bit of data can be stored with just one capacitor and one transistor, while static s typically require 4-6 transistors. This means dynamic RAM is cheaper and denser more bits can be stored in the same physical area. 22

Dynamic RAM (DRAM) In practice, dynamic RAM is used for a computer s main memory, since it is cheap and you can pack a lot of storage into a small space. The disadvantage of dynamic RAM is its speed. Real systems augment dynamic memory with small but fast sections of static memory called caches. 23

READ ONLY MEMORY(ROM) Characteristics Perform read operation only, write operation is not possible Information stored in a ROM is made permanent during production and cannot be changed Organization k address input lines m x n ROM cs (m=2 k ) n data output lines Information on the data output line depends only on the information on the address input lines. --> Combinational Logic Circuit 24

An example ( ROM 2 2 X3) Address D0 2 X 4 decoder D1 X D2 Y D3 Word 0 Word1 Word 2 Word 3 Address outputs A0 A1 A2 X Y A0 A1 A2 0 0 1 0 1 0 0 0 1 1 0 0 0 1 1 - How many OR gates? - What size of Decoder needed? 1 1 1 1 0 25