CC317-Spring 22-Lec 11
CC317-Spring 22-Lec 11
Spring 2022
Lecture 11
http://www.free-powerpoint-templates-design.com
PLD
• Problems by Using Basic Gates
in a single device.
• PLD is an integrated circuit with internal logic gates and/or connections which can be
• It can be electrically erased and reprogrammed with a new design, making them very
• All of them have an output connection matrix, which connect the AND-gates outputs to the OR-gates inputs
which drive the device outputs.
Address bus 3 1 1 0 0 0 0 0 1
4 0 0 0 0 0 1 1 0 Data bus
5 1 0 0 0 1 1 0 1
6 1 1 1 1 1 1 1 1
7 0 0 0 0 1 1 1 1
2
Read
1- Address number 011 is placed on the address bus(lines) so address 3 is chosen.
2- Read command is applied.
3- The word located at address 3 is placed on the data bus and shifted into data register.
Note that The contents od word that located at address 3 is not erased by the read operation.
ROM Internal Logic
• ROM = Decoder + OR gates
• Each decoder output represents one memory address 0
I0 1
• ROM has 32 Words of 8 bits each I1
2
3
.
• ROM has 5 input lines (address) I2 5-to-32 .
decoder .
I3 28
• Each OR gate has a 32 input I4
29
30
31
• A 2k x n ROM will internally consist of an k x 2k decoder and
n OR gates
Example: Design a combinational circuit using ROM. The circuit accepts a 3-bit
number and generates an output binary number equal to the square of the number.
Solution: Derive truth table:
Inputs Outputs
A2 A1 A0 B5 B4 B3 B2 B1 B0 SQ
0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 1 1
0 1 0 0 0 0 1 0 0 4
0 1 1 0 0 1 0 0 1 9
1 0 0 0 1 0 0 0 0 16
1 0 1 0 1 1 0 0 1 25
1 1 0 1 0 0 1 0 0 36
1 1 1 1 1 0 0 0 1 49
Example 1 (cont.)
Inputs Outputs
A2 A1 A0 B5 B4 B3 B2 B1 B0 SQ
0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 1 1
0 1 0 0 0 0 1 0 0 4
0 1 1 0 0 1 0 0 1 9
1 0 0 0 1 0 0 0 0 16
1 0 1 0 1 1 0 0 1 25
1 1 0 1 0 0 1 0 0 36
1 1 1 1 1 0 0 0 1 49 B0
Problem: Tabulate the truth table for an 8 X 4 ROM that implements the following four Boolean
functions:
• Solution:
• Inputs to the ROM (address lines) = 8 (first number) + (8 second number) + 1 (Cin) ➔ 17 lines
• Hence number of words in ROM is = 128 K
• Size of each word = number of possible functions/outputs
• = 8 (addition/subtraction) + 1 (Cout)
• =9
• Hence ROM size = 128K X 9
Advantages of using PLDs
• Advantages of reducing the no. of ICs using PLD: