0% found this document useful (0 votes)
15 views44 pages

IEL - Module - 3 - UPD

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views44 pages

IEL - Module - 3 - UPD

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 44

Module 3: Digital Electronics

Boolean Algebra and Logic Circuits: Binary numbers, Number Base Conversion, octal
& Hexa Decimal Numbers, Complements (1’s and 2’s complement), Basic definitions,
Axiomatic Definition of Boolean Algebra, Basic Theorems and Properties of Boolean
Algebra, Boolean Functions, Canonical and Standard Forms, Other Logic Operations,
Digital Logic Gates
Combinational logic: Introduction, Design procedure, Adders- Half adder, Full adder

8 hrs
Chapter 1.5, 1.2, 1.3, 1.4, 2.3, 2.4, 2.5, 2.5, 2.6, 2.7, 2.8, 4.1, 4.4, 4.5

Number Systems
There are infinite ways to represent a number. The four commonly associated with
modern computers and digital electronics are: Decimal System
Binary System
Octal System
Hexadecimal System

Decimal System- The decimal system is the system which we use in everyday
counting. The number system includes the ten digits from 0 through 9. These digits
are recognized as the symbols of the decimal system. Each digit in a base ten
number represents units ten times the units of the digit to its right.
For example-9542= 9000 + 500 + 40 +2= (9 × 103) + (5 × 102) + (4 × 101) + (2× 100)

Binary System - Computers do not use the decimal system for counting and
arithmetic. Their CPU and memory are made up of millions of tiny switches that can
be either in ON and OFF states. 0 represents OFF and 1 represents ON. In this way
we use binary system. Binary system has two numbers 0 and 1. Binary system is
called base 2 system.

Octal System- The octal system is commonly used with computers. The octal
number system with its 8 digit 0,1,2,3,4,5,6, and 7 has base 8. The octal system uses a
power of 8 to determine the digit of a number’s position.

Hexadecimal System- Hexadecimal is another number system that works exactly


like the decimal, binary and octal number systems, except that the base is 16. Each
hexadecimal represents a power of 16. The system uses 0 to 9 numbers and A to F
characters to represent 10 to 15 respectively.
Number base Conversions

Any number in one number system can be converted into any other number system.
There are the various methods that are used in converting numbers from one base to
another.

Conversions of Decimal to Binary- The method that is used for converting of


decimals into binary is known as the remainder method. We use the following steps
in getting the binary number-
(a) Divide the decimal number by 2.
(b) Write the remainder (which is either 0 or 1) at the right most position.
(c) Repeat the process of dividing by 2 until the quotient is 0 and keep writing the
remainder after
1
each step of division.
(d) Write the remainders in reverse order.

Example- Convert (45)10 into binary number system.

Thus (45)10 = (101101)2

Note- In every number system-


(a) The first bit from the right is referred as LSB (Least Significant Bit)
(b) The first bit from the left is referred as MSB (Most Significant Bit)

Conversions of Decimal Fractions to Binary Fractions- For converting decimal


fractions into binary fractions, we use multiplication. Instead of looking for a
remainder we look for an integer. The following steps are used in getting the binary
fractions-
(a) Multiply the decimal fraction by 2.
(b) If a non-zero integer is generated, record the non-zero integer otherwise record
0.
(c) Remove the non-zero integer and repeat the above steps till the fraction value
becomes 0.
(d) Write down the number according to the occurrence.

Example- Find the binary equivalent of (0.75)10.


Number (to be recorded)
0.75 × 2 = 1.50 -----1
0.50 × 2 = 1.00----- 1
Thus (0.75)10= (0.11)2.
Moreover, we can write (45.75)10= (101101.11)2.

Remark- If the conversion is not ended and still continuing; stop it when same
number repeats again.

Example- Find the binary equivalent of (0.9)10.


Number (to be recorded)
0.9 × 2 = 1.8-----1
0.8 × 2 = 1.6-----1
0.6 × 2 = 1.2-----1
0.2 × 2 = 0.4 -----0
0.4 × 2 = 0.8 -----0
2
0.8 × 2 = 1.6 -----1
0.6 × 2 = 1.2----- 1
0.2 × 2 = 0.4----- 0 stop here
Thus (0.9)10 = (0.11100110)2.

Conversion of Decimal to Octal- In converting decimal to octal, we follow the


same
process of converting decimal to binary. Instead of dividing the number by 2, we
divide
the number by 8.
Example- Convert (45)10 into octal number system.

Thus (45)10= (55)8.


Conversions of Decimal Fractions to Octal Fractions –We follow the same steps
of conversions of decimal fractions to binary fractions. Here we multiply the fraction
by 8 instead of 2.
Example- Find the octal equivalent of (0.75)10.
Number (to be recorded)
0.75 × 8 = 6.00-----6
Thus (0.75)10= (0.6)8.
And (45.75)10= (55.6)8.

Conversion of Decimal to Hexadecimal – We divide by 16 instead of 2 or 8. If the


remainder is in between 10 to 16, and then the number is represented by A to F
respectively.

Example- Convert (45)10 into hexadecimal.

Thus (45)10= (2D)16.

Conversions of Decimal Fractions to Hexadecimal Fractions – Here we multiply


the
fraction by 16 instead of 2 or 8. If the non-zero integer is in between 10 to 16, then
the number is represented by A to F respectively.
3
Example- Find the hexadecimal equivalent of (0.75)10.
Number (to be recorded)
0.75 × 16 = 12.00 C (12 = C)
Thus (0.75)10= (0.C)16.
And (45.75)10= (2D.C)16.

Conversions of Binary to Decimal – In converting binary to decimal, we use the


following steps-
(a) Write the weight of each bit.
(b) Get the weighted value by multiplying the weighted position with the respective
bit.
(c) Add all the weighted value to get the decimal number.

Conversions of Binary Fractions to Decimal Fractions – The conversions of


binary fractions to the decimal fractions are similar to conversion of binary numbers
to decimal numbers. Here, instead of a decimal point we have a binary point. The
exponential expressions (or weight of the bits) of each fractional placeholder is 2 -1, 2-
2
………

4
Conversions of Binary to Octal- We use the following steps in converting binary to
octal-
(a) Break the number into 3-bit sections starting from LSB to MSB.
(b) If we do not have sufficient bits in grouping of 3-bits, we add zeros to the left of
MSB so that all
the groups have proper 3-bit number.
(c) Write the 3-bit binary number to its octal equivalent.

Conversions of Binary Fractions to Octal Fractions- We use the following steps


in converting binary fractions to octal fractions-
(d) Break the fraction into 3-bit sections starting from MSB to LSB.
(e) In order to get a complete grouping of 3 bits, we add trailing zeros in LSB.
(f) Write the 3-bit binary number to its octal equivalent.

Conversions of Binary to Hexadecimal- We convert binary to hexadecimal in the


similar manner as we have converted binary to octal. The only difference is that here,
we form the group of
4bits

5
.
Conversions of Binary Fractions to Hexadecimal Fractions - We convert binary
fractions to hexadecimal fractions in the similar manner as we have converted binary
fractions to octal fractions. The only difference is that here we form the group of 4 –
bits.

Conversions of Octal to Decimal- We follow the same steps of conversion of


binary to decimal. The only difference is that here weight of 8 instead of 2

Conversions of Octal to Binary- We use the following steps in converting octal to


binary-
(a) Convert each octal digit into 3-bit binary equivalent.

6
(b) Combine the 3-bit section by removing the spaces to get the binary number.

Conversions of Octal Fractions to Binary Fractions- We follow the same steps of


conversion of octal to binary.

Conversions of Octal to Hexadecimal- The conversion involves the following


steps-
(a) Convert each octal digit to 3 –bit binary form.
(b) Combine all the 3-bit binary numbers.
(c) Group them in 4-bit binary form by starting from MSB to LSB.
(d) Convert these 4-bit blocks into their hexadecimal symbols.

7
Conversions of Octal Fractions to Hexadecimal Fractions- The method of
conversion is based on the same procedure that we have discussed in conversions of
octal to hexadecimal.

Conversions of Hexadecimal to Decimal- We do the conversion of hexadecimal to


decimal as we have done the conversion of binary to decimal. Here weight of 16
instead of 2.

8
Conversions of Hexadecimal Fractions to Decimal Fractions- We do the
conversion
of hexadecimal fractions to decimal fractions in the similar manner as we have done
the conversion of binary fractions to decimal fractions. Here weight of bit is 16- 1, 16-
2
…….

Conversions of Hexadecimal to Binary-We use the following steps-


(a) Convert each hexadecimal digit to its 4-bit binary equivalent.
(b) Combine all the binary numbers.

Conversions of Hexadecimal Fractions to Binary Fractions -We use the same


steps
of hexadecimal to binary conversion.

9
Conversions of Hexadecimal to Octal- We convert each hexadecimal digit in
binary.
Combine all the binary numbers. Again group them into 3-bit form. Convert the 3-bit
block in octal.

Conversions of Hexadecimal Fractions to Octal Fractions – We follow the same


steps of hexadecimal to octal conversion.

10
1’s and 2’s Complements

11
12
Digital Logic gates

Digital systems are said to be constructed by using logic gates. These gates are the
AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates. The basic operations are
described below with the aid of truth tables.

AND gate

Y=A.B

The AND gate is an electronic circuit that gives a high output (1) only if all its
inputs are high. A dot (.) is used to show the AND operation i.e. A.B Bear in
mind that this dot is sometimes omitted i.e. AB

Switch diagram for AND


In the figure below, A and B are two switches which have been connected in
series (or just cascaded) with the Lamp and source battery. When both
switches are closed, current flows to Lamp and it glows.

A B

V Lamp

OR gate

Y=A+B

The OR gate is an electronic circuit that gives a high output (1) if one or more
of its inputs are high. A plus (+) is used to show the OR operation.

Switch diagram for OR


In the figure, A and B are two switches which have been connected in parallel,
and this is connected in series with the lamp and source battery. When both
switches are open, current does not flow to Lamp, but when any switch is closed
then current flows and lamp glows.

13
A

V Lamp

NOT gate

Y=A

The NOT gate is an electronic circuit that produces an inverted version of the
input at its output. It is also known as an inverter. If the input variable is A,
the inverted output is known as NOT A. This is also shown as A', or A with a
bar over the top, as shown at the outputs. The diagrams below show two ways
that the NAND logic gate can be configured to produce a NOT gate.

Switch diagram
In the figure, A is a switch which has been connected in parallel, with the Lamp
and source battery. When switch is open, current does not flow to Lamp, when
switch is closed then current flows and Lamp glows.

V A Lamp

NAND gate

Y=A.B

14
This is a NOT-AND gate which is equal to an AND gate followed by a NOT
gate. The outputs of all NAND gates are high if any of the inputs are low. The
symbol is an AND gate with a small circle on the output. The small circle
represents inversion.

Switch diagram for NAND

A Lamp
V

NOR gate

Y=A+B

This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate.


The outputs of all NOR gates are low if any of the inputs are high.
The symbol is an OR gate with a small circle on the output. The small circle
represents inversion.
Switch diagram for NOR

A B
V Lamp

EXOR gate

15
Y=AB+AB

The 'Exclusive-OR' gate is a circuit which will give a high output if either,
but not both, of its two inputs are high. An encircled plus sign ( ) is used to
show the E-OR operation.

EXNOR gate

Y=AB+AB

The 'Exclusive-NOR' gate circuit does the opposite to the E-OR gate. It will give a
low output if either, but not both, of its two inputs are high. The symbol is an
EXOR gate with a small circle on the output. The small circle represents inversion.

Universal Gates

Any function can be implemented using only NAND or only NOR gates. Therefore
NAND & NOR gates are called as universal gates.

NAND AS UNIVERSAL GATE

1. Implementing an Inverter Using only NAND Gate

Desired Gate NAND Construction

2. Implementing AND Using only NAND Gates

Desired Gate NAND Construction

16
3. Implementing OR Using only NAND Gates

Desired Gate NAND Construction

4. Implementing NOR Using only NAND Gates

Desired Gate NAND Construction

5. Implementing EX-OR Using only NAND Gates

NAND
Construction

Desired Gate

6. Implementing EX-NOR Using only NAND Gates

Desired Gate NAND Construction

17
NOR AS UNIVERSAL GATE

1. Implementing an Inverter Using only NOR Gate

Desired Gate NOR Construction

2. Implementing OR Using only NOR Gates

Desired Gate NOR Construction

3. Implementing AND Using only NOR Gates

Desired Gate NOR Construction

4. Implementing NAND Using only NOR Gates

Desired Gate NOR Construction

18
5. Implementing EX-OR Using only NOR Gate

Desired Gate NOR Construction

BOOLEAN ALGEBRA AND DE-MORGAN’S THEOREM

The most obvious way to simplify Boolean expressions is to manipulate them in the
same way as normal algebraic expressions are manipulated. With regards to logic
relations in digital forms, a set of rules for symbolic manipulation is needed in order
to solve for the unknowns.

A set of rules formulated by the English mathematician George Boole describe


certain propositions whose outcome would be either true or false. With regard to
digital logic, these rules are used to describe circuits whose state can be either, 1
(true) or 0 (false). In order to fully understand this, the relation between the AND
gate, OR gate and NOT gate operations should be appreciated. A number of rules
can be derived from these relations as follows

LAWS AND RULES OF BOOLEAN ALGEBRA

■ Laws of Boolean Algebra


The basic laws of Boolean algebra-the commutative laws for addition and
multiplication, the associative laws for addition and multiplication, and the
distributive law-are the same as in ordinary algebra.

Commutative Laws
►The commutative law of addition for two variables is written as
A+B = B+A
This law states that the order in which the variables are ORed makes no difference.
Remember, in Boolean algebra as applied to logic circuits, addition and the OR
operation are the same. Fig illustrates the commutative law as applied to
the OR gate and shows that it doesn't matter to which input each variable is applied.
(The symbol ≡ means "equivalent to.").

19
Fig: Application of commutative law of addition.

►The commutative law of multiplication for two variables is


A.B = B.A
This law states that the order in which the variables are ANDed makes no difference.
Fig, ilustrates this law as applied to the AND gate.

Fig: Application of commutative law of multiplication.

Associative Laws :
►The associative law of addition is written as follows for three variables:
A + (B + C) = (A + B) + C
This law states that when ORing more than two variables, the result is the same
regardless of the grouping of the variables. Fig , illustrates this law as applied to 2-
input OR gates.

Fig: Application of associative law of addition.

►The associative law of multiplication is written as follows for three variables:


A(BC) = (AB)C
This law states that it makes no difference in what order the variables are grouped
when ANDing more than two variables. Fig, illustrates this law as applied to 2-input
AND gates.

Application of associative law of multiplication.

Distributive Law:
►The distributive law is written for three variables as follows:
A (B + C) = AB + AC
This law states that ORing two or more variables and then ANDing the result with a
single variable is equivalent to ANDing the single variable with each of the two or
more variables and then ORing the products. The distributive law also expresses the
20
process of factoring in which the common variable A is factored out of the product
terms, for example, AB + AC = A(B + C).
Fig. illustrates the distributive law in terms of gate implementation.

Application of distributive law.

■ Rules of Boolean Algebra


Table lists 12 basic rules that are useful in manipulating and simplifying Boolean
expressions. Rules 1 through 9 will be viewed in terms of their application to logic
gates. Rules 10 through 12 will be derived in terms of the simpler rules and the laws
previously discussed.

Table :Basic rules of Boolean algebra.

Rule 1. A + 0 = A
A variable ORed with 0 is always equal to the variable. If the input variable A is 1, the
output variable X is 1, which is equal to A. If A is 0, the output is 0, which is also equal
to A. This rule is illustrated in Fig , where the lower input is fixed at 0.

Rule 2. A + 1 = 1

21
A variable ORed with 1 is always equal to 1. A 1 on an input to an OR gate produces a
1 on the output, regardless of the value of the variable on the other input. This rule is
illustrated in Fig, where the lower input is fixed at 1.

Rule 3. A . 0 = 0
A variable ANDed with 0 is always equal to 0. Any time one input to an AND gate is 0,
the output is 0, regardless of the value of the variable on the other input. This rule is
illustrated in Fig, where the lower input is fixed at 0.

Rule 4. A . 1 = A
A variable ANDed with 1 is always equal to the variable. If A is 0 the output of the AND
gate is 0. If A is 1, the output of the AND gate is 1 because both inputs are now 1s.
This rule is shown in Fig, where the lower input is fixed at 1.

Rule 5. A + A = A
A variable ORed with itself is always equal to the variable. If A is 0, then 0 + 0 = 0;
and if A is 1, then 1 + 1 = 1. This is shown in Fig.(4-10), where both inputs are the
same variable.

Rule 6. A + A = 1
A variable ORed with its complement is always equal to 1. If A is 0, then 0 + 0 = 0 + 1
= 1. If A is 1, then 1 + 1 = 1+ 0 = 1. See Fig, where one input is the complement of
the other.

Rule 7. A . A = A
A variable ANDed with itself is always equal to the variable. If A = 0, then 0.0 = 0; and
if A = 1. then 1.1 = 1. Fig.(4-12) illustrates this rule.

Rule 8. A . A = 0
22
A variable ANDed with its complement is always equal to 0. Either A or A will always
be 0: and when a 0 is applied to the input of an AND gate. The output will be 0 also.
Fig illustrates this rule.

Rule9. A = A
The double complement of a variable is always equal to the variable. If you start with
the variable A and complement (invert) it once, you get A. If you then take A and
complement (invert) it, you get A, which is the original variable. This rule is shown in
Fig using inverters.

Rule10. A + AB = A
This rule can be proved by applying the distributive law, rule 2, and rule 4 as follows:

A + AB = A( 1 + B) Factoring (distributive law)


= A . 1 Rule 2: (1 + B) = 1
= A Rule 4: A . 1 = A
The proof is shown in Table , which shows the truth table and the resulting logic circuit
simplification.

23
The proof is shown in Table , which shows the truth table and the resulting logic circuit
simplification.

Rule 12. (A + B)(A + C) = A + BC


This rule can be proved as follows:
(A + B)(A + C) = AA + AC + AB + BC Distributive law
= A + AC + AB + BC Rule 7: AA = A
= A( 1 + C) + AB + BC Rule 2: 1 + C = 1
= A. 1 + AB + BC Factoring (distributive law)
= A(1 + B) + BC Rule 2: 1 + B = 1
= A. 1 + BC Rule 4: A . 1 = A
= A + BC
The proof is shown in Table , which shows the truth table and the resulting logic circuit
simplification.

24
Duality Theorem
Duality Principle:

The duality property of Boolean algebra state that all binary expressions remain valid when following two
steps are performed:

Step 1: Interchange OR and AND operators.

Step 2: Replace all 1’s by 0’s and 0’s by 1’s.

Example:

1) x + 0 = x, duality of this is x •1 = x
2) x + x= 1 duality of this is x • x = 0

3) x + y = y + x duality of this is x * y = y * x

DEMORGAN'S THEOREMS

DeMorgan, a mathematician who knew Boole, proposed two theorems that are an
important part of Boolean algebra. In practical terms. DeMorgan's theorems provide
mathematical verification of the equivalency of the NAND and negative-OR gates and
the equivalency of the NOR and negative-AND gates.
One of DeMorgan's theorems is stated as follows:
The complement of a product of variables is equal to the sum of the
complements of the variables,
Stated another way,
The complement of two or more ANDed variables is equivalent to the OR of
the complements of the individual variables.
The formula for expressing this theorem for two variables is

XY = X + Y

DeMorgan's second theorem is stated as follows:


The complement of a sum of variables is equal to the product of the
complements of the variables.
Stated another way,
25
The complement of two or more ORed variables is equivalent to the AND of
the complements of the individual variables,
The formula for expressing this theorem for two variables is

X+Y=XY
Fig.shows the gate equivalencies and truth tables for the two equations above.

As stated, DeMorgan's theorems also apply to expressions in which there are more
than two variables. The following examples illustrate the application of DeMorgan's
theorems to 3-variable and 4-variable expressions.

26
27
28
29
30
31
32
33
STANDARD FORMS OF BOOLEAN EXPRESSIONS
All Boolean expressions, regardless of their form, can be converted into either of two
standard forms: the sum-of-products form or the product-of sums form.
Standardization makes the evaluation, simplification, and implementation of Boolean
expressions much more systematic and easier.
The Sum-of-Products (SOP) Form
When two or more product terms are summed by Boolean addition, the resulting
expression is a sum-of-products (SOP). Some examples are:

Also, an SOP expression can contain a single-variable term, as in


In an SOP expression a single overbar cannot extend over more than one
variable.

The Standard SOP Form

So far, you have seen SOP expressions in which some of the product terms do not
contain all of the variables in the domain of the expression. For example, the
expression

has a domain made up of the variables A, B, C. and D. However, notice that the
complete set of variables in the domain is not represented in the first two terms of the
expression; that is, D or D is missing from the first term and C or C is missing from the
second term.
A standard SOP expression is one in which all the variables in the domain appear in
each product term in the expression. For example, is a
standard SOP expression.

Converting Product Terms to Standard SOP:

Each product term in an SOP expression that does not contain all the variables in the
domain can be expanded to standard SOP to include all variables in the domain and
their complements. As stated in the following steps, a nonstandard SOP expression is
converted into standard form using Boolean algebra rule (A + A = 1): A variable
added to its complement equals 1.

Step 1. Multiply each nonstandard product term by a term made up of the sum of a
missing variable and its complement. This results in two product terms. As you know,
you can multiply anything by 1 without changing its value.

34
Step 2. Repeat Step 1 until all resulting product terms contain all variables in the
domain in either complemented or uncomplemented form. In converting a product
term to standard form, the number of product terms is doubled for each missing
variable.

The Product-of-Sums (POS) Form

A sum term was defined before as a term consisting of the sum (Boolean addition) of
literals (variables or their complements). When two or more sum terms are multiplied,
the resulting expression is a product-of-sums (POS).

A POS expression can contain a single-variable term, as in A(A + B + C)(B + C + D).

35
The Standard POS Form

So far, you have seen POS expressions in which some of the sum terms do not contain
all of the variables in the domain of the expression. For example, the expression

has a domain made up of the variables A, B, C, and D. Notice that the complete set of
variables in the domain is not represented in first two terms of the expression; that is,
D or D is missing from the first term and C or C is missing from the second term.
A standard POS expression is one in which all the variables in the domain appear in
each sum term in the expression. For example,

is a standard POS expression. Any nonstandard POS expression (referred to simply as


POS) can be converted to the standard form using Boolean algebra.

Converting a Sum Term to Standard POS

Each sum term in a POS expression that does not contain all the variables in the
domain can be expanded to standard form to include all variables in the domain and
their complements. As stated in the following steps, a nonstandard POS expression is
converted into standard form using Boolean algebra rule (A A = 0)

Step 1.Add to each nonstandard product term a term made up of the product of the
missing variable and its complement. This results in two sum terms. As you know, you
can add 0 to anything without changing its value.

Step 2.Apply rule 12 from Table 4-1: A + BC = (A + B)(A + C)

Step 3.Repeat Step 1 until all resulting sum terms contain all variables in the domain
in either complemented or noncomplemented form.

36
37
Numerical

Canonical and standard forms

38
39
Numerical

Numerical

40
Combinational Logic: Introduction

Design Procedure

41
Half-adder

42
Full-adder

43
44

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy