DDCO Module 1
DDCO Module 1
➢ Take each digit in the binary number and multiply it with its place
value.
➢ The sum of all the above products will give the equivalent decimal
number.
For the fraction (after the decimal point) the place value starts
with negative power of 2. This negative power value increases from
left to right.
The place value of the first left digit in fraction is (2–1)
The place value of the next right digit in fraction is (2–2)
The place value of the next right digit in fraction is (2–3)
……. so on
Ex :- Convert the binary number (0.1101)2 into decimal number.
1 1 1 1
(0.1101)2 = (1 x ) + ( 1 x ) + (0 x ) + (1 x )
2 4 8 16
= 1 x 0.5 + 1 x 0.25 + 0 x 0.125 +1 x 0.0625
= 0.5 +0.25 + 0 + 0.0625
= (0.8125)10
Ex :- Convert the binary number (1010.0101)2 into decimal number.
Sol :- Integer part (1010)2 = (1 x 23) + ( 0 x 22) + (1 x 21) + (0 x 20 )
= (1 x 8) + ( 0 x 4) + (1 x 2) + (0 x 1 )
= (10)10
Fractional part (0.0101)2 = (0 x 2–1) + ( 1 x 2–2) + (0 x 2–3) + (1 x 2–4)
1 1 1 1
= (0 x ) + ( 1 x ) + (0 x ) + (1 x )
2 4 8 16
= 0 x 0.5 + 1 x 0.25 + 0 x 0.125 +1 x 0.0625
= 0 + 0.25 + 0 + 0.0625
= (0.3125)10
Binary to Octal number system
AND operator
It performs logical multiplication and
denoted by (.) dot.
X Y X.Y
0 0 0
0 1 0
1 0 0
1 1 1
OR operator
X X (means complement of x)
0 1
1 0
Logic Gates
• Logic gates are electronic circuits
that operate on one or more input
signals to produce an output
signal.
• Electrical signals such as voltages
or currents exist as analog signals
having values over a given
continuous range, say, 0 to 3 V.
AND gate
Input A Output A
0 1
1 0
NAND Gate
NAND
X Y Z
X 0 0 1
Z 0 1 1
Y 1 0 1
1 1 0
NAND Gate
F = (X•X)’ X F = X’
X
= X’+X’
= X’
X X F X•Y
F = ((X•Y)’)’
Y = (X’+Y’)’ Y
= X’’•Y’’
= X•Y
X X
F = (X’•Y’)’ F = X+Y
= X’’+Y’’
Y Y
= X+Y
NOR Gate
•Binary arithmetic. • Logical Operation
•1 + 1 = 10
•(read “one plus one •1 + 1 = 1
is equal to 2”) • (read “one OR one is
equal to one”)
AXIOMATIC DEFINITION OF BOOLEAN ALGEBRA
• In 1854, George Boole developed an algebraic system
now called Boolean algebra
• In1938, Claude E. Shannon introduced a two‐valued
Boolean algebra called switching algebra that
represented the properties of bistable electrical
switching circuits.
• The postulates formulated by E. V. Huntington in 1904
is considered for the formal definition.
Huntington Postulates
1. (a) The structure is closed with respect to the operator + & .
2. (a) The element 0 is an identity element with respect to +;
x + 0 = 0 + x = x.
(b) The element 1 is an identity element with respect to . ; that is,
x .1 = 1 . x = x
3. (a) The structure is commutative with respect to +; that is, x + y = y + x.
(b) The structure is commutative with respect to . ; that is, x .y = y . x.
4. (a) The operator . is distributive over +; that is, x . (y + z) = (x . y) + (x . z).
(b) The operator + is distributive over . ; that is, x + (y . z) = (x + y) . (x + z).
5. For every element x €B, there exists an element x € B (called the
complement of x) such that (a) x + x’ = 1 and (b) x . x' = 0.
6. There exist at least two elements x, y € B such that x ≠ y.
BASIC THEOREMS AND PROPERTIES OF BOOLEAN
ALGEBRA
Duality principle: States that every algebraic expression from the postulates of
Boolean algebra remains valid if the operators and identity elements are
interchanged (OR and AND operators and replace 1’s by 0’s and 0’s by 1’s.)
Basic Theorems
THEOREM 6(b): x(x + y) = x by duality.
Operator Precedence
•(1) parentheses,
•(2) NOT
•(3) AND
•(4) OR.
Simplify the expression
F = x’y’z+xyz+x’yz+xy’z
Develop the Truth Table for the Boolean Expression
•F = x’y’z
BOOLEAN FUNCTIONS
• Boolean algebra is an algebra that deals with binary
variables and logic operations.
• A Boolean function described by an algebraic
expression consists of binary variables, the constants 0
and 1, and the logic operation symbol
F1 = x + y’z
Algebraic Manipulation
Consensus Theorem
•x y + x ′ z + y z = x y + x ′ z
•Duality :
(x+y)(x′+z)(y+z)=(x+y)
(x′+z)
Simplify the following
•abc+ab’c+abc’
•a’bcd’+bcd’+bc’d’+bc’d
•ac+c(a+a’b)
•a’bcd+a’bcd+abd
•a+a’b+ab’
•ab+(ac)’+ab’c(ab+c)
Simplify the following
•xy + x ( wz + wz ′ )
•( yz ′ + x ′ w ) ( xy ′ + zw ′ )
•( x ′ + z ′ ) ( x + y ′ + z ′ )
•x ′ z ′ + xyz + xz ′
•( x ′ y ′ + z ) ′ + z + xy + wz
•w ′ x ( z ′ + y ′ z ) + x ( w + w ′ yz )
•( w ′ + y ) ( w ′ + y ′ ) ( w + x + y ′ z )
•wxy ′ z + w ′ xz + wxyz
Complement of a Function
➢The complement of a function F is F' and is obtained from an interchange
of 0's for 1's and 1's for 0's in the value of F.
➢The complement of a function may be derived algebraically through De
Morgan's theorem.
➢De Morgan's theorems can be extended to three or more variables.
➢De Morgan's theorems for any number of variables can be generalized as:
F
=A′B′C′+B′CD′+A′
BCD′+AB′C′
=B′D′+B′C′+A′CD′
Simplify the Boolean function
F (w, x, y, z)=Σ(0, 1, 3, 8, 9, 10, 11, 12, 13, 14, 15)
•Answer: F(w, x, y, z)=x′y′+x′z+w
•Simplify the Boolean function
•F(w, x, y, z)=Σ (0, 2, 4, 6, 8, 10, 11).
•Answer: F(w, x, y,z)=w′z′+x′z′+wx′y
Simplify the following Boolean functions
F (A, B, C, D)=Σ(4, 6, 7, 15)
F (A, B, C, D)=Σ(3, 7, 11, 13, 14, 15)
F (w, x, y, z)=Σ(2, 3, 12, 13, 14, 15)
F (w, x, y, z)=Σ(11, 12, 13, 14, 15)
F (w, x, y, z)=Σ(8, 10, 12, 13, 14)
F (w, x, y, z)=Σ(0,1,4,5,10,11,14,15)
F (w, x, y, z)=Σ(2,3,6,7,8,9,12,13)
• Functions that have unspecified outputs
for some input combinations are called
incompletely specified functions or
don’t care conditions.
DON’T-CARE
CONDITIONS • A don’t-care minterm is a combination
of variables whose logical value is not
specified
Simplify the Boolean function
F(w, x, y, z)=Σ(1, 3, 7, 11, 15) which has the
don’t-care conditions d (w, x, y, z)=Σ(0, 2, 5)
Simplify the Boolean function
F(w, x, y, z)=Σ(4, 5, 6, 7, 12) with
don’t-care function d(w, x, y, z)=Σ(0, 8, 13)
•F(w, x, y, z)=xy′+xw′
NAND AND NOR IMPLEMENTATION
• Digital circuits are frequently constructed with NAND
or NOR gates.
Two-Level Implementation
Implement the function F=AB+CD
Implement the
following
Boolean
function with
NAND gates:
F (x, y, z)=(1,
2, 3, 4, 5, 7)
Implement the Boolean function
F (x, y, z)=Σ(0, 1, 3, 5, 6, 7) with NAND gates, and
draw the logic diagram of the implementation.
Multilevel NAND Circuits
•F=A (CD+B)+BC′