Memory System Unit-IV 4/24/2017 Unit-4 : Memory System.

Slides:



Advertisements
Similar presentations
MEMORY popo.
Advertisements

RAM (RANDOM ACCESS MEMORY)
COEN 180 SRAM. High-speed Low capacity Expensive Large chip area. Continuous power use to maintain storage Technology used for making MM caches.
Computer Organization and Architecture
Computer Organization and Architecture
+ 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)
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
These slides incorporate figures from Digital Design Principles and Practices, third edition, by John F. Wakerly, Copyright 2000, and are used by permission.
Chapter 9 Memory Basics Henry Hexmoor1. 2 Memory Definitions  Memory ─ A collection of storage cells together with the necessary circuits to transfer.
10/11/2007EECS150 Fa07 - DRAM 1 EECS Components and Design Techniques for Digital Systems Lec 14 – Storage: DRAM, SDRAM David Culler Electrical Engineering.
1 The Basic Memory Element - The Flip-Flop Up until know we have looked upon memory elements as black boxes. The basic memory element is called the flip-flop.
1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Overview Memory definitions Random Access Memory (RAM)
1 Pertemuan 17 Internal Memory: I Matakuliah: T0324 / Arsitektur dan Organisasi Komputer Tahun: 2005 Versi: 1.
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.
SDRAM Memory Controller
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.
Memory It’s all about storing bits--binary digits
CS 151 Digital Systems Design Lecture 30 Random Access Memory (RAM)
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
1 Lecture 16B Memories. 2 Memories in General RAM - the predominant memory ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
1 EE365 Read-only memories Static read/write memories Dynamic read/write memories.
Physical Memory and Physical Addressing By: Preeti Mudda Prof: Dr. Sin-Min Lee CS147 Computer Organization and Architecture.
CS1104-8Memory1 CS1104: Computer Organisation Lecture 8: Memory
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 8 – Memory Basics Logic and Computer Design.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
Chapter 5-1 Memory System
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.
CMPUT 429/CMPE Computer Systems and Architecture1 CMPUT429 - Winter 2002 Topic5: Memory Technology José Nelson Amaral.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 9 – Part 1.
Memory and Storage Dr. Rebhi S. Baraka
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
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.
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
+ 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.
Computer Architecture Lecture 24 Fasih ur Rehman.
Semiconductor Memory Types
Memory Devices 1. Memory concepts 2. RAMs 3. ROMs 4. Memory expansion & address decoding applications 5. Magnetic and Optical Storage.
Random Access Memory (RAM).  A memory unit stores binary information in groups of bits called words.  The data consists of n lines (for n-bit words).
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 8 – Memory Basics Logic and Computer Design.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 22 Memory Definitions Memory ─ A collection of storage cells together with the necessary.
07/11/2005 Register File Design and Memory Design Presentation E CSE : Introduction to Computer Architecture Slides by Gojko Babić.
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
RAM RAM - random access memory RAM (pronounced ramm) random access memory, a type of computer memory that can be accessed randomly;
CS 1251 Computer Organization N.Sundararajan
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
Internal Memory.
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.
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Digital Logic & Design Dr. Waseem Ikram Lecture 40.
AKT211 – CAO 07 – Computer Memory
William Stallings Computer Organization and Architecture 8th Edition
Jazan University, Jazan KSA
Presentation transcript:

Memory System Unit-IV 4/24/2017 Unit-4 : Memory System

Basic concepts (contd..) Memory Processor k -bit address bus MAR n -bit data bus Up to 2 k addressable MDR locations Word length = n bits Control lines ( , MFC, etc.) R / W Recall that the data transfers between a processor and memory involves two registers MAR and MDR. If the address bus is k-bits, then the length of MAR is k bits. If the word length is n-bits, then the length of MDR is n bits. Control lines include R/W and MFC. For Read operation R/W = 1 and for Write operation R/W = 0. 4/24/2017 Unit-4 : Memory System

Basic concepts (contd..) Measures for the speed of a memory: Elapsed time between the initiation of an operation and the completion of an operation is the memory access time. Minimum time between the initiation of two successive memory operations is memory cycle time. In general, the faster a memory system, the costlier it is and the smaller it is. 4/24/2017 Unit-4 : Memory System

Basic concepts (contd..) An important design issue is to provide a computer system with as large and fast a memory as possible, within a given cost target. Several techniques to increase the effective size and speed of the memory: Cache memory (to increase the effective speed). Virtual memory (to increase the effective size). 4/24/2017 Unit-4 : Memory System

Semiconductor RAM memories Random Access Memory (RAM) memory unit is a unit where any location can be addressed in a fixed amount of time, independent of the location’s address. 4/24/2017 Unit-4 : Memory System

Semiconductor RAM memories Internal organization of memory chips: Each memory cell can hold one bit of information. Memory cells are organized in the form of an array. One row is one memory word. All cells of a row are connected to a common line, known as the “word line”. Word line is connected to the address decoder. Sense/write circuits are connected to the data input/output lines of the memory chip. 4/24/2017 Unit-4 : Memory System

Semiconductor RAM memories Internal organization of memory chips 7 7 1 1 W • FF FF A W • 1 A 1 Address • • • • • • Memory decoder cells A 2 A 3 W • 15 Sense / Write Sense / Write Sense / Write R / W circuit circuit circuit CS Data input /output lines: b b b 7 1 4/24/2017 Unit-4 : Memory System

Semiconductor RAM memories Internal organization of memory chips 5-bit row address W W 1 32 ´ 32 5-bit memory cell decoder array W 31 Sense / Write circuitry 10-bit address 32-to-1 R / W output multiplexer and CS input demultiplexer 5-bit column address Data input/output 4/24/2017 Unit-4 : Memory System

Semiconductor RAM memories Static RAMs (SRAMs): Consist of circuits that are capable of retaining their state as long as the power is applied. Volatile memories, because their contents are lost when power is interrupted. Access times of static RAMs are in the range of few nanoseconds. However, the cost is usually high. Dynamic RAMs (DRAMs): Do not retain their state indefinitely. Contents must be periodically refreshed. Contents may be refreshed while accessing them for reading. 4/24/2017 Unit-4 : Memory System

Static Memories - SRAM Contain circuits that retains their state as long as power is applied Implementation cross connect two inverters to form a latch transistors act as switches that open or close under the control of the Word Line 4/24/2017 Unit-4 : Memory System

Static Memories - SRAM Operation Write: Sense/ write circuit places value on line b and compliment on b’; forces cell into correct state Read: Activate Word Line to close switches T1 and T2 ; b carries the value of the circuit; Sense/ write circuit monitors b and b’ and set out accordingly 4/24/2017 Unit-4 : Memory System

A Static RAM Cell 4/24/2017 Unit-4 : Memory System

CMOS Memory Cell Major advantage of very low power consumption current flows only when the cell is being accessed 5 volt and 3.3 volt versions Implementation transistor pairs forms the inverters in state 1, point X is high transistors T3 and T6 are on while T4 and T5 are off 4/24/2017 Unit-4 : Memory System

A CMOS Memory Cell 4/24/2017 Unit-4 : Memory System

SRAM Operation Transistor arrangement gives stable logic state State 1 C1 high, C2 low T1 T4 off, T2 T3 on State 0 C2 high, C1 low T2 T3 off, T1 T4 on Address line transistors T5 T6 form switches Write – apply value to B and complement to B Read – value is on line B, no rewrite required feedback 4/24/2017 Unit-4 : Memory System

SRAM - Static RAM Bits stored in flip-flop No charges to leak No refreshing needed when powered - does not need refresh circuits, does not waste time refreshing More complex cell– more transistors per cell Larger per bit More expensive Faster Used for cache memory 4/24/2017 Unit-4 : Memory System

DRAM - Dynamic RAM Bits stored as charge in capacitors Charges leak in milliseconds Need periodic refreshing even when powered – read, rewrite by CPU Need to refresh → ‘dynamic’ RAM Simpler construction but need refresh circuits Smaller per bit Less expensive Slower Used for main memory 4/24/2017 Unit-4 : Memory System

DRAM Operation Address line active when bit read or written Transistor switch high – line closed (current flows) Write Voltage to bit line High for 1, low for 0 Signal (activate) address line Transfers charge to capacitor Read Address line selected transistor turns on Charge from capacitor fed via bit line to sense amplifier Compares with reference value to determine 0 or 1 Capacitor charge must now be restored - rewrite – cycle time! WRITE READ 4/24/2017 Unit-4 : Memory System

Asynchronous DRAM Internal organization of a Dynamic RAM memory chip Organized as 4kx4k array. 4096 cells in each row are divided into 512 groups of 8. Each row can store 512 bytes. 12 bits to select a row, and 9 bits to select a group in a row. Total of 21 bits. Reduce the number of bits by multiplexing row and column addresses. First apply the row address, RAS signal latches the row address. Then apply the column address, CAS signal latches the address. Timing of the memory unit is controlled by a specialized unit which generates RAS and CAS. This is asynchronous DRAM. R A S Row Row 4096 ´ ( 512 ´ 8 ) address decoder cell array latch CS Sense / Write A 20 9 - 8 ¤ circuits R / W Column Column address decoder latch C A S 4/24/2017 Unit-4 : Memory System

Semiconductor RAM memories(contd..) Recall the operation of the memory: First all the contents of a row are selected based on a row address. Particular byte is selected based on the column address. Suppose if we want to access the consecutive bytes in the selected row. This can be done without having to reselect the row. Add a latch at the output of the sense circuits in each row. All the latches are loaded when the row is selected. Different column addresses can be applied to select and place different bytes on the data lines. 4/24/2017 Unit-4 : Memory System

Semiconductor RAM memories(contd..) Consecutive sequence of column addresses can be applied under the control signal CAS, without reselecting the row. Allows a block of data to be transferred at a much faster rate than random accesses. A small collection/group of bytes is usually referred to as a block. This transfer capability is referred to as the fast page mode feature. 4/24/2017 Unit-4 : Memory System

Conventional DRAM Organization d x w DRAM: dw total bits organized as d supercells of size w bits 16 x 8 DRAM chip cols 1 2 3 memory controller 2 bits / addr 1 rows 2 supercell (2,1) (to CPU) 3 8 bits / data 4/24/2017 Unit-4 : Memory System internal row buffer

Reading DRAM Supercell (2,1) Step 1(a): Row access strobe (RAS) selects row 2. Step 1(b): Row 2 copied from DRAM array to row buffer. 16 x 8 DRAM chip cols memory controller 1 2 3 RAS = 2 2 / addr 1 rows 2 3 8 / data 4/24/2017 Unit-4 : Memory System internal row buffer

Reading DRAM Supercell (2,1) Step 2(a): Column access strobe (CAS) selects column 1. Step 2(b): Supercell (2,1) copied from buffer to data lines, and eventually back to the CPU. 16 x 8 DRAM chip cols memory controller 1 2 3 CAS = 1 2 / addr supercell (2,1) To CPU 1 rows 2 3 8 / data supercell (2,1) 4/24/2017 Unit-4 : Memory System internal row buffer internal buffer

Basic DRAM read & write Strobe address in two steps 4/24/2017 Unit-4 : Memory System

DRAM READ Timing Every DRAM access begins at: Assertion of the RAS_L 2 ways to read: early or late v. CAS RAS_L CAS_L WE_L OE_L D A 256K x 8 DRAM 9 8 DRAM Read Cycle Time RAS_L CAS_L A Row Address Col Address Junk Row Address Col Address Junk Similar to DRAM write, DRAM read can also be a Early read or a Late read. In the Early Read Cycle, Output Enable is asserted before CAS is asserted so the data lines will contain valid data one Read access time after the CAS line has gone low. In the Late Read cycle, Output Enable is asserted after CAS is asserted so the data will not be available on the data lines until one read access time after OE is asserted. Once again, notice that the RAS line has to remain asserted during the entire time. The DRAM read cycle time is defined as the time between the two RAS pulse. Notice that the DRAM read cycle time is much longer than the read access time. Q: RAS & CAS at same time? Yes, both must be low +2 = 65 min. (Y:45) WE_L OE_L D High Z Junk Data Out High Z Data Out Read Access Time Output Enable Delay 4/24/2017 Unit-4 : Memory System Early Read Cycle: OE_L asserted before CAS_L Late Read Cycle: OE_L asserted after CAS_L

Early Read Sequencing Assert Row Address Assert RAS_L Assert OE_L Commence read cycle Meet Row Addr setup time before RAS/hold time after RAS Assert OE_L Assert Col Address Assert CAS_L Meet Col Addr setup time before CAS/hold time after CAS Valid Data Out after access time Disassert OE_L, CAS_L, RAS_L to end cycle 4/24/2017 Unit-4 : Memory System

Late Read Sequencing Assert Row Address Assert RAS_L Commence read cycle Meet Row Addr setup time before RAS/hold time after RAS Assert Col Address Assert CAS_L Meet Col Addr setup time before CAS/hold time after CAS Assert OE_L Valid Data Out after access time Disassert OE_L, CAS_L, RAS_L to end cycle 4/24/2017 Unit-4 : Memory System