Read-Only Memories & Programmable Logic Arrays
Read-Only Memories & Programmable Logic Arrays
Lecture 23.
Read-Only Memories & Programmable Logic Arrays
EE280 Lecture 23 23 - 1
Read-Only Memories
Memory is like an array of mailboxes (registries of binary data)
A stored array of binary data which can be read only, but not changed
In general, 2n × m ROM
≡ I/P lines
≡ O/P lines
≡ words*
each bits long
For each combination of inputs on the n input lines, the corresponding pattern
of 0’s and 1’s (a word) is generated on the m output lines
- typical sizes range from (32 words x 4 bits) to (512K words x 8 bits) or larger
EE280 Lecture 23 23 - 2
1
ROM Realization of Logic Functions
A B C F0 F1 F2 F3
0 0 0
A
ROM 0 0 1
B 8 words 0 1 0
C x 4 bits 0 1 1
1 0 0
1 0 1
F0 F1 F2 F3 1 1 0
1 1 1
a. Block diagram b. Truth table for ROM
F0 = = A'B' + AC‘
F1 = = B + AC‘
F2 = = A'B' + BC‘
F3 = = AC + B
EE280 Lecture 23 23 - 3
decoder outputs mi
are consecutive
minterms
ROM outputs Fi
are generated by
ORing selected
minterms
Switching elements
pass 1 to output,
otherwise resistors
at the top set
output to 0
EE280 Lecture 23 23 - 4
2
Code Conversion Network using ROM
The ROM realizes conversion between BDC (8421) code and Excess-3 code
EE280 Lecture 23 23 - 5
m7
DECODER
B
C m8
m9
D m10
m11
m12
m13
m14
m15
EE280 Lecture 23 23 - 6
3
ROM Realization of Logic Functions
Internal structure of a 128 x 1 ROM using two-dimensional decoding
- rectangular form reduces complexity and increases flexibility
- note the inverted decoder, and +5V on ROM output lines
EE280 Lecture 23 23 - 7
ROM Types
Mask-programmable (ROM)
- Permanent programming done at fabrication time
- Diodes blown at factory as per customer order
- Very expensive and therefore feasible only for large quantity orders
EE280 Lecture 23 23 - 8
4
Programmable Logic Arrays (PLA)
Performs the same basic functions as ROM ROM
EE280 Lecture 23 23 - 9
EE280 Lecture 23 23 - 10
5
Programmable Logic Arrays (PLA)
PLA can be represented by a PLA table
Inputs Outputs
Product terms
A B C f1 f2 f3 f4
A’C’ 0 – 0 1 0 1 0
A B’ 1 0 – 0 0 0 1
AC 1 – 1 1 1 0 0
B’C – 0 1 0 1 1 1
EE280 Lecture 23 23 - 11
PLA - Example
Design PLA that implements
following functions
a’bd
abd
…
EE280 Lecture 23 23 - 12
6
Programmable Arrays Logic (PAL)
The PAL has many features in common with PROM and PLA
The PAL is a special case of the of the PLA in which the array is
programmable and the array is fixed by the manufacturer
Because for PAL only AND array is programmable it is cheaper than PLA; it
is also easier to program and therefore often used
A’ A B’ B C’ C