Professional Documents
Culture Documents
Digital Logic Systems
Digital Logic Systems
Logic gates are tools in expressing a given Boolean expression in a symbolic format. Buffer Gate Also known as a transfer gate and is used only to delay an output of a given expression. Logic Symbol
A
Boolean Expression
Y=A
Truth Table A 0 1 NOT Gate This gate is also referred to as an inverter and it negates the input expression. Logic Symbol Y 0 1
A
Boolean Expression
Y = A' or Y = A
Truth Table A 0 1 Y 1 0
Note: The two gates mentioned above can only have one input at any given time.
Boolean Algebra -1-
AND Gate AND gate is also known as an all or nothing gate since it will only output a true condition if ALL its inputs are true. Logic Symbol
A B
Boolean Expression
Y = A B or Y = AB
Truth Table A 0 0 1 1 OR Gate OR gate is often referred to as an any or all gate since it outputs a true condition if at least one of its conditions is true. Logic Symbol B 0 1 0 1 Y 0 0 0 1
A B
Boolean Expression
Y=A+B
Truth Table A 0 0 1 1
Boolean Algebra
B 0 1 0 1
Y 0 1 1 1
-2-
NAND Gate This gate is the complement of an AND gate. In other words, it would only be false if all of its input conditions are true. Logic Symbol
A B
Boolean Expression
Y = A B or Y = AB
Truth Table A 0 0 1 1 B 0 1 0 1 Y 1 1 1 0
XOR Gate Also known as an excusive-OR gate. It outputs a true condition if the input variables have an odd number of binary 1s. Logic Symbol
A B
Boolean Expression
Y = A B or Y = AB + AB
Truth Table A 0 0 1 1 B 0 1 0 1 Y 0 1 1 0
Boolean Algebra
-3-
BOOLEAN FUNCTION
A Boolean function is an expression formed with binary variables, binary or unary operators, parenthesis and equal sign. It can either be 1 or 0. Literal A literal can either be a primed or unprimed variable. It is represented by each appearance of a variable or its complement in any given Boolean expression. Example:
F = xyz + xyz + x y z
9 literals, 3 variables
x
0 0 1 1
y
0 1 0 1
Term
MINTERM Designation
xy xy xy xy
m0 m1 m2 m3
Boolean Algebra
-4-
x
0 0 0 0 1 1 1 1
y
0 0 1 1 0 0 1 1
z
0 1 0 1 0 1 0 1
m0 m1 m2 m3 m4 m5 m6 m7
Maxterm (Standard Sum) A maxterm is a complete representation of a single Boolean expression obtained from an OR term of n variables. A variable with a value of binary 1 is represented by a primed or complemented variable, while a variable with a value of binary 0 is represented by an unprimed variable. It is sometimes denoted in the form M j or M . Illustrating a 2-variable maxterm example.
x
0 0 1 1
y
0 1 0 1
x+y
M0 M1 M2 M3
Boolean Algebra
-5-
x
0 0 0 0 1 1 1 1
y
0 0 1 1 0 0 1 1
z
0 1 0 1 0 1 0 1
x+y+z
M0 M1 M2 M3 M4 M5 M6 M7
CANONICAL FORMS
A Boolean function could also be expressed into two canonical forms namely:
Sum of Minterms Sum of minterms could be expressed in the form of a Boolean function wherein you take all the binary 1s in a given function from the truth table and express those 1s in the form of minterm and summing them up together. Example: Given the truth table below, express function F in sum of minterms.
x
0 0 0 0 1 1 1 1
y
0 0 1 1 0 0 1 1
z
0 1 0 1 0 1 0 1
F
0 1 1 1 1 0 0 0
F = x yz + x yz + x yz + x yz F = m1 + m 2 + m3 + m 4 F = m(1,2,3,4)
Boolean Algebra
-6-
Product of Maxterms Product of maxterms could be expressed in the form of a Boolean function wherein you take all the binary 0s in a given function from the truth table and express those 0s in the form of maxterm and getting their product. Example: Given the truth table below, express function F in product of maxterms.
x
0 0 0 0 1 1 1 1
y
0 0 1 1 0 0 1 1
z
0 1 0 1 0 1 0 1
F
0 1 1 1 1 0 0 0
STANDARD FORMS
A Boolean function could also be expressed into two standard forms namely: Sum of Products (SOP) It is a simplified Boolean expression containing AND terms called product terms, of one or more literals. The sum denotes the OR-ing of these terms. Product of Sums (POS) It is a simplified Boolean expression containing OR terms called sum terms, of one or more literals. The product denotes the AND-ing of these terms. Examples: SOP: POS:
F = y+ xz
F = ( x + y )( x + z )
F = x( y + z )( y + z + w)
Boolean Algebra
-7-
NON-STANDARD FORMS
A Boolean expression that could be further simplified into SOP or POS form.
x
0 0 0 0 1 1 1 1 a) F1 = x + y z
y
0 0 1 1 0 0 1 1
z
0 1 0 1 0 1 0 1
F1
0 1 0 0 1 1 1 1
F2
0 1 0 1 1 1 0 0
x y z
b) F2 = x y + x z x
F1
F2
Boolean Algebra
-8-
x0 = 0 x 1 = x
x +1 =1 x+0= x
2. Idempotent Laws
xx = x
x+x= x x + x =1
3. Law of Complementary
xx = 0
4. Involution Law
x=x
5. Commutative Law
xy= yx
x+ y= y+x
6. Distributive Law
x( y + z ) = x y + x z
x + y z = ( x + y )( x + z )
x+xy=x
7. Absorption
x( x + y ) = x
8. Identity
x( x + y ) = x y
9. Associative Law
x+xy=x+ y x + ( y + z) = ( x + y) + z
x( y z ) = ( x y ) z
xy = x + y
11. Consensus Theorem
x+ y = x y
( x + y )( x + y ) = x
xy+xy=x
Boolean Algebra
-9-
( x + y )( x + z ) = x z + x y x y + x z = ( x + z )( x + y ) CONVERSION
Sum of Minterm Examples: 1.
Product of Maxterm
F ( x, y, z ) = m(5,6,7) = M (0,1,2,3,4) x
0 0 0 0 1 1 1 1
y
0 0 1 1 0 0 1 1
z
0 1 0 1 0 1 0 1
F
0 0 0 0 0 1 1 1
2.
y
0 0 1 1 0 0 1 1
z
0 1 0 1 0 1 0 1
F
1 0 0 0 0 1 0 1
Boolean Algebra
- 10 -
SOP
distributive law law of complementary operations with 0 and 1 distributive law law of complementary operations with 0 and 1 distributive law identity distributive law
Sum of Minterm
Example:
F = x + yz = xyz + xyz + xyz + xyz + xyz + xyz = xyz + xyz + xyz + xyz + xyz
POS
Boolean Algebra
- 11 -
POS
Product of Maxterm
Example:
1.
POS
Examples:
F = x + yz = (x + y)(x + z) F = xy + xz = (x + z)(x + y)
SOP
2.
POS
1.
Examples:
F = (x + y)(x + z) = xz + xy F = (x + y)(x + z) = x + yz
2.
Boolean Algebra
- 12 -
m0 m2
m1 m3
xy xy
xy xy
where: m 0 corresponds to x y
F ( x, y ) = (0,2) = x y + xy
x\y 0 1 = 0 1 1 1
Boolean Algebra
- 13 -
2)
F ( x, y ) = (2,3) = x y + xy
x\y 0 1 = 0 1 1 1
3)
F ( x, y ) = x + y
x\y 0 1 = 0 1 1 1 1
x+y
4)
F ( x, y ) = x y + x y
x\y 0 1 = 0 1 1 1
3-Variable K-Map 00 m0 m4 01 m1 m5 11 m3 m7 10 m2 m6
0 1
Examples: 1)
F (a, b, c) = (0,1,2,5,6,7)
a\bc 0 1 = 00 1 01 1 1 11 1 10 1 1
a b + bc + ac
or
Boolean Algebra
- 14 -
a\bc 0 1 = 2)
00 1
01 1 1
11 1
10 1 1
a c + bc + ab
yz + xz + xy
3)
F (a, b, c) = (1,3,5,7)
a\bc 0 1 = 00 01 1 1 11 1 1 10
4)
F (a, b, c) = (0,2,4,6)
a\bc 0 1 = 00 1 1 01 11 10 1 1
5)
F (a, b, c) = (0,1,2,3)
a\bc 0 1 = 00 1 01 1 11 1 10 1
Boolean Algebra
- 15 -
00 01 11 10
Examples: 1)
F (a, b, c, d , ) = m0 + m7 + m9 + m11
ab\cd 00 01 11 10 = 00 1 01 11 1 1 1 10
a b c d + abcd + a bd
2)
F (a, b, c, d ) = (1,5,6,7,11,12,13,15)
ab\cd 00 01 11 10 = 00 01 1 1 1 11 1 1 1 10 1
3)
F (a, b, c, d ) = (0,1,2,6,8,9,10)
ab\cd 00 01 11 10 = 00 1 01 1 11 10 1 1 1
b c + acd + b d
Boolean Algebra
- 16 -
(c + d )(a + b)(b + d)
2)
F (a, b, c, d ) = (0,1,4,5,7,10,11,13,14,15)
ab\cd 00 01 11 10 = 00 0 0 01 0 0 0 11 0 0 0 10
0 0
(a + c)(b + d)(a + c)
Boolean Algebra
- 17 -