DL Unit 2 Part 1
DL Unit 2 Part 1
Digital Logic
(BIT 103)
BIT 1st semester-Tribhuvan University (TU)
• Examples: human voice, thermometer, etc. • Examples: computers, digital phones, etc.
3 Compiled by Ujjwal Rijal ||
[email protected]
Truth Table
A table which represents the input-output relationship of the binary variables for
each logical gate is called truth table.
It shows the relation between all the input and output in a tabular form.
Thus, a truth table is a table representing the results of the logical operation on all
the possible combinations of logical values.
The number of rows in a truth table is equal to 2n (where, n = number of
variables). For example, for 2 input variables, number of rows will be 22 = 4.
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
F = X. Y. Z’ + X. Y’
Here, X, Y, Z are Boolean variables. The right hand side of the above operation is
known as expression.
Each occurrences of a variable or its complement in an expression is called literal.
In the above expression, there are three variables (X, Y, Z) and five literals (X, Y,
Z’, X,Y’).