2.3: Truth Tables

Digital Circuit Projects - An Overview of Digital Circuits Through Implementing Integrated Circuits · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    2.3: Truth Tables

    Boolean functions are functions that perform operations on sets of Boolean variables. For example, a Boolean function f, which takes 2 input values A and B, would produce an output value, f(A,B). The input values A and B are binary, as is the output value f(A,B). It is possible to completely characterize the function f(A,B) by enumerating all the possible input combinations and A and B (00, 01, 10, 11), and specifying the output f(A,B) for each input combination.

    A truth table is standard way to represent a Boolean function which enumerates all the possible outputs of that function. So assume f(A,B) is the AND operator. The truth table for this operation is:

    Table \(\PageIndex{1}\): AND truth table

    Input

    Output

    A

    B

    AND

    0 0 0
    0 1 0
    1 0 0
    1 1 1

    More than one function can be represented in a truth table. A truth table that represents two functions, AND and OR, would be the following:

    Table \(\PageIndex{2}\): AND and OR truth table

    Input

    Output

    A

    B

    AND

    OR

    0 0 0 0
    0 1 0 1
    1 0 0 1
    1 1 1 1

    All Boolean functions can be represented using truth tables (the proof for this is left for the exercises at the end of this section), though the size could become quite large, or possibly infinite. For example, consider two Boolean functions f1(A,B,C) and f2(A,B,C). The truth table for these two functions would be written as follows:

    Table \(\PageIndex{3}\): Truth table for f1(A,B,C) and f2(A,B,C)

    Input

    Output

    A

    B

    C

    f1(A,B,C)

    f2(A,B,C)

    0 0 0 0 0
    0 0 1 0 1
    0 1 0 0 0
    0 1 1 0 1
    1 0 0 1 0
    1 0 1 1 1
    1 1 0 1 0
    1 1 1 1 1

    This page titled 2.3: Truth Tables was last modified on Tue, 25 May 2021 23:51:49 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Charles W. Kann (The Cupola: Scholarship at Gettysburg College) via source content that was edited to the style and standards of the LibreTexts platform.