7 Programmable Logic Devices

Digital Logic · Unit 7

Programmable Logic Devices

Exam-focused notes for Programmable Logic Devices (Digital Logic, BIT103): what the TU syllabus asks and how it has actually been tested, with 3 solved past questions from this unit.

Programmable Logic Devices in short

A programmable logic device (PLD) is a chip whose logic function is set by the user after manufacture. Instead of wiring many separate gates, we program a standard chip. This saves space, cost and design time.

Programmable Logic Devices: notes

Programmable logic array design

A programmable logic array (PLA) has two levels: an AND array followed by an OR array. In a PLA both arrays are programmable. The inputs and their complements feed the AND array, which makes product terms. The OR array adds chosen product terms to form each output. Inside, each cross point has a fuse or switch that can be left connected or broken.

Because the AND array is programmable, only the product terms that are really needed are made. Product terms can be shared between outputs.

Example. Implement $F_1 = AB' + AC$ and $F_2 = AC + BC$.

The distinct product terms are $AB'$, $AC$ and $BC$. The PLA programming table lists them. A dash means the variable is not in the term.

Product termABCF1F2
$AB'$10-1-
$AC$1-111
$BC$-11-1

The term $AC$ is made once and used by both outputs. A PLA of this size needs 3 inputs, 3 product terms and 2 outputs. PLA size is stated by these three numbers. To design one: simplify all functions, look for common product terms, and then fill in the table.

What this unit covers

  • Programmable logic array design
  • Read-only memory implementation
  • Function implementation using ROM
  • Programmable logic device types

Function implementation using ROM

2080 · 5 marks

Define PLDs. Implement the given functions with ROM. F1 = (Σ(0,1,2)(\Sigma(0,1,2)(Σ(0,1,2), F2 = Σ(0,2,3)\Sigma(0,2,3)Σ(0,2,3) [5]

  • Function 1: $F1 = \Sigma(0, 1, 2)$ - Function 2: $F2 = \Sigma(0, 2, 3)$ - Maximum minterm index = 3, so minterms range $0$ to $3$ - Number of input variables $n$: since $2^n = 4$, we get $n = 2$ (call them $A, B$) - Number of output functions = 2 ($F1, F2$) Implement using ROM. --- Programmable...
Open this answer on its own page →

Read-only memory implementation

2081.2 · 5 marks

List different memory types and explain basic memory operations. [5]

Show solved answer

Memory Types and Basic Memory Operations

Different Types of Memory

1. Primary Memory (Main Memory)

  • RAM (Random Access Memory): Volatile memory used to store data and programs currently in use.
    • SRAM (Static RAM): Uses flip-flops; faster, more expensive, used in cache memory.
    • DRAM (Dynamic RAM): Uses capacitors; slower, cheaper, used as main memory; needs periodic refresh.
  • ROM (Read Only Memory): Non-volatile memory; stores permanent data/firmware.
    • PROM: Programmable ROM; can be written once.
    • EPROM: Erasable PROM; erased using UV light.
    • EEPROM: Electrically Erasable PROM; erased electrically.

2. Cache Memory

  • High-speed memory located between CPU and main memory.
  • Stores frequently accessed data to reduce access time.
  • Levels: L1 (fastest, smallest), L2, L3.

3. Secondary Memory (Auxiliary Memory)

  • Non-volatile, large capacity storage.
  • Examples: Hard Disk Drive (HDD), Solid State Drive (SSD), Optical Disk, Magnetic Tape.

4. Registers

  • Fastest memory, located inside the CPU.
  • Temporarily hold data, instructions, and addresses during processing.

5. Virtual Memory

  • A technique that uses secondary storage to extend the apparent size of primary memory.

Basic Memory Operations

Memory operations are the fundamental actions performed on a memory system:

1. Read Operation (Fetch / Load)

  • Data is retrieved from a specific memory location and transferred to the CPU or a register.
  • Steps:
    1. The CPU places the memory address on the Address Bus.
    2. A Read control signal (RD = 0 or active low) is sent via the Control Bus.
    3. The memory locates the addressed cell and places the data on the Data Bus.
    4. The CPU reads the data from the Data Bus.
CPU --> [Address Bus] --> Memory
CPU <-- [Data Bus]    <-- Memory
CPU --> [Control Bus: READ] --> Memory

2. Write Operation (Store)

  • Data is transferred from the CPU and stored into a specific memory location.
  • Steps:
    1. The CPU places the memory address on the Address Bus.
    2. The CPU places the data to be written on the Data Bus.
    3. A Write control signal (WR = 0 or active low) is sent via the Control Bus.
    4. The memory stores the data at the specified address.
CPU --> [Address Bus] --> Memory
CPU --> [Data Bus]    --> Memory
CPU --> [Control Bus: WRITE] --> Memory

Summary Table

OperationAddress BusData BusControl Signal
ReadCPU sends addressMemory sends data to CPURD (active)
WriteCPU sends addressCPU sends data to memoryWR (active)

Note: These two operations (Read and Write) form the foundation of all memory interactions in a computer system. All higher-level operations such as fetch-decode-execute cycles depend on these basic operations.

Open this answer on its own page →

Programmable logic array design

0 · 5 marks

Write short notes on: PLA Write short notes on Triggering of flip-flop [2.5+2.5]

Definition: A Programmable Logic Array (PLA) is a programmable logic device used to implement combinational logic circuits. It consists of two programmable planes: a programmable AND plane followed by a programmable OR plane. Structure: Key Features: - Both the AND plane and OR plane are programm...

Open this answer on its own page →