19
Chapter 7: Chapter 7:

Chapter 7:. 1 / 18 Random-Access Memory (RAM) Data Storage (Volatile) Locations (Address) Byte or Word Memory unit 16 x 8 Data input Data output

Embed Size (px)

Citation preview

Page 1: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

Chapter 7:Chapter 7:

Page 2: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

22 / 18 / 18

Random-Access Memory (RAM)Random-Access Memory (RAM)

Data Storage (Volatile)

Locations (Address)

Byte or Word

Memory unit

16 x 8

Data input

Data output

Address

ReadWrite

Page 3: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

33 / 18 / 18

Random-Access Memory (RAM)Random-Access Memory (RAM)

Data Storage (Volatile)

Locations (Address)

Byte or Word

Memory unit

2k x m

m Data input

m Data output

k Address

ReadWrite

10 Address lines 1024 locations = 1 K

Page 4: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

44 / 18 / 18

S Q

QR

Input Output

Select

Read/Write

Memory DecodingMemory Decoding

Memory Cell

BC

Select

OutputInput

Read/Write

Page 5: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

55 / 18 / 18

Memory DecodingMemory Decoding

Memory Array

BC BC BC BC

BC BC BC BC

BC BC BC BC

BC BC BC BC

Input Data

Output Data

0

1

2

3

2 x 4Decoder

I1

I0

E

AddressLines

MemoryEnable

Read/Write

Page 6: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

66 / 18 / 18

Read-Only Memory (ROM)Read-Only Memory (ROM)

ROM

2k x m

m Data output

k Address

Memory Enable

Page 7: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

77 / 18 / 18

Read-Only Memory (ROM)Read-Only Memory (ROM)

Conventional Symbol

Array Logic Symbol

Page 8: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

88 / 18 / 18

Read-Only Memory (ROM)Read-Only Memory (ROM)

Output Data

0123

3 x 8Decoder

I2

I0

E

AddressLines

MemoryEnable

4567

I1

8 x 4 ROM

Page 9: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

99 / 18 / 18

Read-Only Memory (ROM)Read-Only Memory (ROM)

0123

3 x 8Decoder

I2

I0

E

4567

I1

8 x 4 ROM

Address Data0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1

A2

A0

A1

1

D2 D0D1D3

0 0 0 01 1 0 10 0 1 11 0 0 01 1 1 11 0 0 10 1 1 10 0 0 0

Page 10: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1010 / 18 / 18

Types of ROMsTypes of ROMs

Mask Programmed ROM

● Programmed during manufacturing

Programmable Read-Only Memory (PROM)

● Blow out fuses to produce ‘0’

Erasable Programmable ROM (EPROM)

● Erase all data by Ultra Violet exposure

Electrically Erasable PROM (EEPROM)

● Erase the required data using an electrical signal

Page 11: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1111 / 18 / 18

Programmable Logic Device (PLD)Programmable Logic Device (PLD)

Boolean Functions:

● Sums-of-Products

● AND-plane followed by OR-plane

I2

I0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

I1

Page 12: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1212 / 18 / 18

Programmable Logic Device (PLD)Programmable Logic Device (PLD)

PROM

PAL

PLA

FixedAND array(Decoder)

ProgrammableOR array

InputsInputs OutputsOutputs

ProgrammableAND array

FixedOR array

InputsInputs OutputsOutputs

ProgrammableAND array

ProgrammableOR array

InputsInputs OutputsOutputs

Page 13: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1313 / 18 / 18

Programmable Array Logic (PAL)Programmable Array Logic (PAL)

Examplew(A,B,C,D) = ∑(2,12,13)

x(A,B,C,D) = ∑(7,8,9,10,11,12,13,14,15)

y(A,B,C,D) = ∑(0,2,3,4,5,6,7,8,10,11,15)

z(A,B,C,D) = ∑(1,2,8,12,13)

Simplify:w = ABC’ + A’B’CD’

x = A + BCD

y = A’B + CD + B’D’

z = ABC’ + A’B’CD’ + AC’D’ + A’B’C’D

= w + AC’D’ + A’B’C’D

F1

I1

F2

I2

F3

I3

F4

I4

1

2

3

4

5

6

7

8

9

10

11

12

1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9 10

w

x

y

z

A

B

C

D

Page 14: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1414 / 18 / 18

Programmable Logic Array (PLA)Programmable Logic Array (PLA)

I1

I2

I3

01

F1

F2

Example:

F1 = AB’ + AC + A’BC’

F2 = (AC + BC)’

A

B

C

Page 15: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1515 / 18 / 18

Sequential Programmable Logic DeviceSequential Programmable Logic Device

CLK

D Q

Q

ENB

OE

Basic Macrocell Logic

Page 16: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1616 / 18 / 18

HomeworkHomework

Mano

● Chapter 7

♦ 7-1

♦ 7-2

♦ 7-3

♦ 7-18

♦ 7-19

Page 17: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1717 / 18 / 18

HomeworkHomework

7-1 The following memory units are specified by the number of words times the number of bits per word. How many address lines and input-output lines are needed in each case? (a) 4K 16, (b) 2G 8, (c) 16M 32, (d) 256K 64.

7-2 Give the number of bytes stored in the memories listed in Problem 7-1.

7-3 Word number 723 in a memory of 1024 16 contains the binary equivalent of 3,451. List the 10-bit address and the 16-bit memory content of the word.

Page 18: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1818 / 18 / 18

HomeworkHomework

7-18 Specify the size of a ROM (number of words and number of bits per word) that will accommodate the truth table for the following combinational circuit components:

(a) a binary multiplier that multiplies two 4-bit,

(b) a 4-bit adder-subtractor,

(c) a quadruple 2-to-1-line multiplexers with common select and enable inputs, and

(d) a BCD-to-seven-segment decoder with an enable input.

Page 19: Chapter 7:. 1 / 18 Random-Access Memory (RAM)  Data Storage (Volatile)  Locations (Address)  Byte or Word Memory unit 16 x 8 Data input Data output

1919 / 18 / 18

HomeworkHomework

7-19 Tabulate the truth table for an 8 4 ROM that implements the Boolean functions

A(x,y,z) = ∑(1,2,4,6)

B(x,y,z) = ∑(0,1,6,7)

C(x,y,z) = ∑(2,6)

D(x,y,z) = ∑(1,2,3,5,7)