Docsity

Memory Modeling using flowHDL: Understanding Memory Arrays and Controllers, Study notes of Computer Science

Partial preview of the text

Download Memory Modeling using flowHDL: Understanding Memory Arrays and Controllers and more Study notes Computer Science in PDF only on Docsity!

2002/11/

Fall 2002 - Lecture 33

Memory Modeling using flowHDL

© 2002 Dr. James P. Davis

Some figures © 1999 Tanenbaum, 4

th

ed.

CSCE 491

CSCE 491

Capstone Computer

Capstone Computer Engr

Engr. Project

. Project

© 2002 Dr. James P. Davis

Lecture 33 Lecture 33 -

- Outline

Outline

z

Introduction.

9

We’re interested in the structure of memory, so that we can develop appropriate models for itsfunctionality for use in our designs. We start with the basic structure of the memory array, thenmore to the architecture of the memory controller itself.

z

Key Points.

9

Basic structure of a memory array – From the gate level, we have an array of D-FF cells, withappropriate select logic to control when FF elements in a given row are read from and writtento, so as to implement the functions of Read and Write.

9

Note the use of 3 control signals: R/W, indicating read and write (a “toggle” signal), CS, controlselect, functioning as a “master enable” signal, and OE, the output enable signal, which must begenerated when reading from memory onto the data bus.

9

Once we understand the structure of a memory array, we need to look at various architecturesfor memory controllers, to allow the memory resource to be controlled.

9

The first example ( as a flowHDL ASM diagram model) is for a basic 3-mode memory,supporting Read, ^Write, and Refresh cycles. Dynamic RAM memory needs to be constantlyrefreshed.

9

The second example is for a Dual-port FIFO DRAM memory configuration, supporting request-grant protocol, allowing more than one master to access the memory. This might be the case ifwe have a memory in a computer system that can be accessed by the CPU and by the DMAController—and therefore requires more elaborate arbitration. This example, not discussed inclass, may be of use for a model when you are looking at the design of multiple threaded designblocks.

Page 4

© 2002 Dr. James P. Davis

Memory Structure and Organization Memory Structure and Organization

z

m x n

Memory Array

9

Memory arrays allowmulti-bit values to bestored and retrieved byaddress.

9

A memory of n bits canbe organized in differentways.

9

Memory array as a

word

length

: the number of bits

of each word stored inmemory (e.g., 32 bits).

9

Memory array has number of words

(e.g.,

128MB).

9

Each memory location isuniquely addressable(called

content

addressable memory

).

Source: Tanenbaum, 4

th

ed. © 1999, Prentice-Hall

© 2002 Dr. James P. Davis

Memory Controllers Memory Controllers –

- DRAM Controller

DRAM Controller-

O

Here, we have two banks of memorythat are selectable through a “bankselect” signal. Usually, some numberof upper bits of the Address are usedfor this purpose. Note how we accessmemory locations via assignment andan “index” register.

Note: This bus serves as an indexinto the memory array.

© 2002 Dr. James P. Davis

Memory Controllers Memory Controllers –

- DRAM Controller

DRAM Controller-

O

Memory creation consists of several steps:

O

(1) Create a RAM array in the Memory Table (with Addr.

Width, Data Width and Type).

O

(2) Edit values in the array using the Matrix Table.

O

(3) Reference the memory locations using an index.

© 2002 Dr. James P. Davis

Controller Example Controller Example –

- FIFO DRAM Controller

FIFO DRAM Controller-

© 2002 Dr. James P. Davis

Controller Example Controller Example –

- FIFO DRAM Controller

FIFO DRAM Controller-

© 2002 Dr. James P. Davis

Controller Example Controller Example –

- FIFO DRAM Controller

FIFO DRAM Controller-