COMP3221: Microprocessors and Embedded Systems

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems
Advertisements

Chapter 5 Internal Memory
Computer Organization and Architecture
Computer Organization and Architecture
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
What is memory? Memory is used to store information within a computer, either programs or data. Programs and data cannot be used directly from a disk or.
Chapter 10. Memory, CPLDs, and FPGAs
11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.
Registers –Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Static Memory Outline –Types of Static Memory –Static RAM –Battery Backup –EPROM –Flash Memory –EEPROM Goal –Understand types of static memory –Understand.
Chapter 5 Internal Memory
Memory Devices Wen-Hung Liao, Ph.D..
IT Systems Memory EN230-1 Justin Champion C208 –
Memory Key component of a computer system is its memory system to store programs and data. ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides12.ppt.
1 EE365 Read-only memories Static read/write memories Dynamic read/write memories.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Chapter 6 Memory and Programmable Logic Devices
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
5.1 Semiconductor main memory  Organization The basic element of a semiconductor memory is the memory cell. Semiconductor memory cells properties: 1.
EE 261 – Introduction to Logic Circuits Module #8 Page 1 EE 261 – Introduction to Logic Circuits Module #8 – Programmable Logic & Memory Topics A.Programmable.
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
Chapter 4 ระบบหน่วยความจำ The Memory System
Memory Hierarchy.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Memory and Programmable Logic
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
Chapter 5 Internal Memory. Semiconductor Memory Types.
Chapter 8 Memory Interface
Memory and Storage Dr. Rebhi S. Baraka
Chapter 3 Internal Memory. Objectives  To describe the types of memory used for the main memory  To discuss about errors and error corrections in the.
Memory System Unit-IV 4/24/2017 Unit-4 : Memory System.
Digital Design: Principles and Practices
CIM101 : Introduction to computer Lecture 3 Memory.
INTRODUCTION  Major advantage of digital over analog is the ability to easily store large quantities of digital information and data.  Memory – store.
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
Chapter 6: Internal Memory Computer Architecture Chapter 6 : Internal Memory Memory Processor Input/Output.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Memory and Register. Memory terminology read/write operation volotile/non volatile determine the capacity from input and output timing requirements of.
Computer Architecture Lecture 24 Fasih ur Rehman.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Semiconductor Memory Types
Memory 2 ©Paul Godin Created March 2008 Memory 2.1.
1 Memory Hierarchy (I). 2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1.
Chapter 5 Internal Memory. contents  Semiconductor main memory - organisation - organisation - DRAM and SRAM - DRAM and SRAM - types of ROM - types of.
Computer Architecture Chapter (5): Internal Memory
발표자 : 이재신 발표 일시 : Chapter 2 Hardware Fundamentals for the Software Engineer The embedded-systems software engineer must often understand.
Index What is an Interface Pins of 8085 used in Interfacing Memory – Microprocessor Interface I/O – Microprocessor Interface Basic RAM Cells Stack Memory.
COMP2121: Microprocessors and Interfacing
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
Internal Memory.
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Subject Name: Embedded system Design Subject Code: 10EC74
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Semiconductor Memories
MICROPROCESSOR MEMORY ORGANIZATION
William Stallings Computer Organization and Architecture 8th Edition
Presentation transcript:

COMP3221: Microprocessors and Embedded Systems Lecture 23: Memory Systems (I) http://www.cse.unsw.edu.au/~cs3221 Lecturer: Hui Wu Session 2, 2004

COMP3221/9221: Microprocessors and Embedded Systems Overview Memory System Hierarchy RAM, ROM, EPROM, EEPROM and FLASH COMP3221/9221: Microprocessors and Embedded Systems

Memory System Hierarchy Decreasing speed and cost Processor Increasing size Control Auxiliary storage (hard disk, floppy disk, CDROM) Off-chip memory (RAM, ROM) Datapath Cache or On-chip memory Registers Fastest but most expensive Slowest and cheapest

Memory System Hierarchy 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.

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 consumption.

Computer Types and Memory Maps (Cont.) Low Memory Address Area of RAM reserved for OS Application Programs RAM High Memory Address BIOS and boot-up code ROM A general-purpose computer memory map

Computer Types and Memory Maps (Cont.) Low Memory Address Enough RAM for variables and stack RAM None Enough ROM for application programs and possibly OS ROM High Memory Address An embedded system memory map

Semiconductor RAM 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.

An Example Semiconductor RAM 5-to-32 Row Address Decoder 5-Bit Row Address 5 32 32×32-bit RAM Array 32 32 5-Bit Column Address 5 32-1 Multiplexer 32-1 Demultiplexer CE R/W Di Do

An Example Semiconductor RAM 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. Di and Do are separate data-in and data-out pins. Some chip has a single data I/O pin.

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. C 3.5 V C´ R1 R1´ D1 D1´ A A´ R2 R2´ 2.5 V 0 V Q1 Q1´ ROW_SELECT COLUMN LINES

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.

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 MOS Capacitor Column or Bit Line

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.

Static Memory 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.

Logic block diagram of a typical SRAM Static Memory (Cont.) Logic block diagram of a typical SRAM

Dynamic Memory Intel 1M×1-bit DRAM RAS DATA IN BUFFER CONTROL & CLOCKS CAS FRESH CONTROL & ADDRESS COUNTER W DATA OUT BUFFER COLUMN DECODER Q SENSE AMPS & I/O GATINGS REFRESH CONTROL& ADDRESS COUNTER MEMORY ARRAY 1,048,567 CELLS Vcc Vss Intel 1M×1-bit DRAM

Dynamic Memory (Cont.) 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.

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.

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.

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.

ROM Memory Cells Bit Line Bit Line Bit Line Word Line Gate No Gate ROM cell

ROM Memory Cells (Cont.) 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.

EPROM Memory Cells UV Light to Erase Quartz Window Drain Source SiO2 Filed Oxide Field Oxide n+ n+ Electrons injected to program Si Floating Gate p-Substrate EPROM Cell

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.

EEPROM Memory Cells Control Gate Drain Source SiO2 Filed Oxide Field Oxide n+ n+ Electrons injected to program Si Floating Gate p-Substrate EEPROM Cell

EEPROM 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 cycles).

FLASH Memory 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.

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