Tutorial Sheet
Tutorial Sheet
Solution:
One would need a 2n × m PROM, where n is the number of inputs and m is the
number of outputs
Q.2\ Determine the size of the PROM required for implementing the following
logic circuits:
(a) a binary multiplier that multiplies two four-bit numbers;
(b) a dual 8-to-1 multiplexer with common selection inputs;
1
University College of Madenat El-Elem Types of FPLD
Computer Eng.Tech. Dept. Tutorial Sheet
Advance Digital Electronics Lecturer: Fatima H.Fakhri
(c) a single-digit BCD adder/subtractor with a control input for selection of
operation
Solution:
(a) The number of inputs required here would be eight. The result of multiplication
would be in eight bits. Therefore, the size of the PROM=28×8=256×8.
(b) The number of inputs =8+8+3=19 (the number of selection inputs=3). The
number of outputs = 2. Therefore, the size of the PROM = 219 ×2 = 512K×2.
(c) The number of inputs=4 (augend bits) +4 (addend bits)+1 (carry-in)+1 (control
input)=10. The number of outputs=4 (sum or subtraction output bits)+1 (carry or
borrow bit)=5. The size of the PROM= 210 ×5 =1024×5 =1K×5.
If we simplify the Boolean expressions for the sum and carry outputs, we will find
that the expression for the sum output cannot be simplified any further, and also
that the expression for carry-out can be simplified to three product terms with
fewer literals. If we examine even the existing expressions, we find that we would
need seven AND gates in the PLA implementation. And if we use the simplified
expressions, even then we would require the same number of AND gates.
Therefore, the simplification here would not help as far as its implementation with
2
University College of Madenat El-Elem Types of FPLD
Computer Eng.Tech. Dept. Tutorial Sheet
Advance Digital Electronics Lecturer: Fatima H.Fakhri
a PLA is concerned. Figure B shows the implementation of a full adder with a PLA
device.
A) Using 8x2 PROM to implement the full adder
B) Using PLA
3
University College of Madenat El-Elem Types of FPLD
Computer Eng.Tech. Dept. Tutorial Sheet
Advance Digital Electronics Lecturer: Fatima H.Fakhri
Q.4\ We have two two-bit binary numbers A 1A0 and B1B0. Design a PLA device to
implement a magnitude comparator to produce outputs for A 1A0 being ‘equal to’,
‘not equal to’, ‘less than’ and ‘greater than’ B1B0.
Solution
Table below shows the function table with inputs and desired outputs. The Boolean
expressions for the desired outputs are given in the following equations:
4
University College of Madenat El-Elem Types of FPLD
Computer Eng.Tech. Dept. Tutorial Sheet
Advance Digital Electronics Lecturer: Fatima H.Fakhri
After simplification using K-map the equations will be:
5
University College of Madenat El-Elem Types of FPLD
Computer Eng.Tech. Dept. Tutorial Sheet
Advance Digital Electronics Lecturer: Fatima H.Fakhri
Q.4\ Table below shows the function table of a converter. Starting with the
Boolean expressions for the four outputs (P, Q, R, S), minimize them using
Karnaugh maps and then hardware-implement this converter with a suitable PLD
with PAL architecture.
Solution:
From the given function table, we can write the Boolean expressions for the four
outputs as follows:
6
University College of Madenat El-Elem Types of FPLD
Computer Eng.Tech. Dept. Tutorial Sheet
Advance Digital Electronics Lecturer: Fatima H.Fakhri
7
University College of Madenat El-Elem Types of FPLD
Computer Eng.Tech. Dept. Tutorial Sheet
Advance Digital Electronics Lecturer: Fatima H.Fakhri
Using K-map to simplify the equations: