Professional Documents
Culture Documents
WEEK 2
www.iiu.edu.pk 2/10/21
Memory and Programmable Logic Devices
2
www.iiu.edu.pk 2/10/21
Random Access Memory (RAM)
3
www.iiu.edu.pk 2/10/21
4
En w1 w0 y0 y1 y2 y3 w 1 w0
1 0 0 1 0 0 0
1 0 1 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
y0
0 x x 0 0 0 0
(a) Truth table
y1
y2
w0 y0
w1 y1 y3
y2
En y3
En
(b) Graphic symbol
(c) Logic circuit
www.iiu.edu.pk 2/10/21
6
www.iiu.edu.pk 2/10/21
Bus Size in RAM
7
Question: How many address lines, input-output data lines are needed in each
case of RAM size
(a) 8K×16 (b) 2G×8 (c) 16M×32 (d) 256K×64
RAM Size: (a) 214 Bytes (b) 231 Bytes (c) 226 Bytes (d) 221 Bytes
www.iiu.edu.pk 2/10/21
Basic Types of RAM
8
Static RAM (SRAM) Dynamic RAM (DRAM)
Stores data in latches Stores data in capacitors
No refreshing Needs refreshing
More power Reduced power
consumption consumption
Less storage capacity Large storage capacity
Used in Microprocessor Used in PC memory on
cache memory Mother Board
volatile volatile
www.iiu.edu.pk 2/10/21
Simple Programmable Logic Devices (SPLDs)
9
www.iiu.edu.pk 2/10/21
Simple Programmable Logic Devices (SPLDs)
10
www.iiu.edu.pk 2/10/21
(SPLDs) - PROM
B A
11
A B'
A'B
A B
×
www.iiu.edu.pk 2/10/21
Logic Implementation in PROM
12
A'B'
× × ×
A B'
× ×
A'B
× ×
A B
× ×
A3 A2 A1 A0
www.iiu.edu.pk 2/10/21
Types of ROMs
14
1. Mask-programmable ROM
Data is permanently stored (include or omit the switching elements)
Economically feasible for a large quantity
2. PROM - Programmable ROM
For logic 0 blow the fuse at high voltage
3. EPROM – Erasable PROM
PROM programmer is used to provide appropriate voltage
Data is permanent until erased using an ultraviolet light
4. EEPROM – Electrically EPROM
Erased using electric signals
FLASH Memory is similar to EEPROM, can do in-circuit programming
No need for separate programmer.
www.iiu.edu.pk 2/10/21
Programmable Logic Devices (PLDs)
15
www.iiu.edu.pk 2/10/21
Generic PAL Structure
16
www.iiu.edu.pk 2/10/21
Typical PALs
17
Typical PALs have
from 10 to 20 inputs
from 2 to 10 outputs
from 2 to 8 AND gates driving each OR gate
often include D flip-flops
Select Enable
f1
Flip-flop
D Q
Clock
To AND plane
MUX output is “fed back” to the AND plane.
www.iiu.edu.pk 2/10/21
Logic Diagram for 16R4 PAL
18
www.iiu.edu.pk 2/10/21
Logic Diagram for 16R4 PAL
19
www.iiu.edu.pk 2/10/21
Programmable Logic Devices (PLDs)
20
www.iiu.edu.pk 2/10/21
Generic PLA Structure
21
www.iiu.edu.pk 2/10/21
Logic Implementation in PLA
22
www.iiu.edu.pk 2/10/21
Binary to Gray Code Conversion
www.iiu.edu.pk 2/10/21
A B C D W X Y Z
BCD-to-Gray-Code Converter
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
24
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 1 1 1 0
0 1 1 0 1 0 1 0
0 1 1 1 1 0 1 1
0 0 0 0 1 0 0 1
1 0 0 1 1 0 0 0
1 0 1 0 X X X X
1 0 1 1 X X X X
1 1 0 0 X X X X
1 1 0 1 X X X X
1 1 1 0 X X X X
1 1 1 1 X X X X
www.iiu.edu.pk 2/10/21
BCD-to-Gray-Code Converter in PLA
25
PLAs are more flexible than PALs since both AND & OR planes are
programmable in PLAs.
Because both AND & OR planes are programmable, PLAs are
expensive to fabricate and have large propagation delay.
By using fix OR gates, PALs are cheaper and faster than PLAs.
Logic expanders increase the flexibilities of PALs, but result in
significant propagation delay.
PALs usually contain D flip-flops connected to the outputs of OR gates
to implement sequential circuits.
PLAs and PALs are usually referred to as SPLD.
www.iiu.edu.pk 2/10/21