1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed...

18
1 Lecture 16B Memories
  • date post

    20-Dec-2015
  • Category

    Documents

  • view

    213
  • download

    0

Transcript of 1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed...

Page 1: 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.

1

Lecture 16B

Memories

Page 2: 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.

2

Memories in General

• Computers have mostly RAM• ROM (or equivalent) needed to

boot• ROM is in same class as

Programmable Logic Devices (PLDs), in which are also FPGAs♦ Lots of memories in these devices

Page 3: 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.

3

Properties of Memory

• Volatile♦ Memory disappears if power goes out

• Typical computer RAM• Palm

• Nonvolatile♦ ROM♦ Flash memories♦ Magnetic memories like disk, tape

Page 4: 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.

4

Random Access Memories

• So called because it takes same amount of time to address any particular part♦ This is not quite true for modern DRAMs

Page 5: 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.

5

Simple View of RAM

• Of some word size n• Some capacity 2k

• k bits of address line• Maybe have read line• Have a write line

Page 6: 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.

6

1K x 16 memory

• Variety of sizes♦ From 1-bit wide

• Memory size specified in bytes♦ This would be 2KB memory

• 10 address lines and 16 data lines

Page 7: 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.

7

Writing

• Sequence of steps♦ Setup address lines♦ Setup data lines♦ Activate write line

Page 8: 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.

8

Reading

• Steps♦ Setup address lines♦ Activate read line♦ Data available after specified amt of

time

Page 9: 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.

9

Chip Select

• Usually a line to enable the chip• Why?

Page 10: 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.

10

Static vs Dynamic RAM

• SRAM vs DRAM• DRAM stores charge in capacitor

♦ Disappears over short period of time♦ Must be refreshed

• SRAM easier to use♦ Faster♦ More expensive per bit♦ Smaller sizes

Page 11: 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.

11

Structure of SRAM

• Control logic• One memory cell per bit♦ Cell consists of one or more transistors♦ Not really a latch made of logic

• Logic equivalent

Page 12: 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.

12

Bit Slice

• Cells connected to form 1 bit position

• Word Select gates one latch from address lines

• Note it selects Reads also

• B (and B not) set by R/W, Data In and BitSelect

Page 13: 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.

13

Bit Slice can Become Module

• Basically bit slice is a X1 memory

• Next

Page 14: 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.

14

16 X 1 RAM

Page 15: 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.

15

Row/Column

• If RAM gets large, there is a large decoder

• Also run into chip layout issues• Larger memories usually “2D”

in a matrix layout

Page 16: 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.

16

16 X 1 as 4 X 4 Array

• Two decoders♦ Row♦ Column

• Address just broken up

• Not visible from outside

Page 17: 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.

17

Realistic Sizes

• Imagine 256K memory as 32K X 8

• One column layout would need 15-bit decoder with 32K outputs!

• Can make a square layout with 9-bit row and 6-bit column decoders

Page 18: 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.

18

SRAM Performance

• Current ones have cycle times in low nanoseconds (say 2.5ns)

• Used as cache (typically onchip or offchip secondary cache)

• Sizes up to 8Mbit or so for fast chips