1 Random-Access Memory (RAM) Note: We’re skipping Sec 7.5 Today: First Hour: Static RAM –Section 7.6 of Katz’s Textbook –In-class Activity #1 Second Hour:

Slides:



Advertisements
Similar presentations
RAM (RANDOM ACCESS MEMORY)
Advertisements

Chapter 5 Internal Memory
Computer Organization and Architecture
Computer Organization and Architecture
Prith Banerjee ECE C03 Advanced Digital Design Spring 1998
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)
These slides incorporate figures from Digital Design Principles and Practices, third edition, by John F. Wakerly, Copyright 2000, and are used by permission.
1 DIGITAL DESIGN I DR. M. MAROUF MEMORY Read-only memories Static read/write memories Dynamic read/write memories Author: John Wakerly (CHAPTER 10.1 to.
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University Memory See: P&H Appendix C.8, C.9.
Sequential Logic Case Studies
Chapter 9 Memory Basics Henry Hexmoor1. 2 Memory Definitions  Memory ─ A collection of storage cells together with the necessary circuits to transfer.
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.
11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.
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)
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.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Sequential Logic Flip Flops Registers Memory Timing State Machines.
Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.
Overview Recall Combinational Logic Sequential Logic Storage Devices
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.
Lecture 4: Computer Memory
Chapter 5 Internal Memory
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
1 EE365 Read-only memories Static read/write memories Dynamic read/write memories.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.6 Random Access Memories.
1 Flip Flops, Registers Today: Latches, Flip FlipsFirst Hour: Types of Latches, Flip Flips –Section of Katz’s Textbook –In-class Activity #1.
10-1 Introduction Chapter #7: Sequential Logic Case Studies.
No. 7-1 Chapter #7: Sequential Logic Case Studies.
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.
Memory System Unit-IV 4/24/2017 Unit-4 : Memory System.
CPEN Digital System Design
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
1 Building Larger Circuits Today: Combinational Building BlocksFirst Hour: Combinational Building Blocks –Section 4.1 of Katz’s Textbook –In-class Activity.
Asynchronous vs. Synchronous Counters Ripple Counters Deceptively attractive alternative to synchronous design style State transitions are not sharp! Can.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /3/2013 Lecture 9: Memory Unit Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL.
COMP203/NWEN Memory Technologies 0 Plan for Memory Technologies Topic Static RAM (SRAM) Dynamic RAM (DRAM) Memory Hierarchy DRAM Accelerating Techniques.
Semiconductor Memory Types
Learning to Design Counters
COMP541 Memories II: DRAMs
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 8 – Memory Basics Logic and Computer Design.
Flip Flops, Registers Today: First Hour: Types of Latches, Flip Flips
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #3 Flip-Flops, Registers, Shift registers, Counters, Memory 3/3/2005.
Hierarchical Memory Systems Prof. Sin-Min Lee Department of Computer Science.
Computer Architecture Chapter (5): Internal Memory
COMP541 Memories II: DRAMs
Memories.
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Morgan Kaufmann Publishers
COMP541 Memories II: DRAMs
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
Computer Architecture & Operations I
William Stallings Computer Organization and Architecture 8th Edition
Hakim Weatherspoon CS 3410 Computer Science Cornell University
EE345: Introduction to Microcontrollers Memory
William Stallings Computer Organization and Architecture 7th Edition
Digital Logic & Design Dr. Waseem Ikram Lecture 40.
Overview Last lecture Digital hardware systems Today
Sequential Logic.
Prof. Hakim Weatherspoon
Presentation transcript:

1 Random-Access Memory (RAM) Note: We’re skipping Sec 7.5 Today: First Hour: Static RAM –Section 7.6 of Katz’s Textbook –In-class Activity #1 Second Hour: Dynamic RAM Section 7.6 of Katz’s Textbook –In-class Activity #2

2 Recap 1.Edge-triggered Flip Flops 2.Sequential Modules Registers: esp. shift registers Counters: esp., Self-Starting Counters 3.Counter Design Procedure: 1.Draw a State Transition Diagram 2.Derive the State Transition Table 3.Choose a Flip-Flop 4.Derive the Flip-Flop Input Functions 5.Sketch the circuit 6.Add Refinements such as Power-up Reset

3 670 Q4 D1 D4 D3 D2 Q3 Q2 Q1 GW WA WB GR RA RB Recap: 4-by-4 Register File To write Register 1, set GW = 0 and (WB, WA) to (0,1) To read Register 2, set GR = 0 and (RB, RA) to (1,0) Can read and write simultaneously, No clock. Read or write when enables asserted. To write Register 1, set GW = 0 and (WB, WA) to (0,1) To read Register 2, set GR = 0 and (RB, RA) to (1,0) Can read and write simultaneously, No clock. Read or write when enables asserted. Read enable Data Out Read Select Data in Write enable Register 0 (4 bits) Register 1 (4 bits) Register 2 (4 bits) Register 3 (4 bits) Write Select

4 How it works Register 0 Register 1 Register 2 Register 3 MUX Read Select Data Out DMUX Read enable Write Select Data in Write enable

5 Random Access Memories (RAM) Same idea as a register file, but optimized for very many words. –Small RAM: bit words. –Larger RAM: 4 million 8-bit words. Some Changes: –No separate Read and Write Selects –Register select lines now called ADDRESS LINES –DATA IN and DATA OUT use shared wires –Designed such that multiple RAM chips can be connected together to build larger memory systems (e.g., 512 MB)

x 4-bit RAM Cell #0 Cell #1 Cell #2 Cell #1021 Cell #1022 Cell # = 2 10 cells  10 Address Bits 4 bits per cell  4 Data Bits

7 Typical RAM Chip To Read: To Write: To Read: To Write: Chip Select Write Enable 4 Bi-directional Data Lines (read & write) 10 Address Lines

8 Basic RAM Structure A0A0 A1A1 DMUX READ LINES SELECT LINES Memory Buffer Register IO 0 IO 1 IO 2 IO 3 WE WRITE LINES TRI-STATE LOGIC USED HERE

9 Practical RAM Designs 1024 x 4-bit RAM will have 1024 rows, and 4 columns –“Long, Thin Design” –Not very practical to fabricate –Long wires can make a chip run slowly Need to make the design more “square”.

10 A Squarer Design Address Buffers for Row Decoders A9 A8 A7 A6 A5 A4 Storage Matrix 64 x 16 Sense Amplifiers Address Buffers for Column Decoders A3 A2 A1 A0 Data Buffers CS WE I/O0I/O1I/O2I/O3 64 x 64 Square Array Amplifiers & Mux/Demux Some Addr bits select row Some Addr bits select within row Tri-State Data Out

11 Timing Diagrams We have 10 address bits, 4 data bits, and 2 control signals –A conventional timing diagram will be much too big! –Need some notation to represent groups of bits A 9 … A 0 Bits Can Change Here Bits Steady Here (May be 0 or 1)

12 Read Operation WE CS Address Data Out Valid Address Access Time The time it takes for new data to appear at the output Access Time The time it takes for new data to appear at the output New Notation! Center line means High-Z state (disconnected)

13 Other Timing Conventions Input SignalOutput Signal Must be steadyWill be steady high or low high or low High-to-lowWill be changing from changes permittedhigh-to-low during designated interval Low-to highWill be changing from changes permittedlow-to-high during designated interval Don't-CareState changing (Does not apply)Centerline represents high impedance (off) state

14 Write Timing Input Data Valid Address Data In Address WE CS Memory Cycle Time Data is sensed during this time

15 Do Activity #1 Now Explore the data sheet for a RAM chip, and answer a few questions The complete data sheets are on the course website (calendar tool, today’s date) For Qns 6 & 7, please stay consistent with the truth table on the third page of the data sheet. The circuit diagram on the first page may be a bit confusing.

16 Types of RAM 1.Static RAM (from first hour) Easy to understand/use: One D-type Flip Flop for each bit Fast Hard to scale up Occupies a lot of chip area Expensive Dynamic RAM Scalable: One tiny capacitor, and one transistor for each bit Slower than SRAM, but very cheap, and dense Hassles: Destructive readout Bit contents decay, so need to be refreshed periodically

17 SRAM Cell Data Word Enable i j Basic Idea: Try to minimize the complexity of each cell A fancy Master/Slave JK would be inappropriate here!

18 Dynamic RAMs (DRAMs) Word Line Bit Line Word LineBit Line To Read: assert Word Line, sense Bit Line Word LineBit Line To Write: assert Word Line, drive Bit Line Single Transistor Single Transistor (a switch), and a capacitor memory element Read-Out is Destructive! Read-Out is Destructive! Extra circuits needed to write back what was read Capacitor leaks, so ms Capacitor leaks, so Storage decays in ms Refresh Cycles Refresh Cycles needed

19 DRAM Refresh Refresh Frequency 4096 word RAM -- refresh each word once every 4 ms Assume 120 ns memory access cycle 1 in 8 DRAM accesses This is one refresh cycle every 976 ns (1 in 8 DRAM accesses)! But this RAM is really organized into 64 rows 1 in 500 DRAM accesses This is one refresh cycle every 62.5 µs (1 in 500 DRAM accesses) refresh once every 16 µs Large capacity DRAMs have 256 rows, refresh once every 16 µs

20 Do Activity #2 Now Due: End of Class Today. RETAIN THE LAST PAGE(S) (#3 onwards)!! For Next Class: Bring Randy Katz Textbook, & TTL Data Book Required Reading: – Sec 8.1, 8.2 of Katz This reading is necessary for getting points in the Studio Activity!