SlideShare a Scribd company logo
Digital Electronics
UNIT V PROGRAMMABLE LOGIC
DEVICES
R.Kanmani
Assistant Professor (Sr.Gr)/ECE
Sri Ramakrishna Institute of Technology
Coimbatore.
Memory Unit
• A memory unit is a device to which binary information is stored and
retrieved when needed
• Eg. 1 KB of memory  2^10= 1024
 2^k =1024, Hence k=10
 k address lines=1024 address lines
 Each 1024 locations has 8 bit Data(Byte)
• Example – 1024x16 memory Content
Memory operation
Write and Read Operations
Write Operation
1. Apply the binary address of the
desired word to the address lines.
2. Apply the data bits that must be
stored in memory to the data input
lines.
3. Activate the write input.
Read Operation
• 1. Apply the binary address of the
desired word to the address lines.
• 2. Activate the read input.
Classification of Memories
• Memory
ROM RAM
Masked ROM PROM EPROM EEPROM
Static
RAM
Dynamic
RAM
Random Access Memory (RAM)
 Can be written to or read from.
 Read/Write memory
 Reading from RAM is non-destructive.
 Access time to read from any memory location is the same.
 As compared to serial access memory.
 Volatile
 Information is lost when power is removed.
Random Access Memory (RAM)
 Static Random Access Memory (SRAM)
 Based on the Flip-Flop
 Requires a large number of transistors
 Fast
 Dynamic Random Access Memory (DRAM)
 Uses a single transistor to store charge
 Requires very few transistors
 Must be periodically refreshed
 Slow(er)
SRAM- Memory Cell
Internal Construction -SRAM Block Diagram
Construction of 4x4 RAM
Coincident Decoding
• For 1K-word memory instead of using 10 x1024 decoder, we use two 5x32
decoder in a two dimensional selection scheme.
• A 10x1024 decoder requires 1024 AND gates with 10 inputs each, whereas
when we use two 5x32 decoder it requires totally 64 AND gates with five
inputs each
• 10 Bit address is split into MSB 5 bits and LSB 5 bits. The MSB bits are
given to X and LSB bits are given to y
Coincident Decoding-Example
Two-dimensional decoding structure for a 1K-word memory
DRAM
• SRAM typically has 6 transistors
• DRAM consists of only one transistor and capacitor
• Capacitor charge will be discharged with respect to time. Hence it should
be periodically recharged.
• DRAMS have 4 times the density and cost is also 4 times less
Address multiplexing for 64K DRAM
Random Access Memory
Read Cycle
Random Access Memory
Write Cycle
Read Only Memory (ROM)
 Can only be read from.
 Memory is written (or “programmed”) once
 Reading from ROM is non-destructive.
 Access time to read from any memory location is the same.
 As compared to serial access memory.
 Non-Volatile
 Information is retained even after power is removed.
Read Only Memory
• The inputs provide the address for memory, and the outputs give the data
bits of the stored word that is selected by the address.
• The number of words in a ROM is determined from the fact that k address
input lines are needed to specify 2k words.
• Note that ROM does not have data inputs, because it does not have a write
operation.
Eg:32x 8 ROM
• Here 2^k = 32 and n=8, Therefore 32 address locations and 8 output lines.
The 32 addresses are generated by a 5 x32 decoder.
Internal logic of a 32x8 ROM
Programming ROM
ROM Example
• Design a combinational circuit using a ROM. The circuit accepts a three‐bit
number and outputs a binary number equal to the square of the input
number.
Types of Read Only Memory (ROM)
 Programmable Read Only Memory (PROM)
 Can be “programmed”
 Erasable PROM (EPROM)
 Can be “programmed” and erased
 Electrically Erasable PROM (EEPROM)
 Can be erased using an electrical signal
 UV Erasable PROM (UVEPROM)
 Can be erased using Ultraviolet light
Combinational PLDs
• The PROM is a combinational programmable logic device (PLD)—an
integrated circuit with programmable gates divided into an AND array and
an OR array to provide an AND–OR sum‐of‐product implementation.
• Three types
a) PROM (Programmable read only memory)
b) PAL (Programmable Array logic)
c) PLA (Programmable Logic Array)
Types of Combinational PLDs
1.Programmable Read Only Memory(PROM)
2.Programmable Array Logic(PAL)
3.Programmbale Logic Array (PLA)
Programmable Logic Array(PLA)
• The PLA is similar in concept to the PROM, except that the PLA does not
provide full decoding of the variables and does not generate all the
minterms.
• The decoder is replaced by an array of AND gates that can be programmed
to generate any product term of the input variables.
• The product terms are then connected to OR gates to provide the sum of
products for the required Boolean functions.
Boolean Function Implementation in PLA
• Eg. Implement the following fn in PLA
PLA with three inputs, four product terms and two outputs
• PLA Programming Table
Boolean Function Implementation in PLA
(Contd.)
PLA Example
• Implement the following two Boolean functions with a PLA:
Programmable Array Logic(PAL)
• The PAL is a programmable logic device with a fixed OR
array and a programmable AND array. Because only the AND
gates are programmable, the PAL is easier to program than, but
is not as flexible as, the PLA.
PAL with four inputs, four outputs and a three-wide AND-OR structure
PAL Implementation Example
• Implement the function
• After K-map simplification
w = ABC’+A’B’CD’
x = A+BCD
y = A’B+CD+B’D’
z = ABC’+A’B’CD’+AC’D’+A’B’C’D
• z can be written in terms of w as
z= w+ AC’D’+A’B’C’D
PAL Implementation Example(Contd.)
w = ABC’+A’B’CD’
x = A+BCD
y = A’B+CD+B’D’
z = w+ AC’D’+A’B’C’D
PAL Programming table
Unit v   memory & programmable logic devices
Sequential Programmable Devices
• Digital systems are designed with flip‐flops and gates. Since the
combinational PLD consists of only gates, it is necessary to include
external flip‐flops when they are used in the design.
• Sequential programmable devices include both gates and flip‐flops. In this
way, the device can be programmed to perform a variety of
sequential‐circuit functions.
• Three types
1. Sequential (or simple) programmable logic device (SPLD)
2. Complex programmable logic device (CPLD)
3. Field‐programmable gate array (FPGA)
1. Sequential (or simple) programmable logic device (SPLD)
• The SPLD includes flip‐flops, in addition to the AND–OR array
• A PAL or PLA is modified by including a number of flip‐flops connected to
form a register.
• The circuit outputs can be taken from the OR gates or from the outputs of the
flip‐flops.
Sequential programmable logic device
CPLD
• CPLD-The device consists of multiple PLDs interconnected through a
programmable switch matrix.
• The input–output (I/O) blocks provide the connections to the IC pins. Each I/O pin
is driven by a three state buffer and can be programmed to act as input or output.
• The switch matrix receives inputs from the I/O block and directs them to the
individual macrocells.
• Similarly, selected outputs from macrocells are sent to the outputs as needed.
• Each PLD typically contains from 8 to 16 macrocells, usually fully connected.
• If a macrocell has unused product terms, they can be used by other nearby
macrocells. In some cases the macrocell flip‐flop is programmed to act as a D, JK,
or T flip‐flop.
CPLD
General CPLD configuration

More Related Content

PPTX
Timer counter in arm7(lpc2148)
PPT
AVR Fundamentals
PPT
Addressing modes of 8051
PPTX
Counters
PPTX
dual-port RAM (DPRAM)
PPT
8085 interrupts
PPTX
Architecture of 8051
PPT
Memory organization of 8051
Timer counter in arm7(lpc2148)
AVR Fundamentals
Addressing modes of 8051
Counters
dual-port RAM (DPRAM)
8085 interrupts
Architecture of 8051
Memory organization of 8051

What's hot (20)

PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
PPTX
Johnson counter
PPTX
Architecture of 8085 microprocessor
PPTX
ARM Processors
PPT
8085-microprocessor
PDF
Memory interfacing of microcontroller 8051
PPT
Architecture of 8086 Microprocessor
PPTX
Finite state machines
PPT
8051 instruction set
PDF
Registers and counters
PPTX
8051 Microcontroller
PPTX
Introduction to Digital Signal processors
PPTX
INTRODUCTION TO MICROCONTROLLER
PPT
PAL And PLA ROM
PPTX
Lcd interfaing using 8051 and assambly language programming
PPTX
PPTX
latches
PPT
Programmable Logic Devices Plds
PPTX
microcontroller vs microprocessor
PPTX
Combinational Circuits & Sequential Circuits
Interrupts on 8086 microprocessor by vijay kumar.k
Johnson counter
Architecture of 8085 microprocessor
ARM Processors
8085-microprocessor
Memory interfacing of microcontroller 8051
Architecture of 8086 Microprocessor
Finite state machines
8051 instruction set
Registers and counters
8051 Microcontroller
Introduction to Digital Signal processors
INTRODUCTION TO MICROCONTROLLER
PAL And PLA ROM
Lcd interfaing using 8051 and assambly language programming
latches
Programmable Logic Devices Plds
microcontroller vs microprocessor
Combinational Circuits & Sequential Circuits
Ad

Similar to Unit v memory & programmable logic devices (20)

PPTX
Unit IV Memory and Programmable Logic.pptx
PDF
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
PPTX
System design using HDL - Module 3
PDF
Programmable Logic Devices
DOCX
UNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONS
PPTX
Digital Devices Parcial 1 PLD, CPLD, SPLD, FPGA.pptx
PPTX
Memory types in fundamental of electronics.pptx
PDF
Lecture13.pdf UNIT 4 In digital logic Circuits
PPTX
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
PPT
Fpga 02-memory-and-pl ds
PPTX
PPTX
Programmable logic devices
PPTX
PROGRAMMABLE LOGIC DEVICES-PAL, PROM,PLAs
PPT
programmable logic devices part 1
PPT
PPTX
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
PPTX
Memories in digital electronics
PPTX
5B. Semiiconductor Memories Part II.pptx
PPTX
5B. .Semiconductor Memories Part II.pptx
PPTX
FPGA+02.pptx
Unit IV Memory and Programmable Logic.pptx
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
System design using HDL - Module 3
Programmable Logic Devices
UNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONS
Digital Devices Parcial 1 PLD, CPLD, SPLD, FPGA.pptx
Memory types in fundamental of electronics.pptx
Lecture13.pdf UNIT 4 In digital logic Circuits
DE-UNIT-V MEMORY DEVICES AND DIGITAL INTEGRATED CIRCUITS
Fpga 02-memory-and-pl ds
Programmable logic devices
PROGRAMMABLE LOGIC DEVICES-PAL, PROM,PLAs
programmable logic devices part 1
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
Memories in digital electronics
5B. Semiiconductor Memories Part II.pptx
5B. .Semiconductor Memories Part II.pptx
FPGA+02.pptx
Ad

Recently uploaded (20)

PDF
PPT on Performance Review to get promotions
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
web development for engineering and engineering
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Construction Project Organization Group 2.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Digital Logic Computer Design lecture notes
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT
Project quality management in manufacturing
PPTX
Sustainable Sites - Green Building Construction
PPT on Performance Review to get promotions
Embodied AI: Ushering in the Next Era of Intelligent Systems
Automation-in-Manufacturing-Chapter-Introduction.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
web development for engineering and engineering
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
bas. eng. economics group 4 presentation 1.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
OOP with Java - Java Introduction (Basics)
Model Code of Practice - Construction Work - 21102022 .pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Construction Project Organization Group 2.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Internet of Things (IOT) - A guide to understanding
Digital Logic Computer Design lecture notes
Operating System & Kernel Study Guide-1 - converted.pdf
Geodesy 1.pptx...............................................
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Project quality management in manufacturing
Sustainable Sites - Green Building Construction

Unit v memory & programmable logic devices

  • 1. Digital Electronics UNIT V PROGRAMMABLE LOGIC DEVICES R.Kanmani Assistant Professor (Sr.Gr)/ECE Sri Ramakrishna Institute of Technology Coimbatore.
  • 2. Memory Unit • A memory unit is a device to which binary information is stored and retrieved when needed • Eg. 1 KB of memory  2^10= 1024  2^k =1024, Hence k=10  k address lines=1024 address lines  Each 1024 locations has 8 bit Data(Byte)
  • 3. • Example – 1024x16 memory Content
  • 5. Write and Read Operations Write Operation 1. Apply the binary address of the desired word to the address lines. 2. Apply the data bits that must be stored in memory to the data input lines. 3. Activate the write input. Read Operation • 1. Apply the binary address of the desired word to the address lines. • 2. Activate the read input.
  • 6. Classification of Memories • Memory ROM RAM Masked ROM PROM EPROM EEPROM Static RAM Dynamic RAM
  • 7. Random Access Memory (RAM)  Can be written to or read from.  Read/Write memory  Reading from RAM is non-destructive.  Access time to read from any memory location is the same.  As compared to serial access memory.  Volatile  Information is lost when power is removed.
  • 8. Random Access Memory (RAM)  Static Random Access Memory (SRAM)  Based on the Flip-Flop  Requires a large number of transistors  Fast  Dynamic Random Access Memory (DRAM)  Uses a single transistor to store charge  Requires very few transistors  Must be periodically refreshed  Slow(er)
  • 9. SRAM- Memory Cell Internal Construction -SRAM Block Diagram
  • 11. Coincident Decoding • For 1K-word memory instead of using 10 x1024 decoder, we use two 5x32 decoder in a two dimensional selection scheme. • A 10x1024 decoder requires 1024 AND gates with 10 inputs each, whereas when we use two 5x32 decoder it requires totally 64 AND gates with five inputs each • 10 Bit address is split into MSB 5 bits and LSB 5 bits. The MSB bits are given to X and LSB bits are given to y
  • 13. DRAM • SRAM typically has 6 transistors • DRAM consists of only one transistor and capacitor • Capacitor charge will be discharged with respect to time. Hence it should be periodically recharged. • DRAMS have 4 times the density and cost is also 4 times less
  • 17. Read Only Memory (ROM)  Can only be read from.  Memory is written (or “programmed”) once  Reading from ROM is non-destructive.  Access time to read from any memory location is the same.  As compared to serial access memory.  Non-Volatile  Information is retained even after power is removed.
  • 18. Read Only Memory • The inputs provide the address for memory, and the outputs give the data bits of the stored word that is selected by the address. • The number of words in a ROM is determined from the fact that k address input lines are needed to specify 2k words. • Note that ROM does not have data inputs, because it does not have a write operation.
  • 19. Eg:32x 8 ROM • Here 2^k = 32 and n=8, Therefore 32 address locations and 8 output lines. The 32 addresses are generated by a 5 x32 decoder. Internal logic of a 32x8 ROM
  • 21. ROM Example • Design a combinational circuit using a ROM. The circuit accepts a three‐bit number and outputs a binary number equal to the square of the input number.
  • 22. Types of Read Only Memory (ROM)  Programmable Read Only Memory (PROM)  Can be “programmed”  Erasable PROM (EPROM)  Can be “programmed” and erased  Electrically Erasable PROM (EEPROM)  Can be erased using an electrical signal  UV Erasable PROM (UVEPROM)  Can be erased using Ultraviolet light
  • 23. Combinational PLDs • The PROM is a combinational programmable logic device (PLD)—an integrated circuit with programmable gates divided into an AND array and an OR array to provide an AND–OR sum‐of‐product implementation. • Three types a) PROM (Programmable read only memory) b) PAL (Programmable Array logic) c) PLA (Programmable Logic Array)
  • 24. Types of Combinational PLDs 1.Programmable Read Only Memory(PROM) 2.Programmable Array Logic(PAL) 3.Programmbale Logic Array (PLA)
  • 25. Programmable Logic Array(PLA) • The PLA is similar in concept to the PROM, except that the PLA does not provide full decoding of the variables and does not generate all the minterms. • The decoder is replaced by an array of AND gates that can be programmed to generate any product term of the input variables. • The product terms are then connected to OR gates to provide the sum of products for the required Boolean functions.
  • 26. Boolean Function Implementation in PLA • Eg. Implement the following fn in PLA PLA with three inputs, four product terms and two outputs
  • 27. • PLA Programming Table Boolean Function Implementation in PLA (Contd.)
  • 28. PLA Example • Implement the following two Boolean functions with a PLA:
  • 29. Programmable Array Logic(PAL) • The PAL is a programmable logic device with a fixed OR array and a programmable AND array. Because only the AND gates are programmable, the PAL is easier to program than, but is not as flexible as, the PLA.
  • 30. PAL with four inputs, four outputs and a three-wide AND-OR structure
  • 31. PAL Implementation Example • Implement the function • After K-map simplification w = ABC’+A’B’CD’ x = A+BCD y = A’B+CD+B’D’ z = ABC’+A’B’CD’+AC’D’+A’B’C’D • z can be written in terms of w as z= w+ AC’D’+A’B’C’D
  • 32. PAL Implementation Example(Contd.) w = ABC’+A’B’CD’ x = A+BCD y = A’B+CD+B’D’ z = w+ AC’D’+A’B’C’D PAL Programming table
  • 34. Sequential Programmable Devices • Digital systems are designed with flip‐flops and gates. Since the combinational PLD consists of only gates, it is necessary to include external flip‐flops when they are used in the design. • Sequential programmable devices include both gates and flip‐flops. In this way, the device can be programmed to perform a variety of sequential‐circuit functions. • Three types 1. Sequential (or simple) programmable logic device (SPLD) 2. Complex programmable logic device (CPLD) 3. Field‐programmable gate array (FPGA)
  • 35. 1. Sequential (or simple) programmable logic device (SPLD) • The SPLD includes flip‐flops, in addition to the AND–OR array • A PAL or PLA is modified by including a number of flip‐flops connected to form a register. • The circuit outputs can be taken from the OR gates or from the outputs of the flip‐flops. Sequential programmable logic device
  • 36. CPLD • CPLD-The device consists of multiple PLDs interconnected through a programmable switch matrix. • The input–output (I/O) blocks provide the connections to the IC pins. Each I/O pin is driven by a three state buffer and can be programmed to act as input or output. • The switch matrix receives inputs from the I/O block and directs them to the individual macrocells. • Similarly, selected outputs from macrocells are sent to the outputs as needed. • Each PLD typically contains from 8 to 16 macrocells, usually fully connected. • If a macrocell has unused product terms, they can be used by other nearby macrocells. In some cases the macrocell flip‐flop is programmed to act as a D, JK, or T flip‐flop.