What are the differences between ROM, PLA, and PAL?
By the Skill-Lync engineering team · Last updated
Answer
A PROM has a fixed AND plane, a full decoder making all 2^n minterms, and a programmable OR plane. A PLA programs both planes, so it builds only the product terms needed and can share them between outputs. A PAL programs only the AND plane and hardwires the OR plane, making it cheaper and faster but without term sharing.
What are PROM, PLA and PAL, and how do they differ?
All three are two-level AND-OR devices: a plane of AND gates builds product terms from the inputs, and a plane of OR gates adds those terms into outputs. They differ in which plane the user programs. A PROM programs only the OR plane, a PLA programs both, and a PAL programs only the AND plane.
That is the whole answer. Every other difference follows from it, including cost, speed and how many functions fit. Any Boolean function can be written as a sum of products, so any of these devices can implement it, as long as it has enough product terms. The question is how many terms you are forced to pay for.
What does a PROM do, and why does it need 2n product terms?
A PROM keeps the AND plane fixed as a complete address decoder. With n inputs it generates all 2n minterms, one per address, and you program the OR plane to say which minterms each output includes. It needs no Boolean minimisation, but it pays for every minterm, used or not.
Each added input doubles the AND plane. Three inputs need 8 product terms, 10 inputs need 1,024, and 16 inputs need 65,536 (the figure used in the University of Maryland notes below). A PLA covering the same 16 inputs with a few dozen product terms is far smaller whenever the logic is sparse. This is also why a ROM used as a look-up table is wasteful for wide, simple functions and ideal for arbitrary, irregular ones. When every row of the truth table has a different answer, nothing is wasted.
How does a PLA save product terms?
A PLA programs both planes. You choose which literals go into each product term, then choose which outputs each term feeds. Because a term can feed several outputs, a PLA needs only the distinct terms your functions use, and shared terms are built once. The price is two programmable planes, which cost area and speed.
The OR plane is what makes sharing possible. In a PAL each output owns its OR gate and a fixed set of terms, so two outputs that both need the product AB must each spend a term on it.
How does a PAL differ from a PLA?
A PAL programs the AND plane but hardwires each output's OR gate to a fixed group of product terms. That removes a programmable plane, so the device is simpler, cheaper and faster, but each output is limited to its own terms and cannot borrow terms from its neighbours. Monolithic Memories introduced the PAL in March 1978.
Lecture notes from the University of Maryland describe the trade directly: the fixed OR array makes a PAL easier to program and less expensive than a PLA, at the cost of flexibility. The Wikipedia article on the PAL adds that the earlier Signetics FPLA was slower, costlier and harder to test than the PAL's single programmable plane. Skill-Lync's free interactive digital electronics book covers the sum-of-products background if you want it first.
PROM vs PLA vs PAL: which is better?
None wins everywhere. A PROM is best for irregular tables with few inputs, a PLA is best when several outputs share many terms, and a PAL is best when each output needs only a handful of its own terms and you want low cost. Commercial parts such as the PAL16L8 chose the PAL structure.
| PROM | PLA | PAL | |
|---|---|---|---|
| AND plane | Fixed (full decoder) | Programmable | Programmable |
| OR plane | Programmable | Programmable | Fixed |
| Product terms for n inputs | Always 2n | As many as you program | A fixed number per output |
| Term sharing between outputs | Yes, every minterm is shared | Yes, any term feeds any output | No, each output owns its terms |
| Flexibility | Any function, no minimisation | Highest | Lowest of the three |
| Cost and speed | Grows with 2n | Two programmable planes: larger and slower | Simplest, cheapest, fastest |
| Best for | Look-up tables, irregular data | Many outputs with common terms | Glue logic, decoders, small state machines |
Skill-Lync's worked example: a full adder in a PROM, a PLA and a PAL
Take three inputs A, B, C and three outputs: sum S, carry-out Cout, and the carry-generate term G = AB. A PROM uses all 8 minterms. A PLA uses 7 product terms because AB is built once and feeds both Cout and G. A PAL with 4 terms per output builds AB twice, so it uses 8.
The full adder is S = A ⊕ B ⊕ C and Cout = AB + AC + BC. As minterms, S is true for rows 1, 2, 4 and 7, Cout for rows 3, 5, 6 and 7, and G for rows 6 and 7.
| PROM | PLA | PAL (4 terms per output) | |
|---|---|---|---|
| Product terms used | 8 | 7 | 8 (S 4, Cout 3, G 1) |
| Term slots available | 8 (fixed) | As programmed | 12 (3 outputs x 4) |
| Programmable OR connections | 10 (S 4, Cout 4, G 2) | 8 | 0 (fixed OR) |
| How AB is handled | Minterms 6 and 7 feed both | One row feeds Cout and G | Built twice, once per output |
The PLA's S needs four three-literal terms because parity has no simplification. Cout collapses from four minterms to the three two-literal terms AB, AC and BC. In the PLA, the AB row also feeds G, so the whole design needs 7 rows instead of 8.
Seven against eight is a small saving on 3 inputs. The saving matters when n grows: the PROM column doubles with every extra input, while the PLA column grows only with the terms the logic really needs.
Try it: wire the crosspoints yourself
Click a dot position to connect or disconnect it. The left block is the AND plane (each input and its complement), the right block is the OR plane. The truth table updates live and flags any bit that differs from the full adder with G. Start from the PROM preset, then try to reach the PLA design with 7 rows. The PROM preset leaves row P1 (minterm 000) unconnected to any output, because no output is true there, but a real PROM's decoder still builds that row, so the hardware count stays 8.
Loading the crosspoint grid...
| ABC | S | Cout | G |
|---|
What do real PAL and GAL chips look like?
The PAL16L8 has 10 dedicated inputs and 8 outputs, 6 of them input/output pins, with 7 product terms per output. The 22V10 has 12 inputs and 10 input/output macrocells, with 8 to 16 product terms per output. The fixed OR gate is why those numbers are limits, not suggestions.
| Device (datasheet) | Pins into the AND array | Outputs | Product terms per output | AND array | Max tpd |
|---|---|---|---|---|---|
| TIBPAL16L8-7C (TI, SRPS006E) | 16 (10 inputs + 6 I/O) | 8 | 7, plus 1 output-enable term | 32 x 64 | 7 ns |
| ispGAL22V10 (Lattice) | 22 (12 inputs + 10 I/O) | 10 macrocells | 8, 10, 12, 14, 16 (two outputs each), plus 1 output-enable term | 132 x 44 | 7.5 ns |
The array sizes check out. The 16L8 has 16 input pins, each available true and complemented, giving 32 columns. It has 8 outputs of 7 terms plus an output-enable term each, giving 8 x 8 = 64 rows. The 22V10 has 22 input pins, so 44 columns. Its rows are 2 x (8 + 10 + 12 + 14 + 16) = 120 logic terms, 10 output-enable terms and 2 shared terms for asynchronous reset and synchronous preset, which makes 132.
The 22V10 shows a design lesson. A fixed 7 terms per output wastes terms on simple outputs and runs out on complex ones. The 22V10 gives each output its own budget instead, and each output has a macrocell that can be configured as combinational or registered. AMD introduced the 22V10 in June 1983, and Lattice's GAL, introduced in 1985, made the same structure electrically erasable.
Now apply the PROM rule to those parts. A 22-input PROM would need 222 = 4,194,304 product terms. The 22V10 does the same job for sparse logic with 120.
Where did PLAs and PALs go: CPLDs and FPGAs?
Simple PALs and GALs became a class called SPLDs. CPLDs extended the PAL idea by putting several PAL-style blocks on one chip with a programmable interconnect between them. FPGAs went the other way and replaced AND-OR planes with look-up tables, which are small PROMs.
An FPGA look-up table is the PROM idea in miniature. A 7-series Xilinx LUT can work as one 6-input LUT, which holds a 64-bit truth table, and 26 = 64. Wider logic is built by connecting many LUTs, so each table stays small. The PROM did not disappear: it became the building block. For the VLSI side of programmable logic, see Skill-Lync's free VLSI design book.
Common interview follow-ups
- Is a ROM the same as a PROM for this question?
- Structurally yes. Both are a fixed decoder feeding a programmable OR plane. A mask ROM is programmed at the factory, a PROM once in the field.
- Why did the PAL beat the PLA commercially?
- One programmable plane instead of two made the PAL cheaper, faster and easier to test. The Signetics FPLA was slower, costlier and harder to test, according to the PAL article on Wikipedia.
- When would you still pick a PROM-style structure?
- When the table is irregular and has few inputs, such as a character set or a coefficient table. Every row has a different answer, so nothing is wasted, and an FPGA LUT is exactly this.
- How many terms can a PAL output have?
- It depends on the part: 7 on the PAL16L8, 8 to 16 on the 22V10. If a function needs more, you split it over two outputs and feed one back as an input.
Related questions
- Half adder vs full adder
- How a Karnaugh map simplifies logic
- Decoders and encoders
- What is a combinational circuit?
- All digital electronics interview questions
Learn digital logic design hands-on
Skill-Lync's Basics of Digital Electronics course takes you from gates and Boolean algebra to programmable logic. Read the free digital electronics book first if you prefer.
Master These Concepts with IIT Certification
175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.