15
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

Embed Size (px)

Citation preview

Page 1: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

© 2010 Dr. Ashraf Armoush

Memory and Programmable Logic

Dr. Ashraf Armoush

Page 2: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

2

Outline

• Memory Unit – Random Access Memory (RAM) – Read-Only Memory (ROM)

• Programmable Logic Array (PLA) • Programmable Array Logic (PAL) • Sequential (or Simple) Programmable Logic

Device (SPLD)• Complex Programmable Logic Devices (CPLD) • Field Programmable Logic Array (FPGA)

© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 3: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

3

Random Access Memory (RAM)

• A memory unit stores binary information in groups of bits called words

• Most computer memories use words that are multiples of 8 bits in length

• Communication between memory and its environment is achieved through:

– Data input and output lines

– Address selection lines

– Control lines (direction)

• The memory unit is specified by:– the number of words– the number of bits in each word

© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 4: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

4

Ex:

• A memory unit with a capacity of 1K words of 16 bits each. the memory can accommodate 2,048 = 2K bytes

© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 5: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

5

Types of RAM :

• Static RAM (SRAM): consists of internal latches that store the binary information. The stored information remains valid as long as power is applied to the unit. SRAM is easier to use and has shorter read and write cycles The memory cell typically contains 6 transistors

• Dynamic RAM (DRAM) stores the binary information in the form of electric charges on capacitors

gated by a MOS transistors. The stored charge tends to discharge with time.The capacitors must be periodically recharged by refreshing the dynamic

memory. DRAM offers reduced power consumption and larger storage capacity in a

single memory chip. A single MOS transistor and a capacitor for each DRAM cell.

© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 6: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

6

Read Only Memory (ROM)

© 2010 Dr. Ashraf Armoush , An-Najah National University

• ROM: a memory storage device that stores permanent binary information.

• The stored information stays within the unit even when power is turned off and on again (nonvolatile).

• Internally, a ROM can be implemented using a Decoder & a number of OR gates equal to the number of outputs.

Page 7: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

7

Internal Logic of a ROM :

© 2010 Dr. Ashraf Armoush , An-Najah National University

Fuses

Page 8: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

8

ROM Programming :

• The hardware procedure that programs the ROM blows fuse links in accordance with a given truth table.– 0 : No Connection (a blown fuse)– 1 : Connection (an intact fuse)

© 2010 Dr. Ashraf Armoush , An-Najah National University

Inputs OutputsI4 I3 I2 I1 I0 A7 A6 A5 A4 A3 A2 A1 A0

0 0 0 0 0 1 0 1 1 0 1 1 0

0 0 0 0 1 0 0 0 1 1 1 0 1

0 0 0 1 0 1 1 0 0 0 1 0 1

0 0 0 1 1 1 0 1 1 - - 1 -...

.

.

.

1 1 1 0 0 0 0 0 0 1 0 0 1

1 1 1 0 1 1 1 1 0 0 0 1 0

1 1 1 1 0 0 1 0 0 1 0 1 0

1 1 1 1 1 0 0 1 1 0 0 1 1

Page 9: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

9

ROM Programming (Cont.) :

© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 10: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

10

Ex:

• Design a combinational circuit using a ROM to generate the square of 3-bit input number

© 2010 Dr. Ashraf Armoush , An-Najah National University

A2 A1 A0 B5 B4 B3 B2 B1 B0

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

F1 F2 F3 F4 0 A0

Page 11: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

11© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 12: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

12

Types of ROMs :• ROM (Mask Programming): is done by the semiconductor company

during the last fabrication process of the unit.

• PROM (Programmable ROM): – The fuses in the PROM are blown by the application of a high-voltage

pulse to the device through a special pin (Programming is irreversible).– Special instruments are called PROM programmers.

• EPROM (Erasable PROM):– Electrically Programmable – Can be restructured to the initial state (erased) by using a special

ultraviolet light for a given length of time.

• EEPROM (Electrically Erasable PROM):– Electrically Programmable. – Electrically Erasable.

• FLASH Memory Devices: – They are similar to the EEPROMs, but with additional built-in

circuitry to selectively program and erase the device in-circuit, without the need for a special programmer.© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 13: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

13

Programmable Logic Array (PLA)

• Unlike the ROM, PLA does not generate all the minterms.• The decoder is replaced by an array of AND gates that can be

programmed to generate any product term of the input variables

– AND array : Programmable – OR array: Programmable

• Ex1:F1 = AB’ + AC + A’BC’F2 = (AC + BC)’

{ 3 Inputs , 4 Product Terms (AND) , 2 outputs (OR)}

© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 14: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

14

Ex 1 (cont.)

© 2010 Dr. Ashraf Armoush , An-Najah National University

Page 15: Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush

15

Ex2:

© 2010 Dr. Ashraf Armoush , An-Najah National University

7) 6, 5, (0, C)B,(A,F

4) 2, 1, (0, C)B,(A,F

2

1

Implement the following two Boolean functions with a PLA:

• Use the combination that gives the minimum number of product terms. (F1’ , F2)

– C: Complement output – T: True output