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

Similar documents
COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

Read and Write Cycles

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

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

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

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

Computer Organization and Assembly Language (CS-506)

8051 INTERFACING TO EXTERNAL MEMORY

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

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

Chapter 5 Internal Memory

Computer Organization. 8th Edition. Chapter 5 Internal Memory

ECSE-2610 Computer Components & Operations (COCO)

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

Address connections Data connections Selection connections

UNIT:4 MEMORY ORGANIZATION

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

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

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

Summer 2003 Lecture 18 07/09/03

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

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

Magnetic core memory (1951) cm 2 ( bit)

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

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

Semiconductor Memories: RAMs and ROMs

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Memory and Programmable Logic

ECE 341. Lecture # 16

ECE321 Electronics I

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

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

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

Chapter TEN. Memory and Memory Interfacing

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

UNIT V (PROGRAMMABLE LOGIC DEVICES)

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

CS 320 February 2, 2018 Ch 5 Memory

Very Large Scale Integration (VLSI)

+1 (479)

Hardware Design with VHDL PLDs I ECE 443. FPGAs can be configured at least once, many are reprogrammable.

Introduction read-only memory random access memory

ELCT 912: Advanced Embedded Systems

Sense Amplifiers 6 T Cell. M PC is the precharge transistor whose purpose is to force the latch to operate at the unstable point.

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

Chapter 4 Main Memory

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

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

Memory & Simple I/O Interfacing

ECEN 449 Microprocessor System Design. Memories

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

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

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

FPGA Programming Technology

Large and Fast: Exploiting Memory Hierarchy

Digital Systems. Semiconductor memories. Departamentul de Bazele Electronicii

The Memory Hierarchy Part I

chapter 8 The Memory System Chapter Objectives

Allmost all systems contain two main types of memory :

Memory memories memory

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

CENG4480 Lecture 09: Memory 1

Design and Implementation of an AHB SRAM Memory Controller

ECE 485/585 Microprocessor System Design

Programmable Logic Devices Introduction CMPE 415. Programmable Logic Devices

Keywords: NVSRAM, DRAM, SRAM, EEPROM, shadow RAM, NV Memory, MK48Z08, MK48Z18, nvsrams, NV SRAMs

1. Explain in detail memory classification.[summer-2016, Summer-2015]

Computer Systems Organization

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

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

Memory and Programmable Logic

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

UNIT-V MEMORY ORGANIZATION

EE141-Fall 2007 Digital Integrated Circuits. ROM and Flash. Announcements. Read-Only Memory Cells. Class Material. Semiconductor Memory Classification

Computer Memory. Textbook: Chapter 1

eaymanelshenawy.wordpress.com

CS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2017 Lecture 13

EE 308: Microcontrollers

4 MEMORY SYSTEM 4.1 BASIC CONCEPTS:

Design with Microprocessors

THE MICROCOMPUTER SYSTEM CHAPTER - 2

MODULE 12 APPLICATIONS OF MEMORY DEVICES:

Computer Fundamentals

P-2 Digital Design & Applications

Logic and Computer Design Fundamentals. Chapter 8 Memory Basics

Integrated Circuits & Systems

CENG3420 Lecture 08: Memory Organization

Memory technology and optimizations ( 2.3) Main Memory

CHAPTER 12 ARRAY SUBSYSTEMS [ ] MANJARI S. KULKARNI

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Memory Hierarchy. Cache Memory. Virtual Memory

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

ELE 455/555 Computer System Engineering. Section 1 Review and Foundations Class 3 Technology

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

COMPUTER ARCHITECTURE

CS152 Computer Architecture and Engineering Lecture 16: Memory System

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

Information Storage and Spintronics 10

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

Transcription:

COMP3221: Microprocessors and Embedded Systems Lecture 23: Memory Systems (I) Overview Memory System Hierarchy RAM, ROM, EPROM, EEPROM and FLASH http://www.cse.unsw.edu.au/~cs3221 Lecturer: Hui Wu Session 2, 2005 COMP3221/9221: Microprocessors and Embedded Systems 2 Memory System Hierarchy Memory System Hierarchy Datapath Registers Fastest but most expensive Processor Control Cache or On-chip memory Increasing size Off-chip memory (RAM, ROM) Decreasing speed and cost Auxiliary storage (hard disk, floppy disk, CDROM) Slowest and cheapest 3 Registers Fastest but most expensive. Cache Slower than registers but bigger size. Managed by hardware and therefore typically invisible to programmers. On-chip memory (RAM and ROM) An alternative for cache. Managed by the software. External memory (RAM and ROM) Slower than on-chip memory but bigger size. Auxiliary storage (Hard disk, floppy disk, CDROM) Much slower than external memory but much bigger size. Non-volatile i.e. data exists after the power is switched off. 4

Computer Types and Memory Maps General purpose computer systems Programs and data (including OS) are stored on the auxiliary storage (typically hard disk). A large amount of RAM to store programs and data. When executed, programs are loaded from disk to RAM by OS. ROM to store boot-up code and low-level system I/O drivers. Embedded systems Typically no auxiliary storage. Program and constants are stored in ROM or non-volatile memory such as flash. Data are stored in RAM. Program could be copied from ROM to RAM to increase the execution speed. On-chip memory is preferred to cache due to its low power 5 consumption. Computer Types and Memory Maps (Cont.) Low Memory High Memory RAM ROM Area of RAM reserved for OS Application Programs BIOS and bootup code A general-purpose computer memory map 6 Computer Types and Memory Maps (Cont.) Semiconductor RAM Low Memory RAM None Enough RAM for variables and stack Memories are semiconductor integrated circuits. A RAM (Random Access Memory) chip consists of an array of memory cells, a decoder for addressing a particular cell, and signals to control the direction of data flow. High Memory ROM Enough ROM for application programs and possibly OS An embedded system memory map 7 8

An Example Semiconductor RAM An Example Semiconductor RAM 5-Bit Row 5 5-to-32 Row 32 Decoder 5-Bit Column 5 32 32-bit RAM Array 32 32 32-1 Multiplexer 32-1 Demultiplexer CE R/W The CE signal (chip enable, or sometimes CS, chip select) is derived by decoding the rest of address bus. R/W controls whether the memory cell is being read from or written to. D i and D o are separate data-in and data-out pins. Some chip has a single data I/O pin. D i D o 9 10 Static Memory Cells A static memory cell is a flip-flop. The transistors could be bipolar or MOS devices. The following figure shows a typical static memory cell. 2.5 V 0 V ROW_SELECT C 3.5 V C D1 R1 R1 A A R2 R2 Q1 Q1 COLUMN LINES D1 11 Static Memory Cells The bipolar flip-flop works as follows Assume the ROW_SELECT is high (2.5 volts) and that transistor Q1 is on. Current flows through R1 and R2, which are chosen to make the voltage at point A higher than the column line C. Q1 is off, making the voltage at point A higher than the column line C. Thus, when the row is not selected, the diodes D1 and D1 isolate the cell from from the column lines C and C. When the cell is read, ROW_SELECT is asserted (it now is 0 volt), point A becomes lower than C, and current flows in diode D1 from column line C. This current could signify a logic one stored in the cell. A logic zero is stored by turning Q1 off and Q1 on. Now, when ROW_SELECT is asserted, the C column line will not have current flow while C will. Writing into the cell involves asserting the ROW_SELECT and driving either C or C to set Q1 or Q1 depending on whether zero or one is to be stored. 12

Dynamic Memory Cells A dynamic cell is a capacitor where absence or presence of charge denotes a stored one or zero. The following figure shows a typical dynamic memory cell. The MOS capacitor can be written to by activating the row, or word, line to turn the MOS transistor on and charge the capacitor through the column, or bit, line. The cell can be read by turning the transistor on and sensing a voltage on the column. Row or Word Line MOS Transistor Dynamic Memory Cells (Cont.) A problem with dynamic cell is that the charge stored on the capacitor leaks away through the substrate. Thus, the dynamic memory must be refreshed at periodic intervals by activating ROW_SELECT line while holding all column lines at a particular voltage level. All cells in the row can have the capacitor s charge (or lack of charge) refreshed at once. MOS Capacitor Column or Bit Line 13 14 Static Memory Static Memory (Cont.) Static RAM, or SRAM, consists of array of flip-flops. Has lower density and thus lower storage capability than dynamic RAM. Simpler to use than dynamic RAM Does not need to refreshed like DRAM. 15 Logic block diagram of a typical SRAM 16

Dynamic Memory Dynamic Memory (Cont.) RAS CAS W CONTROL & CLOCKS FRESH CONTROL & ADDRESS COUNTER COLUMN DECODER SENSE AMPS & I/O GATINGS DATA IN BUFFER DATA OUT BUFFER D Q The DRAM chip has 10 bits, separate data-in and data-out pins, a write enable (w), and two other control signals: RAS (row address strobe) and CAS (column address strobe). RAS and CAS control the multiplexing of the two 10-bit address fields that make up the full 20-bit address required for 1M bits. REFRESH CONTROL& ADDRESS COUNTER MEMORY ARRAY 1,048,567 CELLS Vcc Vss Intel 1M 1-bit DRAM 17 18 DRAM Refresh The DRAM memory cell requires periodic refresh operation. There are several refresh methods. RAS-only refresh: This is the most common method of refresh. The row addresses are strobed by asserting RAS while CAS is held high. The cycle must be repeated for every row address. CAS-before-RAS refresh: CAS-before-RAS eliminates the need for external refresh addresses. If CAS is held low, a specified time before RAS is asserted, on-chip refresh circuitry automatically furnishes the refresh address. This method takes slightly longer time than RAS-only method. Hidden refresh:this refresh is done while maintaining the latest valid data at the output and extending CAS and cycling RAS. 19 Pseudostatic RAM A memory that combines the high storage capability of DRAM and ease of use of SRAM is pheudostatic RAM. It uses DRAM cells and includes on-chip refresh circuitry so that it appears to the user as SRAM. Some care must be taken to avoid a conflict when the system attempts to access the memory while an internal refresh is being done. Two approaches may be included in the design of the chip to solve this problem: In the first approach, a separate pin may be included to tell the RAM when it can execute a refresh cycle without conflicting with an external access request. External logic can pusle this input to refresh the chip. In the second approach, a ready or wait output from the RAM may be used for handshaking in a system where wait state can be generated. 20

ROM Memory There are various types of ROM memory chips. Mask programmable ROM are programmed during the manufacturing stage and cannot be programmed by user. Other ROM devices are field programmable and may be programmed by the user. These care called programmable read only memories., and include UV-erasable PROMs (EPROMs), one-time programmable (OTP) EPROMs, and fusible-link PROMs. EPROMs are electrically programmable are erased by irradiating the chip through a quartz window with ultraviolet (UV) light. An OTP EPROM is an EPROM without the window so that once programmed, it cannot be erased. Another type of programmable read only memory is the electrically erasable PROM (EEPROM), which can be programmed and erased while in use. Word Line ROM Memory Cells Bit Line Bit Line Bit Line Gate No Gate ROM cell Gate 21 22 ROM Memory Cells (Cont.) EPROM Memory Cells The ROM memory cell is simply a wire or connection made or not made in the programming process. The binary information is represented by the presence or absence of the gate on the MOS transistor. Activating the word line puts a one or zero on the bit line. UV Light to Erase Source Quartz Window Drain Filed Oxide SiO 2 Field Oxide n+ n+ Electrons injected to program Si Floating Gate p-substrate EPROM Cell 23 24

EPROM Memory Cells (Cont.) The EPROM cell is a MOS transistor without a connection to the gate. To program the EPROM, the chip is placed into a PROM programmer and during the programming cycle, the address and data are sent to the chip and the programming voltage is applied. To change the state of the gate, electrons are either injected by an avalanche mechanism into the silicon floating gate or not. This after the programming, the channel between the source and and the drain either conducts or does not. If the chip needs to be erased, it must be placed into the PROM eraser. The ultraviolet light irradiated from the PROM eraser disperses any charge stored in the floating gate back into the substrate and erases the memory. Source EEPROM Memory Cells Control Gate Drain Filed Oxide SiO 2 Field Oxide n+ n+ Electrons injected to program Si Floating Gate p-substrate EEPROM Cell 25 26 EEPROM Memory FLASH Memory The EEPROM is a further development of the EPROM. A second polysilicon gate, called the control gate, is added above the floating gate. A control voltage may be applied to the gate to program and erase the cell by injecting or disperse electrons in the floating gate. EEPROM can be programmed and erased without removing the chip from the circuit in use. The time required to write is longer than a comparable RAM chip. There is a maximum number of times it can be programmed (the industry standard as of 1993 is 10,000 program/erase Similar to the EEPROM. Its drawback is that the entire memory or page must be erased where single locations can be erased and reprogrammed in the EEPROM devices. cycles). 27 28

Reading 1. Chapter 9: Computer Memories. Microcontrollers and Microcomputers by Fredrick M. Cady 2. http://computer.howstuffworks.com/computer-memory.htm COMP3221/9221: Microprocessors and Embedded Systems 29