Lec9 - Review Session
Lec9 - Review Session
• Review Session
Implement the two functions using ONLY three 4-input lookup tables. Show what logic
function will be implemented in each of the three lookup tables by giving the logic expression
as a function of its labeled inputs. Use the simplest logic expressions possible for each lookup
table, using AND, OR, and NOT operators. Show how the lookup tables are connected
together.
F = x1.x2.x3.x4.x5.x6
G = x1’x2’x3’x4’x5’x6’
Sol
Q
• The Xilinx FPGA devices contain configurable logic blocks that can
be used to implement any Boolean logic. Let’s explore the
advantages of using CLB over a set of using individual logic gates
for implementing Boolean functions. Assume, there are four CLBs
in the device and each CLB has a 4-LUT that can implement any
function of four inputs. If you were to replace these four CLBs
with two input gates, how many gates will you require? Explain
using an example. (Hint: take an arbitrary four input function and
implement it using a PLA and find maximum possible min terms
that you can generate and compute max fan- in of each AND
gate and OR gate. Then compute how many two input gates (fan-
in of 2) will be required to implement those big AND and OR
gates with large fan-ins.)
A5
The functions of nine variables that can be implemented are all those functions that can be re-written as a function of 3 variables.
The inputs to this three-variable function will be one of the original variables, plus two separate functions of 4 variables (these two
4-variable functions will have the remaining 8 original variables as inputs).
MA =0
MB =0
MC = X (value doesn't matter)
MD = X (value doesn't matter)
ME = 0 (select C1)
W X Y
W = AB + A’C’
A B C
Consensus theorem states:
ABC
XY + X’Z + YZ = XY +X’Z
ABC’
The YZ term is called the consensus term and is
redundant. The consensus term is formed from a A’C’
PAIR OF TERMS in which a variable (X) and its
complement (X’) are present; the consensus term AB’
is formed by multiplying the two terms and
leaving out the selected variable and its A’B
complement.
The consensus of XY, X’Z is YZ BC
8 terms wont’ fit in a 7 term PLA
observe that AB = ABC + ABC’ B’C’
can rewrite W to reuse terms:
Now it fits
W = ABC + ABC’ +A’C’ W X Y
X = ABC + AB’ +A’B
Y = ABC’ + BC + B’C’
21
BITS Pilani, Pilani Campus
Question
Show how the function
Act1 Logic Module: It is a multiplexer-based logic module. Logic functions are implemented by interconnecting signals from the routing
tracks to the data inputs and select lines of the multiplexers. Inputs can also be tied to a logical 1 or 0 if required, since these signals are
always available in the routing channel. A surprising number of useful logic functions can be implemented with this module. Clearly,
multiplexing is very efficient, but random logic and sequential logic functions are also efficient. These options provide the designer with
an excellent mix of logic capabilities, required for applications demanding a variety of logic functions
F1 = B . C F2 = B + C Control
These functions can be broken down further into:
F1 = B ( B . C ) + B ( B . C )
= B . C + B.0
C Overall Function
0 F2
F1 1 F
C B
B A
F2 = B ( B + C ) + B ( B + C)
0
= B . 1 + B .C F1
C
C B
F2
1
B
W1’ + W1W2’
F = A.B + B’.C + D
= B [A.B + B’.C + D] + B’[A.B + B’.C + D]
= A.B + B.D + B’.C + B’.D
D
M2
D 0
Implement using Act 1 logicmodule ‘1’ 1
F2
A
‘0’ O1
B
A
B 1
C
D
REGISTERED ‘Y’
OUTPUT IFNEEDED
REGISTERED ‘X’
OUTPUT IFNEEDED