Professional Documents
Culture Documents
Output
A
0
0
1
1
B
0
1
0
1
C
0
0
0
1
AND
GATE
Truth Table
The Truth Table tells us What the Output C is when the Input A is 0,
Input B is 0? All possible combinations of the inputs and their
corresponding outputs are seen in the Truth Table. So the truth table shown
above represents the logic function C = A (AND) B. Thus any logic function
can be represented using a Truth Table. So, given the truth table we can
derive the logic function and vice versa. In order to derive the logic function
from a given truth table, we represent the truth table in terms of K-maps and
derive the logic function.
A
0
0
1
B
1
1
0
C
0
1
1
F(Output)
1
1
1
00
01
10
A 0
1
11
11
Now let us use the Espresso program to minimize this function automatically.
What is Espresso?
Espresso is a two level logic minimization tool. It is a program that helps us
minimize and compute the logic function from the truth table. Espresso takes
as input the truth table specified in a special format called the PLA
(Programmable Logic Array) format.
.i3
.o1
NumberofInputs
Outputs
.ilbabc NamesofInputSignals
.obfOutputSignals
0111
0101
1011
.e
PLA Format
TruthTable
The espresso program takes this file as an input and generates the
minimized logic function.
>espressoece274.pla
.i3
.o1
.ilbabc
.obf
.p2
1011
011
.e
>
dont care set (d). This is illustrated in the snapshot shown below. The
espresso output with fr indicates both On-set and Offset of the minimized
function. The output file can also be written in the EQN format. In the
snapshot shown below, we see both the onset and the offset.
2. -Dexact : Performs the exact minimization algorithm in espresso.
3. Dso : Minimize each function, one at a time as a singleoutput function.
Terms will not be shared among the functions. The option S1 will perform an
exact minimization for each singleoutput function.
4. Dso_both : Minimize each function one at a time as a singleoutput
function, but choose the function or its complement based on which has
fewer terms. The option S1 will perform an exact minimization for each
singleoutput function and its complement to determine which has fewer
terms.
5.Dstats : Provide simple statistics on the size of the function.
6.Dverify : Checks for Boolean equivalence of two PLA's. Reads two
filenames from the command line, each containing a single PLA.
>espressoece274.pla
.i3
.o1
.ilbabc
.obf
.p2
1011
011
.e
>espressoofrece274.pla
.typefr
.i3
.o1
.ilbabc
.obf
.p4
1011
1 1
0 0
110
.end
Various other options like -DPLAverify, -Dmap, -d, -s, -x, -epos are also
available. The function of each of these options is given in the Espresso
manual.