1 Microprocessor-based systems Course 6 Memory design.

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems
Advertisements

Outline Memory characteristics SRAM Content-addressable memory details DRAM © Derek Chiou & Mattan Erez 1.
Chapter 5 Internal Memory
Computer Organization and Architecture
Memory Section 7.2. Types of Memories Definitions – Write: store new information into memory – Read: transfer stored information out of memory Random-Access.
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
5-1 Memory System. Logical Memory Map. Each location size is one byte (Byte Addressable) Logical Memory Map. Each location size is one byte (Byte Addressable)
Microprocessor System Design. Outline Address decoding Chip select Memory configurations.
EECC341 - Shaaban #1 Lec # 19 Winter Read Only Memory (ROM) –Structure of diode ROM –Types of ROMs. –ROM with 2-Dimensional Decoding. –Using.
ECE 301 – Digital Electronics Memory (Lecture #21)
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.
Memory Interface Dr. Esam Al_Qaralleh CE Department
Overview Memory definitions Random Access Memory (RAM)
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..
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.
Sec (1.2): Main memory. Memory: Stores data and instructions in the beginning, intermediate and final stages of the processing.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
University of Tehran 1 Microprocessor System Design Omid Fatemi Memory Interfacing
Physical Memory By Gregory Marshall. MEMORY HIERARCHY.
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
Chapter 4 ระบบหน่วยความจำ The Memory System
Memory and Programmable Logic
Basic concepts Maximum size of the memory depends on the addressing scheme: 16-bit computer generates 16-bit addresses and can address up to 216 memory.
Structure of Computer Systems
Memory /27/081ECE Lecture 13 Memory 2.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
Memory and Storage Dr. Rebhi S. Baraka
Memory System Unit-IV 4/24/2017 Unit-4 : Memory System.
Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Memory Organization and Interfacing CSE 2312 Maher Al-Khaiyat.
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
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.
 Seattle Pacific University EE Logic System DesignMemory-1 Memories Memories store large amounts of digital data Each bit represented by a single.
+ 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.
Memory Read only memory (ROM) – nonvolatile
Memory and Register. Memory terminology read/write operation volotile/non volatile determine the capacity from input and output timing requirements of.
Memory Cell Operation.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2007.
Computer Architecture Lecture 24 Fasih ur Rehman.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Semiconductor Memory Types
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 8.
Memory 2 ©Paul Godin Created March 2008 Memory 2.1.
Computer Architecture Chapter (5): Internal Memory
AHMEDABAD INSTITUTE OF TECHNOLOGY
Chapter 5 Internal Memory
Internal Memory.
Module IV Memory Organization.
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Electronics Technology
William Stallings Computer Organization and Architecture 8th Edition
Information Storage and Spintronics 10
Module IV Memory Organization.
William Stallings Computer Organization and Architecture 8th Edition
Semiconductor Memories
MICROPROCESSOR MEMORY ORGANIZATION
William Stallings Computer Organization and Architecture 8th Edition
Presentation transcript:

1 Microprocessor-based systems Course 6 Memory design

2 Memory circuits  Memory cell: A digital circuit that memorize one bit (e.g.: flip-flop)  Memory location (memory word) Set of elementary memory cells accessed (read or written) simultaneously The basic addressing element (1, 4, 8,16, 32 bits) Every location has an address  Memory circuit = Set of memory locations  Memory capacity – total number of locations (addresses) bk...b1b n-1 Linear structure addresses locations bk...b1b0 location Lines columns 012..c l-1 Matrix structure

3 Characteristics of a memory circuit  Geometry of internal organization: The length of the memory word, organization and addressing.  Memory capacity, Expressed in number of memory locations or in bytes For example:32 kbytes, 64 kB, 256MB, 1GB.  Volatility: loss of data ROM memory (Read Only Memories) – keeps/stores the data even when the power supply is switched off  ROM, PROM, EPROM, EEPROM, Flash RAM memory (Random Access Memories): it looses its content if the power supply is switched off  Static RAM (SRAM) High speed, low capacity  Dynamic RAM (DRAM): it looses its memory in time Medium speed, very high capacity

4 Characteristics of a memory circuit  Memory technologies: bipolar (TTL, TTL Shottky, ECL) – fast but low integration ratio, high power consumption MOS, CMOS – high integration ratio, high capacity, average speed, small power consumption  Time features: Access time: the time needed to read or write a memory location; expressed in nanoseconds [ns]. The duration of a read or write cycle The memory’s speed determined by its access time or transfer cycle  Power consumption, expressed in w/bit. Bipolar memories have higher power consumption; it depends on the capacity MOS memories have very low power consumption; it depends on the access frequency

5 Non-volatile memories: ROM, PROM EPROM, EEPROM, Flash ADDR DEC Data Amplifiers for read and programming A0 A1 An Control logic CS PROG OE DkDk-1 D1 D0 ADDR DATA Valid Address Valid Data t ACC T CYCLE t OE t CS t OH CS OE a. b.  The internal structure of a ROM memory

6 Non-volatile memories: ROM, PROM EPROM, EEPROM, Flash  ROM – Cannot be written, only read operations are allowed Written by the producer (through masks)  PROM – Programmable ROM - One write (programming) operation is allowed for the used  EPROM (UV) – Erasable PROM – a limited number of erase and re-write operations are allowed (aprox. 100 cycles)  EEPROM – Electrically EPROM – electrical erase and re-write (aprox cycles)  Flash – type of EEPROM with a block organization and higher capacity WL DL T ROM WL DL T PROM Vcc  F WL DL T1 EPROM PL T2

7 Static RAM memories ADDR DEC Input/output circuit A0 A1 An-1 Control logic CS Dk-1 Dk-2 D1 D0 Input amplifier Output amplifier kk Memory matrix ADDR DATA Valid address Valid Data t ACC T CITIRE CS R/W “1” t CD Internal structure b1. ADDR DATA Valid address Valid Data T SCRIERE t DM CS R/W Time diagrams for read and write operations WR

8 Structure of RAM memory ID k-1 CS D C QQ D C QQ D C QQ D C QQ D C QQ D C QQ D C QQ D C QQ D C QQ ID 1 ID 0 OD k-1 OD 1 OD 0 R/W ADDR DEC A0A0 A1A1 A n-1

9 Dynamic RAM memory  The elementary memory cell is a condenser It is charged (logical 1) or not (logical 0) at write operation; The charge is lost in time (in aprox. 2 ms)  High capacity  Requires refresh operations Raw addr. dec MUX / DMUX 2 n/2 -1:1 / 1: 2 n/2 -1 A0 A1 An/2-1 ID Raw address reg Column address reg n/ n/ n/2 RAS CAS OD WE WL/R DL T3 WL/W C T1 T2 DRAM Memory cell

10 Read, write and refresh cycles for DRAM memory Column addr. CAS ADDR DATA Raw addr Valid data T READ RAS WE Read cycle Column addr. CAS ADDR DATA Raw addr Valod data T WRITE RAS WE Write cycle CAS ADDR Raw addr T refresh RAS WE Refresh cycle

11 Design of a static RAM memory module  The structure of a memory module Addresses Data Selection Address Amp. Data Amp. Metrix of memory circuites Control circuit Dec Module selection Commands

12 Design parameters Memory capacity (KB, MB) Internal organization (ex: 8, 16, 32 bits) The bus: Address lines, data lines and commands Time restrictions Start address (the module’s place in the addressing space of the processor) Type of available memory circuits Other functional requirements

13 Design steps 1. Building of a memory sub-module with the required data width 2. Build the memory matrix with the required capacity, using the previously built sub-modules 3. Design the decoder module 4. Design of address amplifiers 5. Design of data amplifiers 6. Design of the control circuit (if needed)

14 Design example  Capacity: 1Mbytes  Organization: 16 bits with access on 8 bits too  The bus: ISA (24 address lines, 16 data lines, MRDC, MWTC)  Start address: C0000H  Available circuits: 64Kbytes

15 Building a sub-module with the required data width 64K *8 A1A2A1A2 A 16 WR\ CSH i \ CSL i \ D0D0 D1D1 D8D8 D7D7 D 15 D9D9 Submodule 64K*16= 128K*8

16 Building the memory matrix with the required capacity A 1 -A 16 64K *16 … D 0 -D 15 WR\ CSL 0 \ CSH 0 \ CSH 1 \ CSH 7 \ CSL 1 \ CSL 7 \ 512K*16=1M*8

17 Design of the decoder unit CS 0 \ CS 1 \ CS 7 \ A 17 -A 23 MRDC\, MWTC\ DEC SelMod\ 74LS 138 A 17 A 18 A 19 A 23 A 22 A 21 A 20 MRDC\ MWTC\ BHE\ A 0 CSL 0 \ CSH 0 \ CSL 7 \ CSH 7 \ SelMod\

18 Design of address and data amplifiers 74LS LS 245 SelMod\ RD\ SA 0 SA 1 SA 7 SA 8 SA 9 SA 15 SA 16 SA 23 A0A0 A1A1 A7A7 A8A8 A9A9 A 15 A 16 A 23 SD 0 SD 1 SD 7 SD 8 SD 9 SD 15 D0D0 D1D1 D7D7 D8D8 D9D9 D 15

19 Design of a DRAM memory module