Digital Logic 1/Boolean Logic

From testwiki
Revision as of 09:09, 8 July 2023 by imported>MathXplore (Activity: +coursecat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basic Ideas and Concepts

  • What is a truth table and what can it do
  • Mapping a function on a truth table and determining all possible outputs
  • Applying principles of Boolean Algebra to minimize given function
  • Learn how to apply minterms and maxterms expansion to a truth table

Truth Tables

A truth table is basically a representation of all the possible input combinations and the functional output of each of those combinations. It will tell you on a case-by-case basis, what will the functional output be in every input instance.

We need a way to represent the 3 basic logic operations in algebraic formulas. (AND, OR, NOT)
Therefore we adopt the following standards for those representations:
A AND B = AB=AB
A OR B = A+B
NOT A (Inverted A) = A

For a simple example, a truth table of the AND gate is given below.

a and b
a b f = a b
0 0 0
0 1 0
1 0 0
1 1 1

In general the number of rows in a truth table will be 2n,, where n is the number of variables. So in a 3 variable function where all the inputs are products, the following would be the truth table.

a and b and c
a b c f = a b c
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1

Boolean Algebra

We introduce rules of Boolean Algebra to help us deal with simplifying more complex functions. The rules that should be learned are as follows.

Boolean Algebra Theorems and Axioms
Single Variable Multi-Variable
00=0 xy=yx
1+1=1 x+y=y+x
11=1 x(yz)=(xy)z
0+0=0 x+(y+z)=(x+y)+z
01=10=0 x(y+z)=xy+xz
1+0=0+1=1 x+(yz)=(x+y)(x+z)
If x=0 then x=1 x+xy=x
If x=1 then x=0 x(x+y)=x
x0=0 xy+xy=x
x+1=1 (x+y)(x+y)=x
x1=x xy=x+y
x+0=x x+y=xy
xx=x x+xy=x+y
x+x=x x(x+y)=xy
xx=0 xy+yz+xz=xy+xz
x+x=1 (x+y)(y+z)(x+z)=(x+y)(x+z)
x=x

Activity

Formulate a truth table for the given function below:

f(a,b,c)=abc+bc+abc

Template:CourseCat