EECS150 - Digital Design Lecture 16 - Memory

Similar documents
EECS150 - Digital Design Lecture 16 Memory 1

Review: Timing. EECS Components and Design Techniques for Digital Systems. Lec 13 Storage: Regs, SRAM, ROM. Outline.

EECS150 - Digital Design Lecture 13 - Project Description, Part 2: Memory Blocks. Project Overview

Computer Organization. 8th Edition. Chapter 5 Internal Memory

EECS150 - Digital Design Lecture 17 Memory 2

EECS 151/251A Spring 2019 Digital Design and Integrated Circuits. Instructor: John Wawrzynek. Lecture 18 EE141

Chapter 5 Internal Memory

Memory and Programmable Logic

EE178 Lecture Module 2. Eric Crabill SJSU / Xilinx Fall 2007

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

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

ECE 485/585 Microprocessor System Design

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

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

Chapter 5. Internal Memory. Yonsei University

ECEU530. Project Presentations. ECE U530 Digital Hardware Synthesis. Rest of Semester. Memory Structures

CSEE 3827: Fundamentals of Computer Systems. Storage

Basic FPGA Architecture Xilinx, Inc. All Rights Reserved

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 15 Memories

Introduction to SRAM. Jasur Hanbaba

FPGA RAM (C1) Young Won Lim 5/13/16

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Memories. Design of Digital Circuits 2017 Srdjan Capkun Onur Mutlu.

UNIT V (PROGRAMMABLE LOGIC DEVICES)

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

Memory and Programmable Logic

EECS150 - Digital Design Lecture 6 - Field Programmable Gate Arrays (FPGAs)

ELCT 912: Advanced Embedded Systems

Outline. EECS150 - Digital Design Lecture 6 - Field Programmable Gate Arrays (FPGAs) FPGA Overview. Why FPGAs?

ECE 485/585 Microprocessor System Design

ECSE-2610 Computer Components & Operations (COCO)

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

Lecture 18: DRAM Technologies

Computer Systems Laboratory Sungkyunkwan University

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

Chapter 4 Main Memory

Computer Memory. Textbook: Chapter 1

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

Design and Implementation of an AHB SRAM Memory Controller

Computer Organization and Assembly Language (CS-506)

Semiconductor Memories: RAMs and ROMs

Chapter 8 Memory Basics

ALTERA M9K EMBEDDED MEMORY BLOCKS

COMPUTER ARCHITECTURES

EE414 Embedded Systems Ch 5. Memory Part 2/2

Overview. Memory Classification Read-Only Memory (ROM) Random Access Memory (RAM) Functional Behavior of RAM. Implementing Static RAM

Section 6. Memory Components Chapter 5.7, 5.8 Physical Implementations Chapter 7 Programmable Processors Chapter 8

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

Views of Memory. Real machines have limited amounts of memory. Programmer doesn t want to be bothered. 640KB? A few GB? (This laptop = 2GB)

,e-pg PATHSHALA- Computer Science Computer Architecture Module 25 Memory Hierarchy Design - Basics

Memories: Memory Technology

MEMORY AND PROGRAMMABLE LOGIC

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)

Basic FPGA Architectures. Actel FPGAs. PLD Technologies: Antifuse. 3 Digital Systems Implementation Programmable Logic Devices

EECS150 - Digital Design Lecture 10 Logic Synthesis

Memories: a practical primer

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

Introduction read-only memory random access memory

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Topic 21: Memory Technology

Topic 21: Memory Technology

CDA 4253 FGPA System Design Xilinx FPGA Memories. Hao Zheng Comp Sci & Eng USF

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

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

Virtex-II Architecture

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

ECE 331 Digital System Design

Lecture 13: Memory and Programmable Logic

ECE 341. Lecture # 16

Design with Microprocessors

10/24/2016. Let s Name Some Groups of Bits. ECE 120: Introduction to Computing. We Just Need a Few More. You Want to Use What as Names?!

PLAs & PALs. Programmable Logic Devices (PLDs) PLAs and PALs

EEM 486: Computer Architecture. Lecture 9. Memory

Read and Write Cycles

Logic Synthesis. EECS150 - Digital Design Lecture 6 - Synthesis

Mainstream Computer System Components CPU Core 2 GHz GHz 4-way Superscaler (RISC or RISC-core (x86): Dynamic scheduling, Hardware speculation

Field Programmable Gate Array (FPGA)

Memory Systems for Embedded Applications. Chapter 4 (Sections )

Chapter 2: Memory Hierarchy Design (Part 3) Introduction Caches Main Memory (Section 2.2) Virtual Memory (Section 2.4, Appendix B.4, B.

Computer System Components

Large and Fast: Exploiting Memory Hierarchy

ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems

Address connections Data connections Selection connections

Read Only Memory ROM

Introduction to Field Programmable Gate Arrays

FPGA: What? Why? Marco D. Santambrogio

CS311 Lecture 21: SRAM/DRAM/FLASH

EECS150 - Digital Design Lecture 10 Logic Synthesis

Basics DRAM ORGANIZATION. Storage element (capacitor) Data In/Out Buffers. Word Line. Bit Line. Switching element HIGH-SPEED MEMORY SYSTEMS

Real Time Embedded Systems

ECE 2300 Digital Logic & Computer Organization

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

Design with Microprocessors

CS 320 February 2, 2018 Ch 5 Memory

Evolution of Implementation Technologies. ECE 4211/5211 Rapid Prototyping with FPGAs. Gate Array Technology (IBM s) Programmable Logic

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

The Memory Hierarchy Part I

EECS Components and Design Techniques for Digital Systems. Lec 20 RTL Design Optimization 11/6/2007

Transcription:

EECS150 - Digital Design Lecture 16 - Memory October 17, 2002 John Wawrzynek Fall 2002 EECS150 - Lec16-mem1 Page 1 Memory Basics Uses: data & program storage general purpose registers buffering table lookups CL implementation Whenever a large collection of state elements is required. Types: RAM - random access memory ROM - read only memory EPROM, FLASH - electrically programmable read only memeory Example RAM: Register file regid = register identifier sizeof(regid) = log2(# of reg) WE = write enable Fall 2002 EECS150 - Lec16-mem1 Page 2

Definitions Memory Interfaces for Acessing Data Asynchronous (unclocked): A change in the address results in data appearing Synchronous (clocked): A change in address, followed by an edge on CLK results in data appearing or write operation occuring. Volatile: Looses its state when the power goes off. Fall 2002 EECS150 - Lec16-mem1 Page 3 Functionally the regfile is equivalent to a 2-D array of flip-flops: Register File Internals Cell with write logic: How do we go from "regid" to "SEL"? Fall 2002 EECS150 - Lec16-mem1 Page 4

Regid (address) Decoding Fall 2002 EECS150 - Lec16-mem1 Page 5 Standard Internal Memory Organization Special circuit tricks are used for the cell array to improve storage density. (We will look at these later) RAM/ROM naming convention: examples: 32 X 8, "32 by 8" => 32 8-bit words 1M X 1, "1 meg by 1" => 1M 1-bit words Fall 2002 EECS150 - Lec16-mem1 Page 6

Functional Equivalence: Read Only Memory (ROM) Of course, full tri-state buffers are not needed at each cell point. Single transistors are used to implement zero cells. Logic one s are derived through precharging or bit-line pullup transistor. Fall 2002 EECS150 - Lec16-mem1 Page 7 Column MUX in ROMs and RAMs: Controls physical aspect ratio In DRAM, allows reuse of chip address pins Fall 2002 EECS150 - Lec16-mem1 Page 8

Cascading Memory Modules (or chips) example 256 X 8 ROM using 256 X 4 parts: example: 1K X * ROM using 256 X 4 parts: each module has tri-state outputs: Fall 2002 EECS150 - Lec16-mem1 Page 9 Example Memory Components: Volatile: Random Access Memory (RAM): DRAM "dynamic" SRAM "static" Non-volatile: Read Only Memory (ROM): Mask ROM "mask programmable" EPROM "electrically programmable" EEPROM "erasable electrically programmable" FLASH memory - similar to EEPROM with programmer integrated on chip Fall 2002 EECS150 - Lec16-mem1 Page 10

Volatile Memory Comparison SRAM Cell DRAM Cell word line word line bit line bit line bit line Larger cell lower density, higher cost/bit No refresh required Simple read faster access Standard IC process natural for integration with logic Smaller cell higher density, lower cost/bit Needs periodic refresh, and refresh after read Complex read longer access time Special IC process difficult to integrate with logic circuits Fall 2002 EECS150 - Lec16-mem1 Page 11 Multi-ported Memory Motivation: Consider CPU core register file: 1 read or write per cycle limits processor performance. Complicates pipelining. Difficult for different instructions to simultaneously read or write regfile. Common arrangement in pipelined CPUs is 2 read ports and 1 write port. Motivation: I/O data buffering: disk/network data buffer CPU dual-porting allows both sides to simultaneously access memory at full bandwidth. sel a sel b sel c data a Regfile addr a data a RW a addr b data b RW b Dual-port Memory data b data c Fall 2002 EECS150 - Lec16-mem1 Page 12

Dual-ported Memory Internals Add decoder, another set of read/write logic, bits lines, word lines: dec a dec b cell array Example cell: SRAM WL 2 WL 1 address ports data ports r/w logic r/w logic b 2 b 1 b 1 b 2 Repeat everything but crosscoupled inverters. This scheme extends up to a couple more ports, then need to add additional transistors. Fall 2002 EECS150 - Lec16-mem1 Page 13 In Desktop Computer Systems: SRAM (lower density, higher speed) used in CPU register file, on- and off-chip caches. DRAM (higher density, lower speed) used in main memory Closing the GAP: Innovation targeted towards higher bandwidth for memory systems: SDRAM - synchronous DRAM RDRAM - Rambus DRAM EDORAM - extended data out SRAM Three-dimensional RAM hyper-page mode DRAM video RAM multibank DRAM Fall 2002 EECS150 - Lec16-mem1 Page 14

Important DRAM Examples: EDO - extended data out (similar to fast-page mode) RAS cycle fetched rows of data from cell array blocks (long access time, around 100ns) Subsequent CAS cycles quickly access data from row buffers if within an address page (page is around 256 Bytes) SDRAM - synchronous DRAM clocked interface uses dual banks internally. Start access in one back then next, then receive data from first then second. DDR - Double data rate SDRAM Uses both rising (positive edge) and falling (negative) edge of clock for data transfer. (typical 100MHz clock with 200 MHz transfer). RDRAM - Rambus DRAM Entire data blocks are access and transferred out on a highspeed bus-like interface (500 MB/s, 1.6 GB/s) Tricky system level design. More expensive memory chips. Fall 2002 EECS150 - Lec16-mem1 Page 15 Non-volatile Memory Used to hold fixed code (ex. BIOS), tables of data (ex. FSM next state/output logic), slowly changing values (date/time on computer) Mask ROM Used with logic circuits for tables etc. Contents fixed at IC fab time (truly write once!) EPROM (erasable programmable) & FLASH requires special IC process (floating gate technology) writing is slower than RAM. EPROM uses special programming system to provide special voltages and timing. reading can be made fairly fast. rewriting is very slow. erasure is first required, EPROM - UV light exposure Fall 2002 EECS150 - Lec16-mem1 Page 16

FLASH Memory Electrically erasable In system programmability and erasability (no special system or voltages needed) On-chip circuitry (FSM) to control erasure and programming (writing) Erasure happens in variable sized "sectors" in a flash (16K - 64K Bytes) See: http://developer.intel.com/design/flash/ for product descriptions, etc. Fall 2002 EECS150 - Lec16-mem1 Page 17 Memory Specification in Verilog Memory modeled by an array of registers: reg[15:0] memword[0:1023]; // 1,024 registers of 16 bits each //Example Memory Block Specification // Uses enable to control both write and read //----------------------------- //Read and write operations of memory. //Memory size is 64 words of 4 bits each. module memory (Enable,ReadWrite,Address,DataIn,DataOut); input Enable,ReadWrite; input [3:0] DataIn; input [5:0] Address; output [3:0] DataOut; reg [3:0] DataOut; reg [3:0] Mem [0:63]; //64 x 4 memory always @ (Enable or ReadWrite) if (Enable) if (ReadWrite) DataOut = Mem[Address]; //Read else Mem[Address] = DataIn; //Write else DataOut = 4'bz; //High impedance state endmodule Fall 2002 EECS150 - Lec16-mem1 Page 18

Memory Blocks in FPGAs LUTs can double as small RAM blocks: 4-LUT is really a 16x1 memory. Normally we think of the contents being written from the configuration bit stream, but Virtex architecture (and others) allow bits of LUT to be written and read from the general interconnect structure. achieves 16x density advantage over using CLB flipflops. Furthermore, the two LUTs within a slice can be combined to create a 16 x 2-bit or 32 x 1-bit synchronous RAM, or a 16x1-bit dual-port synchronous RAM. The Virtex-E LUT can also provide a 16-bit shift register of adjustable length. Newer FPGA families include larger on-chip RAM blocks (usually dual ported): Called block selectrams in Xilinx Virtex series 4k bits each WE D WCLK A0 A1 A2 A3 RAM16X1S Fall 2002 EECS150 - Lec16-mem1 Page 19 WE D WCLK A0 A1 A2 A3 DPRA0 DPRA1 DPRA2 DPRA3 RAM16X1D X4950 SPO DPO X4942 one read port, one write port O Synchronous write, asynchronous read D CE CLK A0 A1 A2 A3 SRL16E_1 X8421 Q Length controlled by A0-A3 Verilog Specification for Virtex LUT RAM module ram16x1(q, a, d, we, clk); output q; input d; input [3:0] a; input clk, we; reg mem [15:0]; always @(posedge clk) begin if(we) mem[a] <= d; end assign q = mem[a]; endmodule WE D WCLK A0 A1 A2 A3 RAM16X1S X4942 Deeper and/or wider RAMs can be specified and the synthesis tool will do the job of wiring together multiple LUTs. How does the synthesis tool choose to implement your RAM as a collection of LUTs or as block RAMs? O Fall 2002 EECS150 - Lec16-mem1 Page 20

Each block SelectRAM (block RAM) cell is a fully synchronous (synchronous write and read) dualported (true dual port) 4096-bit RAM with independent control signals for each port. The data widths of the two ports can be configured independently, providing built-in bus-width conversion. CLKA and CLKB can be independent, providing a nice way to cross clock bounders. Around 160 of these on the 2000E. Multiples can be combined to implement, wider or deeper memories. See chapter 8 of Synplify reference manual on how to write Verilog for implied Block RAMs. Or instead, explicitly instantiate as primitive (project checkpoint 2 will use this method). Virtex Block RAMs WEA ENA RSTA CLKA ADDRA[#:0] DIA[#:0] WEB ENB RSTB CLKB ADDRB[#:0] DIB[#:0] DOA[#:0] DOB[#:0] Table 5: Block SelectRAM Port AspectRatios Width Depth ADDR Bus Data Bus 1 4096 ADDR<11:0> DATA<0> 2 2048 ADDR<10:0> DATA<1:0> 4 1024 ADDR<9:0> DATA<3:0> 8 512 ADDR<8:0> DATA<7:0> 16 256 ADDR<7:0> DATA<15:0> Fall 2002 EECS150 - Lec16-mem1 Page 21 Relationship between Memory and CL Memory blocks can be (and often are) used to implement combinational logic functions: Examples: LUTs in FPGAs 1Mbit x 8 EPROM can implement 8 independent functions each of log 2 (1M)=20 inputs. The decoder part of a memory block can be considered a minterm generator. The cell array part of a memory block can be considered an OR function over a subset of rows. The combination gives us a way to implement logic functions directly in sum of products form. Several variations on this theme exist in a set of devices called Programmable logic devices (PLDs) Fall 2002 EECS150 - Lec16-mem1 Page 22

A ROM as AND/OR Logic Device Fall 2002 EECS150 - Lec16-mem1 Page 23 PLD Summary Fall 2002 EECS150 - Lec16-mem1 Page 24

PLA Example Fall 2002 EECS150 - Lec16-mem1 Page 25 PAL Example Fall 2002 EECS150 - Lec16-mem1 Page 26