SlideShare a Scribd company logo
1 of 19
Download to read offline
Introduction to Programmable Logic
Module 5
1
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
LCST – Logic Circuits and Switching Theory
Source: Digital Fundamentals by Floyd, T. 11th Edition
Introduction
 Programmable logic requires both hardware and software.
 Programmable logic devices can be programmed to perform
specified logic functions and operations by the manufacturer or
by the user.
 One advantage of programmable logic over fixed-function logic
(covered in Module 6) is that the devices use much less board
space for an equivalent amount of logic.
 Another advantage is that, with programmable logic, designs
can be readily changed without rewiring or replacing
components.
2
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
Introduction
 Also, a logic design can generally be implemented faster and
with less cost with programmable logic than with fixed-function
logic.
 To implement small segments of logic, it may be more efficient
to use fixed-function logic.
3
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Learning Objectives
 After completing this module, the learners
should be able to:
1. List several types of logic functions of programmable
logic and discuss the differences.
2. Discuss the programmable logic design process.
4
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
Programmable Logic Devices (PLDs)
 Many types of programmable logic are available, ranging from
small devices that can replace a few fixed-function devices to
complex high-density devices that can replace thousands of fixed-
function devices.
5
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
Programmable Logic Devices (PLDs)
 The SPLD was the original PLD and is still available for small-
scale applications.
 Generally, an SPLD can replace up to ten fixed-function ICs
and their interconnections, depending on the type of functions
and the specific SPLD.
 Most SPLDs are in one of two categories: PAL and GAL.
6
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Programmable Logic Devices (PLDs)
 A PAL (programmable array logic) is a device that can be
programmed one time.
 It consists of a programmable array of AND gates and a fixed
array of OR gates.
7
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Programmable Logic Devices (PLDs)
 A GAL (generic array logic) is a device that is basically a PAL
that can be reprogrammed many times.
 It consists of a reprogrammable array of AND gates and a fixed
array of OR gates with programmable ouputs.
8
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Programmable Logic Devices (PLDs)
 Complex Programmable Logic Device (CPLD)
 Essentially, the CPLD is a device containing multiple SPLDs and
can replace many fixed-function ICs.
 Each Logic Array Block (LAB) is roughly equivalent to one SPLD.
9
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Programmable Logic Devices (PLDs)
 Complex Programmable Logic Device (CPLD)
 Generally, CPLDs can be used to implement any of the logic
functions discussed earlier, for example, decoders, encoders,
multiplexers, demultiplexers, and adders.
10
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Programmable Logic Devices (PLDs)
 An FPGA is generally more complex and has a much higher
density than a CPLD, although their applications can
sometimes overlap.
 As mentioned, the SPLD and the CPLD are closely related
because the CPLD basically contains a number of SPLDs.
 The FPGA, however, has a different internal structure
(architecture), as illustrated in Figure 1–34.
 The three basic elements in an FPGA are the logic block, the
programmable interconnections, and the input/output (I/O)
blocks.
11
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Programmable Logic Devices (PLDs)
12
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Programmable Logic Devices (PLDs)
 Large FPGAs can have tens of thousands of logic blocks in
addition to memory and other resources.
 A typical FPGA ball-grid array package is shown in Figure 1–35.
 These types of packages can have over 1000 input and output
pins.
13
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
The Programming Process
 An SPLD, CPLD, or FPGA can be thought of as a “blank slate”
on which you implement a specified circuit or system design
using a certain process.
 This process requires a software development package installed on
a computer to implement a circuit design in the programmable
chip.
 The computer must be interfaced with a development board or
programming fixture containing the device.
14
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
The Programming Process
15
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
The Microcontroller
 A microcontroller is different than a PLD.
 The internal circuits of a microcontroller are fixed, and a
program (series of instructions) directs the microcontroller
operation in order to achieve a specific outcome.
 The internal circuitry of a PLD is programmed into it, and once
programmed, the circuitry performs required operations.
 Thus, a program determines microcontroller operation, but in a
PLD a program determines the logic function.
16
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
The Microcontroller
 Microcontrollers are generally programmed with either the C
language or the BASIC language.
 A microcontroller is basically a special-purpose small
computer.
 Microcontrollers are generally used for embedded system
applications.
 An embedded system is a system that is designed to perform
one or a few dedicated functions within a larger system.
 By contrast, a general-purpose computer, such as a laptop, is
designed to perform a wide range of functions and
applications.
17
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
The Microcontroller
 Embedded microcontrollers are used in many common
applications.
 The embedded microcontroller is part of a complete system,
which may include additional electronics and mechanical parts.
 For example, a microcontroller in a television set displays the input
from the remote unit on the screen and controls the channel
selection, audio, and various menu adjustments like brightness
and contrast.
 In an automobile a microcontroller takes engine sensor inputs and
controls spark timing and fuel mixture.
 Other applications include home appliances, thermostats, cell
phones, and toys.
18
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.
cont’d
Mastery Exercises
19
1. List three major categories of programmable logic devices and
specify their acronyms.
 Simple programmable logic device (SPLD), complex
programmable logic device (CPLD), and field-
programmable gate array (FPGA)
2. How does a CPLD differ from an SPLD?
 A CPLD is made up of multiple SPLDs.
3. What are the two main functional characteristics of a
microcontroller?
 The microcontroller has fixed internal circuits and its
operation is directed by a program.
cont’d
Module 5 – Introduction to Programmable Logic
Prepared by:; fscjr.

More Related Content

Similar to Module-5-Introduction-to-Programmable-Logic-PROF.pdf

Fundamentals of FPGA
Fundamentals of FPGAFundamentals of FPGA
Fundamentals of FPGAvelamakuri
 
Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...
Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...
Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...Pradeep Singh
 
Unit 5_Realizing Applications in FPGA.pdf
Unit 5_Realizing Applications in FPGA.pdfUnit 5_Realizing Applications in FPGA.pdf
Unit 5_Realizing Applications in FPGA.pdfkanyaakiran
 
Fpga architectures and applications
Fpga architectures and applicationsFpga architectures and applications
Fpga architectures and applicationsSudhanshu Janwadkar
 
FPGA Architecture and application
FPGA Architecture and application FPGA Architecture and application
FPGA Architecture and application ADARSHJKALATHIL
 
Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)Deepak Kumar
 
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
Complex Programmable Logic Device (CPLD) Architecture and Its ApplicationsComplex Programmable Logic Device (CPLD) Architecture and Its Applications
Complex Programmable Logic Device (CPLD) Architecture and Its Applicationselprocus
 
Nt1310 Unit 5 Algorithm
Nt1310 Unit 5 AlgorithmNt1310 Unit 5 Algorithm
Nt1310 Unit 5 AlgorithmAngie Lee
 
Introduction to FPGA, VHDL
Introduction to FPGA, VHDL  Introduction to FPGA, VHDL
Introduction to FPGA, VHDL Amr Rashed
 
FPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIESFPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIESrevathilakshmi2
 
Cpld and fpga mod vi
Cpld and fpga   mod viCpld and fpga   mod vi
Cpld and fpga mod viAgi George
 
Softcore processor.pptxSoftcore processor.pptxSoftcore processor.pptx
Softcore processor.pptxSoftcore processor.pptxSoftcore processor.pptxSoftcore processor.pptxSoftcore processor.pptxSoftcore processor.pptx
Softcore processor.pptxSoftcore processor.pptxSoftcore processor.pptxSnehaLatha68
 

Similar to Module-5-Introduction-to-Programmable-Logic-PROF.pdf (20)

Fundamentals of FPGA
Fundamentals of FPGAFundamentals of FPGA
Fundamentals of FPGA
 
Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...
Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...
Development of Signal Processing Algorithms using OpenCL for FPGA based Archi...
 
Fpg as 11 body
Fpg as 11 bodyFpg as 11 body
Fpg as 11 body
 
Unit 5_Realizing Applications in FPGA.pdf
Unit 5_Realizing Applications in FPGA.pdfUnit 5_Realizing Applications in FPGA.pdf
Unit 5_Realizing Applications in FPGA.pdf
 
Fpga architectures and applications
Fpga architectures and applicationsFpga architectures and applications
Fpga architectures and applications
 
FPGA Architecture and application
FPGA Architecture and application FPGA Architecture and application
FPGA Architecture and application
 
Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)Implementation of Soft-core processor on FPGA (Final Presentation)
Implementation of Soft-core processor on FPGA (Final Presentation)
 
Fpga lecture
Fpga lectureFpga lecture
Fpga lecture
 
Fpga 03-cpld-and-fpga
Fpga 03-cpld-and-fpgaFpga 03-cpld-and-fpga
Fpga 03-cpld-and-fpga
 
Actel fpga
Actel fpgaActel fpga
Actel fpga
 
14 284-291
14 284-29114 284-291
14 284-291
 
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
Complex Programmable Logic Device (CPLD) Architecture and Its ApplicationsComplex Programmable Logic Device (CPLD) Architecture and Its Applications
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
 
Nt1310 Unit 5 Algorithm
Nt1310 Unit 5 AlgorithmNt1310 Unit 5 Algorithm
Nt1310 Unit 5 Algorithm
 
Introduction to FPGA, VHDL
Introduction to FPGA, VHDL  Introduction to FPGA, VHDL
Introduction to FPGA, VHDL
 
FPGAs memory synchronization and performance evaluation using the open compu...
FPGAs memory synchronization and performance evaluation  using the open compu...FPGAs memory synchronization and performance evaluation  using the open compu...
FPGAs memory synchronization and performance evaluation using the open compu...
 
FPGA Based VLSI Design
FPGA Based VLSI DesignFPGA Based VLSI Design
FPGA Based VLSI Design
 
FPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIESFPGA TECHNOLOGY AND FAMILIES
FPGA TECHNOLOGY AND FAMILIES
 
FIELD PROGRAMMABLE GATE ARRAYS AND THEIR APPLICATIONS
FIELD PROGRAMMABLE GATE ARRAYS AND THEIR APPLICATIONSFIELD PROGRAMMABLE GATE ARRAYS AND THEIR APPLICATIONS
FIELD PROGRAMMABLE GATE ARRAYS AND THEIR APPLICATIONS
 
Cpld and fpga mod vi
Cpld and fpga   mod viCpld and fpga   mod vi
Cpld and fpga mod vi
 
Softcore processor.pptxSoftcore processor.pptxSoftcore processor.pptx
Softcore processor.pptxSoftcore processor.pptxSoftcore processor.pptxSoftcore processor.pptxSoftcore processor.pptxSoftcore processor.pptx
Softcore processor.pptxSoftcore processor.pptxSoftcore processor.pptx
 

Recently uploaded

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 

Recently uploaded (20)

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 

Module-5-Introduction-to-Programmable-Logic-PROF.pdf

  • 1. Introduction to Programmable Logic Module 5 1 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. LCST – Logic Circuits and Switching Theory Source: Digital Fundamentals by Floyd, T. 11th Edition
  • 2. Introduction  Programmable logic requires both hardware and software.  Programmable logic devices can be programmed to perform specified logic functions and operations by the manufacturer or by the user.  One advantage of programmable logic over fixed-function logic (covered in Module 6) is that the devices use much less board space for an equivalent amount of logic.  Another advantage is that, with programmable logic, designs can be readily changed without rewiring or replacing components. 2 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr.
  • 3. Introduction  Also, a logic design can generally be implemented faster and with less cost with programmable logic than with fixed-function logic.  To implement small segments of logic, it may be more efficient to use fixed-function logic. 3 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 4. Learning Objectives  After completing this module, the learners should be able to: 1. List several types of logic functions of programmable logic and discuss the differences. 2. Discuss the programmable logic design process. 4 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr.
  • 5. Programmable Logic Devices (PLDs)  Many types of programmable logic are available, ranging from small devices that can replace a few fixed-function devices to complex high-density devices that can replace thousands of fixed- function devices. 5 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr.
  • 6. Programmable Logic Devices (PLDs)  The SPLD was the original PLD and is still available for small- scale applications.  Generally, an SPLD can replace up to ten fixed-function ICs and their interconnections, depending on the type of functions and the specific SPLD.  Most SPLDs are in one of two categories: PAL and GAL. 6 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 7. Programmable Logic Devices (PLDs)  A PAL (programmable array logic) is a device that can be programmed one time.  It consists of a programmable array of AND gates and a fixed array of OR gates. 7 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 8. Programmable Logic Devices (PLDs)  A GAL (generic array logic) is a device that is basically a PAL that can be reprogrammed many times.  It consists of a reprogrammable array of AND gates and a fixed array of OR gates with programmable ouputs. 8 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 9. Programmable Logic Devices (PLDs)  Complex Programmable Logic Device (CPLD)  Essentially, the CPLD is a device containing multiple SPLDs and can replace many fixed-function ICs.  Each Logic Array Block (LAB) is roughly equivalent to one SPLD. 9 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 10. Programmable Logic Devices (PLDs)  Complex Programmable Logic Device (CPLD)  Generally, CPLDs can be used to implement any of the logic functions discussed earlier, for example, decoders, encoders, multiplexers, demultiplexers, and adders. 10 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 11. Programmable Logic Devices (PLDs)  An FPGA is generally more complex and has a much higher density than a CPLD, although their applications can sometimes overlap.  As mentioned, the SPLD and the CPLD are closely related because the CPLD basically contains a number of SPLDs.  The FPGA, however, has a different internal structure (architecture), as illustrated in Figure 1–34.  The three basic elements in an FPGA are the logic block, the programmable interconnections, and the input/output (I/O) blocks. 11 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 12. Programmable Logic Devices (PLDs) 12 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 13. Programmable Logic Devices (PLDs)  Large FPGAs can have tens of thousands of logic blocks in addition to memory and other resources.  A typical FPGA ball-grid array package is shown in Figure 1–35.  These types of packages can have over 1000 input and output pins. 13 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 14. The Programming Process  An SPLD, CPLD, or FPGA can be thought of as a “blank slate” on which you implement a specified circuit or system design using a certain process.  This process requires a software development package installed on a computer to implement a circuit design in the programmable chip.  The computer must be interfaced with a development board or programming fixture containing the device. 14 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr.
  • 15. The Programming Process 15 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 16. The Microcontroller  A microcontroller is different than a PLD.  The internal circuits of a microcontroller are fixed, and a program (series of instructions) directs the microcontroller operation in order to achieve a specific outcome.  The internal circuitry of a PLD is programmed into it, and once programmed, the circuitry performs required operations.  Thus, a program determines microcontroller operation, but in a PLD a program determines the logic function. 16 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr.
  • 17. The Microcontroller  Microcontrollers are generally programmed with either the C language or the BASIC language.  A microcontroller is basically a special-purpose small computer.  Microcontrollers are generally used for embedded system applications.  An embedded system is a system that is designed to perform one or a few dedicated functions within a larger system.  By contrast, a general-purpose computer, such as a laptop, is designed to perform a wide range of functions and applications. 17 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 18. The Microcontroller  Embedded microcontrollers are used in many common applications.  The embedded microcontroller is part of a complete system, which may include additional electronics and mechanical parts.  For example, a microcontroller in a television set displays the input from the remote unit on the screen and controls the channel selection, audio, and various menu adjustments like brightness and contrast.  In an automobile a microcontroller takes engine sensor inputs and controls spark timing and fuel mixture.  Other applications include home appliances, thermostats, cell phones, and toys. 18 Module 5 – Introduction to Programmable Logic Prepared by:; fscjr. cont’d
  • 19. Mastery Exercises 19 1. List three major categories of programmable logic devices and specify their acronyms.  Simple programmable logic device (SPLD), complex programmable logic device (CPLD), and field- programmable gate array (FPGA) 2. How does a CPLD differ from an SPLD?  A CPLD is made up of multiple SPLDs. 3. What are the two main functional characteristics of a microcontroller?  The microcontroller has fixed internal circuits and its operation is directed by a program. cont’d Module 5 – Introduction to Programmable Logic Prepared by:; fscjr.