SlideShare a Scribd company logo
Programmable Logic
PAL, PLA
Rajeev Pandey
ECE Department
2
ROM vs. PLA/PAL
(a) Programmable read-only memory (PROM)
Inputs
Fixed
AND array
(decoder)
Programmable
OR array
Outputs
Programmable
Connections
(b) Programmable array logic (PAL) device
Inputs Programmable
AND array
Fixed
OR array
Outputs
Programmable
Connections
(c) Programmable logic array (PLA) device
Inputs Programmable
OR array
Outputs
Programmable
Connections
Programmable
Connections
Programmable
AND array
3
PLAs
Programmable Logic Array
 Pre-fabricated building block of many
AND/OR gates (or NOR, NAND)
"Personalized" by making/ breaking
connections among the gates.
 General purpose logic building blocks.
4
PLA
Inputs
Dense array of
AND gates Product
terms
Dense array of
OR gates
Outputs
5
PLA
6
PLA
• A 3×2 PLA with 4 product terms.
7
Design for PLA:
Example
 Implement the following functions using PLA
F0 = A + B' C'
F1 = A C' + A B
F2 = B' C' + A B
F3 = B' C + A
Personality Matrix
1 = asserted in term
0 = negated in term
- = does not participate
Input Side:
1 = term connected to output
0 = no connection to output
Output Side:
OutputsInputsProduct
term
Reuse
of
terms
A
1
-
1
-
1
B
1
0
-
0
-
C
-
1
0
0
-
F0
0
0
0
1
1
F1
1
0
1
0
0
F2
1
0
0
1
0
F3
0
1
0
0
1
A B
B C
A C
B C
A
8
Example: Continued
F0 = A + B' C'
F1 = A C' + A B
F2 = B' C' + A B
F3 = B' C + A
Personality Matrix
OutputsInputsProduct
term
Reuse
of
terms
A
1
-
1
-
1
B
1
0
-
0
-
C
-
1
0
0
-
F0
0
0
0
1
1
F1
1
0
1
0
0
F2
1
0
0
1
0
F3
0
1
0
0
1
A B
B C
A C
B C
A
A B C
F0 F1 F2 F3
AB
B’C
AC’
B’C’
A
9
Constants
 Sometimes a PLA output
must be programmed to
be a constant 1 or a
constant 0.
− P1 is always 1
because its product
line is connected to
no inputs and is
therefore always
pulled HIGH;
− this constant-1 term
drives the O1 output.
 No product term drives
the O2 output, which is
therefore always 0.
 Another method of
obtaining a constant-0
output is shown for O3.
10
BCD to Gray Code Converter
W = A + B D + B C
X = B C'
Y = B + C
Z = A'B'C'D + B C D + A D' + B' C D'
Minimized Functions:
A
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
B
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
C
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
D
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
W
0
0
0
0
0
1
1
1
1
1
X
X
X
X
X
X
X
0
0
0
0
1
1
0
0
0
0
X
X
X
X
X
X
Y
0
0
1
1
1
1
1
1
0
0
X
X
X
X
X
X
Z
0
1
1
0
0
0
0
1
1
0
X
X
X
X
X
X
AB
CD 00 01 11 10
00
01
11
10
D
B
C
A
0 0 X 1
0 1 X 1
0 1 X X
0 1 X X
K-map for W
AB
CD 00 01 11 10
00
01
11
10
D
B
C
A
0 1 X 0
0 1 X 0
0 0 X X
0 0 X X
K-map for X
AB
CD 00 01 11 10
00
01
11
10
D
B
C
A
0 1 X 0
0 1 X 0
1 1 X X
1 1 X X
K-map for Y
AB
CD 00 01 11 10
00
01
11
10
D
B
C
A
0 0 X 1
1 0 X 0
0 1 X X
1 0 X X
K-map for Z
11
4 product terms per each OR gate
A B C D
A
BD
BC
W X Y Z
BC’
B
C
BCD
AD’
BCD’
Product terms cannot be shared !
PLA achieves higher flexibility
at the cost of lower speed!
12
PALs
• Programmable Array Logic
 a fixed OR array.
Inputs
Dense array of
AND gates Product
terms
Dense array of
OR gates
Outputs
13
PAL
inputs
1st output
section
2nd output
section
3rd output
section
4th output
section
Only functions with
at most four
products can be
implemented
14
PAL
W = ABC + CD
X = ABC + ACD + ACD + BCD
Y = ACD + ACD + ABD
x
x
x
15
16
Helper Terms
 If an I/O pin’s output-
control gate produces
a constant 1,  the
output is always
enabled, but the pin
may still be used as
an input too.
  outputs can be
used to generate first-
pass “helper terms” for
logic functions that
cannot be performed
in a single pass with
the limited number of
AND terms available
for a single output.
Read-Only Memory
ROM
18
ROM
A‘B’C’D’
A‘B’C’D
A‘B’CD’
A‘B’CD
A‘BC’D’
A‘BC’D
A‘BCD’
A‘ BCD
AB’C’D’
AB’C’D
AB’CD’
AB’CD
AB C’D’
AB C’D
AB C D’
AB C D
F1
F3
F2
A
B
C
D
S2
S1
S0
S3
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
4:16
dec
Enb
• Decoder
 Produces minterms
• ORs
 Produce SOP’s
19
ROM
D7
D6
D5
D4
D3
D2
D1
D0
A2
A1
A0
A
B
C
F0F1F2F3
X XX
X
X
X
X
X
X
X
• ROM
 A decoder
 A set of programmable
OR’s
20
ROM vs. PLA/PAL
(a) Programmable read-only memory (PROM)
Inputs
Fixed
AND array
(decoder)
Programmable
OR array
Outputs
Programmable
Connections
(b) Programmable array logic (PAL) device
Inputs Programmable
AND array
Fixed
OR array
Outputs
Programmable
Connections
(c) Programmable logic array (PLA) device
Inputs Programmable
OR array
Outputs
Programmable
Connections
Programmable
Connections
Programmable
AND array
22
Example
• Find a ROM-based circuit
implementation for:
 f(a,b,c) = a’b’ + abc
 g(a,b,c) = a’b’c’ + ab + bc
 h(a,b,c) = a’b’ + c
• Solution:
 Express f(), g(), and h() in m() format
(use truth tables)
 Program the ROM based on the 3 m()’s
23
Example
 There are 3 inputs and 3 outputs,
thus we need a 8x3 ROM block.
− f = m(0, 1, 7)
− g = m(0, 3, 6, 7)
− h = m(0, 1, 3, 5, 7)
3-to-8
decoder
0
1
2
3
4
5
6
7
a
b
c
f g h
24
ROM as a Memory
• Read Only Memories (ROM) or Programmable
Read Only Memories (PROM) have:
 N input lines,
 M output lines, and
 2N decoded minterms.
• Can be viewed as a memory with the inputs as
addresses of data (output values),
 hence ROM or PROM names!
25
(Memories)
• Volatile:
 Random Access Memory (RAM):
− SRAM "static"
− DRAM "dynamic"
• Non-Volatile:
 Read Only Memory (ROM):
− Mask ROM "mask programmable"
− EPROM "electrically programmable"
− EEPROM “electrically erasable electrically
programmable"
− FLASH memory - similar to EEPROM with
programmer integrated on chip
26
ROM as Memory
0 1 1 0 1
1 0 0 0 0
2 1 0 0 1
3 0 0 1 0
4 0 0 0 0
5 1 0 0 0
6 0 0 1 1
7 0 1 0 0
Address
3 4
8x4 ROM
D0
D1
D2
D3
D4
D5
D6
D7
A2
A1
A0
A
B
C
F3F2F1F0
X XX
X
X
X
X
X
X
X
•Read Example: For input (A2,A1,A0) = 011, output is (F0,F1,F2,F3 ) =
0010.
•What are functions F3, F2 , F1 and F0 in terms of (A2, A1, A0)?
A[2:0] F[3:0]
27
Design by ROM: Example
• BCD to 7 Segment Display Controller
A B C D
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
0 1 1 1
C0 C1 C2 C3 C4 C5 C6
1 1 1 1 1 1 0
0 1 1 0 0 0 0
1 1 0 1 1 0 1
1 1 1 1 0 0 1
0 1 1 0 0 1 1
1 0 1 1 0 1 1
1 0 1 1 1 1 1
1 1 1 0 0 0 0
1 1 1 1 1 1 1
1 1 1 0 0 1 1
X X X X X X X
X X X X X X X
X X X X X X X
X X X X X X X
X X X X X X X
X X X X X X X

More Related Content

Similar to PAL

Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)
ali9753
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
DamotTesfaye
 
Electrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicasElectrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicas
SANTIAGO PABLO ALBERTO
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
SanjaiPrasad
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Hsien-Hsin Sean Lee, Ph.D.
 
04 comb ex
04 comb ex04 comb ex
04 comb ex
Aravindharamanan S
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
AravindaAKumar1
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
AshwiniMate10
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
ShaekAhmed
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptx
ssuser6feece1
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementation
ssuserca5764
 
System design using HDL - Module 3
System design using HDL - Module 3System design using HDL - Module 3
System design using HDL - Module 3
Aravinda Koithyar
 
Atari 2600 VCS Programming
Atari 2600 VCS ProgrammingAtari 2600 VCS Programming
Atari 2600 VCS Programming
Carlos Duarte do Nascimento
 
7 吕智超-ssd101
7 吕智超-ssd1017 吕智超-ssd101
7 吕智超-ssd101
Ivan Tu
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1
jntuworld
 
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Hsien-Hsin Sean Lee, Ph.D.
 
PAL And PLA ROM
PAL And PLA ROMPAL And PLA ROM
PAL And PLA ROM
RONAK SUTARIYA
 
Logic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional LogicLogic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional LogicGouda Mando
 
Reading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulatorReading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulator
Tomoki Hasegawa
 

Similar to PAL (20)

Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
 
Electrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicasElectrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicas
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
 
04 comb ex
04 comb ex04 comb ex
04 comb ex
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptx
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementation
 
System design using HDL - Module 3
System design using HDL - Module 3System design using HDL - Module 3
System design using HDL - Module 3
 
Atari 2600 VCS Programming
Atari 2600 VCS ProgrammingAtari 2600 VCS Programming
Atari 2600 VCS Programming
 
7 吕智超-ssd101
7 吕智超-ssd1017 吕智超-ssd101
7 吕智超-ssd101
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1
 
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
 
PAL And PLA ROM
PAL And PLA ROMPAL And PLA ROM
PAL And PLA ROM
 
Logic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional LogicLogic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional Logic
 
Reading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulatorReading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulator
 

More from Prakash Rao

Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao
Prakash Rao
 
Electromagnetic Theory and Transmission Lines by Dr. R. Prakash Rao
Electromagnetic Theory and Transmission Lines  by Dr. R. Prakash RaoElectromagnetic Theory and Transmission Lines  by Dr. R. Prakash Rao
Electromagnetic Theory and Transmission Lines by Dr. R. Prakash Rao
Prakash Rao
 
VLSI15
VLSI15VLSI15
VLSI15
Prakash Rao
 
VLSI14
VLSI14VLSI14
VLSI14
Prakash Rao
 
VLSI13
VLSI13VLSI13
VLSI13
Prakash Rao
 
VLSI12
VLSI12VLSI12
VLSI12
Prakash Rao
 
VLSI11
VLSI11VLSI11
VLSI11
Prakash Rao
 
VLSI9
VLSI9VLSI9
VLSI8
VLSI8VLSI8
VLSI7
VLSI7VLSI7
VLSI6
VLSI6VLSI6
VLSI5
VLSI5VLSI5
VLSI4
VLSI4VLSI4
VLSI3
VLSI3VLSI3
VLSI2
VLSI2VLSI2
VLSI DESIGN
VLSI DESIGN VLSI DESIGN
VLSI DESIGN
Prakash Rao
 
VLSI10
VLSI10VLSI10
VLSI10
Prakash Rao
 
BIASING OF BJT
BIASING OF BJT BIASING OF BJT
BIASING OF BJT
Prakash Rao
 
Diode and its Applications
Diode and its Applications Diode and its Applications
Diode and its Applications
Prakash Rao
 

More from Prakash Rao (20)

Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao
 
Electromagnetic Theory and Transmission Lines by Dr. R. Prakash Rao
Electromagnetic Theory and Transmission Lines  by Dr. R. Prakash RaoElectromagnetic Theory and Transmission Lines  by Dr. R. Prakash Rao
Electromagnetic Theory and Transmission Lines by Dr. R. Prakash Rao
 
VLSI15
VLSI15VLSI15
VLSI15
 
VLSI14
VLSI14VLSI14
VLSI14
 
VLSI13
VLSI13VLSI13
VLSI13
 
VLSI12
VLSI12VLSI12
VLSI12
 
VLSI11
VLSI11VLSI11
VLSI11
 
VLSI9
VLSI9VLSI9
VLSI9
 
VLSI8
VLSI8VLSI8
VLSI8
 
VLSI7
VLSI7VLSI7
VLSI7
 
VLSI6
VLSI6VLSI6
VLSI6
 
VLSI5
VLSI5VLSI5
VLSI5
 
VLSI4
VLSI4VLSI4
VLSI4
 
VLSI3
VLSI3VLSI3
VLSI3
 
VLSI2
VLSI2VLSI2
VLSI2
 
VLSI DESIGN
VLSI DESIGN VLSI DESIGN
VLSI DESIGN
 
VLSI10
VLSI10VLSI10
VLSI10
 
Fet
FetFet
Fet
 
BIASING OF BJT
BIASING OF BJT BIASING OF BJT
BIASING OF BJT
 
Diode and its Applications
Diode and its Applications Diode and its Applications
Diode and its Applications
 

Recently uploaded

WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 

Recently uploaded (20)

WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 

PAL

  • 1. Programmable Logic PAL, PLA Rajeev Pandey ECE Department
  • 2. 2 ROM vs. PLA/PAL (a) Programmable read-only memory (PROM) Inputs Fixed AND array (decoder) Programmable OR array Outputs Programmable Connections (b) Programmable array logic (PAL) device Inputs Programmable AND array Fixed OR array Outputs Programmable Connections (c) Programmable logic array (PLA) device Inputs Programmable OR array Outputs Programmable Connections Programmable Connections Programmable AND array
  • 3. 3 PLAs Programmable Logic Array  Pre-fabricated building block of many AND/OR gates (or NOR, NAND) "Personalized" by making/ breaking connections among the gates.  General purpose logic building blocks.
  • 4. 4 PLA Inputs Dense array of AND gates Product terms Dense array of OR gates Outputs
  • 6. 6 PLA • A 3×2 PLA with 4 product terms.
  • 7. 7 Design for PLA: Example  Implement the following functions using PLA F0 = A + B' C' F1 = A C' + A B F2 = B' C' + A B F3 = B' C + A Personality Matrix 1 = asserted in term 0 = negated in term - = does not participate Input Side: 1 = term connected to output 0 = no connection to output Output Side: OutputsInputsProduct term Reuse of terms A 1 - 1 - 1 B 1 0 - 0 - C - 1 0 0 - F0 0 0 0 1 1 F1 1 0 1 0 0 F2 1 0 0 1 0 F3 0 1 0 0 1 A B B C A C B C A
  • 8. 8 Example: Continued F0 = A + B' C' F1 = A C' + A B F2 = B' C' + A B F3 = B' C + A Personality Matrix OutputsInputsProduct term Reuse of terms A 1 - 1 - 1 B 1 0 - 0 - C - 1 0 0 - F0 0 0 0 1 1 F1 1 0 1 0 0 F2 1 0 0 1 0 F3 0 1 0 0 1 A B B C A C B C A A B C F0 F1 F2 F3 AB B’C AC’ B’C’ A
  • 9. 9 Constants  Sometimes a PLA output must be programmed to be a constant 1 or a constant 0. − P1 is always 1 because its product line is connected to no inputs and is therefore always pulled HIGH; − this constant-1 term drives the O1 output.  No product term drives the O2 output, which is therefore always 0.  Another method of obtaining a constant-0 output is shown for O3.
  • 10. 10 BCD to Gray Code Converter W = A + B D + B C X = B C' Y = B + C Z = A'B'C'D + B C D + A D' + B' C D' Minimized Functions: A 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 B 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 C 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 D 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 W 0 0 0 0 0 1 1 1 1 1 X X X X X X X 0 0 0 0 1 1 0 0 0 0 X X X X X X Y 0 0 1 1 1 1 1 1 0 0 X X X X X X Z 0 1 1 0 0 0 0 1 1 0 X X X X X X AB CD 00 01 11 10 00 01 11 10 D B C A 0 0 X 1 0 1 X 1 0 1 X X 0 1 X X K-map for W AB CD 00 01 11 10 00 01 11 10 D B C A 0 1 X 0 0 1 X 0 0 0 X X 0 0 X X K-map for X AB CD 00 01 11 10 00 01 11 10 D B C A 0 1 X 0 0 1 X 0 1 1 X X 1 1 X X K-map for Y AB CD 00 01 11 10 00 01 11 10 D B C A 0 0 X 1 1 0 X 0 0 1 X X 1 0 X X K-map for Z
  • 11. 11 4 product terms per each OR gate A B C D A BD BC W X Y Z BC’ B C BCD AD’ BCD’ Product terms cannot be shared ! PLA achieves higher flexibility at the cost of lower speed!
  • 12. 12 PALs • Programmable Array Logic  a fixed OR array. Inputs Dense array of AND gates Product terms Dense array of OR gates Outputs
  • 13. 13 PAL inputs 1st output section 2nd output section 3rd output section 4th output section Only functions with at most four products can be implemented
  • 14. 14 PAL W = ABC + CD X = ABC + ACD + ACD + BCD Y = ACD + ACD + ABD x x x
  • 15. 15
  • 16. 16 Helper Terms  If an I/O pin’s output- control gate produces a constant 1,  the output is always enabled, but the pin may still be used as an input too.   outputs can be used to generate first- pass “helper terms” for logic functions that cannot be performed in a single pass with the limited number of AND terms available for a single output.
  • 18. 18 ROM A‘B’C’D’ A‘B’C’D A‘B’CD’ A‘B’CD A‘BC’D’ A‘BC’D A‘BCD’ A‘ BCD AB’C’D’ AB’C’D AB’CD’ AB’CD AB C’D’ AB C’D AB C D’ AB C D F1 F3 F2 A B C D S2 S1 S0 S3 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4:16 dec Enb • Decoder  Produces minterms • ORs  Produce SOP’s
  • 20. 20 ROM vs. PLA/PAL (a) Programmable read-only memory (PROM) Inputs Fixed AND array (decoder) Programmable OR array Outputs Programmable Connections (b) Programmable array logic (PAL) device Inputs Programmable AND array Fixed OR array Outputs Programmable Connections (c) Programmable logic array (PLA) device Inputs Programmable OR array Outputs Programmable Connections Programmable Connections Programmable AND array
  • 21. 22 Example • Find a ROM-based circuit implementation for:  f(a,b,c) = a’b’ + abc  g(a,b,c) = a’b’c’ + ab + bc  h(a,b,c) = a’b’ + c • Solution:  Express f(), g(), and h() in m() format (use truth tables)  Program the ROM based on the 3 m()’s
  • 22. 23 Example  There are 3 inputs and 3 outputs, thus we need a 8x3 ROM block. − f = m(0, 1, 7) − g = m(0, 3, 6, 7) − h = m(0, 1, 3, 5, 7) 3-to-8 decoder 0 1 2 3 4 5 6 7 a b c f g h
  • 23. 24 ROM as a Memory • Read Only Memories (ROM) or Programmable Read Only Memories (PROM) have:  N input lines,  M output lines, and  2N decoded minterms. • Can be viewed as a memory with the inputs as addresses of data (output values),  hence ROM or PROM names!
  • 24. 25 (Memories) • Volatile:  Random Access Memory (RAM): − SRAM "static" − DRAM "dynamic" • Non-Volatile:  Read Only Memory (ROM): − Mask ROM "mask programmable" − EPROM "electrically programmable" − EEPROM “electrically erasable electrically programmable" − FLASH memory - similar to EEPROM with programmer integrated on chip
  • 25. 26 ROM as Memory 0 1 1 0 1 1 0 0 0 0 2 1 0 0 1 3 0 0 1 0 4 0 0 0 0 5 1 0 0 0 6 0 0 1 1 7 0 1 0 0 Address 3 4 8x4 ROM D0 D1 D2 D3 D4 D5 D6 D7 A2 A1 A0 A B C F3F2F1F0 X XX X X X X X X X •Read Example: For input (A2,A1,A0) = 011, output is (F0,F1,F2,F3 ) = 0010. •What are functions F3, F2 , F1 and F0 in terms of (A2, A1, A0)? A[2:0] F[3:0]
  • 26. 27 Design by ROM: Example • BCD to 7 Segment Display Controller A B C D 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 C0 C1 C2 C3 C4 C5 C6 1 1 1 1 1 1 0 0 1 1 0 0 0 0 1 1 0 1 1 0 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X