18cs33 Ade m2 Notes
18cs33 Ade m2 Notes
18cs33 Ade m2 Notes
VISION
To be recognized as a center of knowledge dissemination in Computer Science and Engineering
by imparting value-added education to transform budding minds into competent computer
professionals.
MISSION
M1. Provide a learning environment enriched with ethics that helps in enhancing problem
solving skills of students and, cater to the needs of the society and industry.
M2. Expose the students to cutting-edge technologies and state-of-the-art tools in the
many areas of Computer Science & Engineering.
M3. Create opportunities for all round development of students through co-curricular and
extra-curricular activities.
M4. Promote research, innovation and development activities among staff and students.
PROGRAMME OUTCOMES
Text book 1:Part B: Chapter 8,Chapter 9 (Sections 9.1 to 9.6) RBT: L1, L2
Module – 4
Introduction to VHDL: VHDL description of combinational circuits, VHDL Models for 08 8 Hours
multiplexers, VHDL Modules. Latches and Flip-Flops: Set Reset Latch, Gated Latches,
Edge-Triggered D Flip Flop 3,SR Flip Flop, J K Flip Flop, T Flip Flop, Flip Flop with
additional inputs, Asynchronous Sequential Circuits
Text book 1:Part B: Chapter 10(Sections 10.1 to 10.3),Chapter 11 (Sections 11.1 to
11.9) RBT: L1, L2
Module – 5
Registers and Counters: Registers and Register Transfers, Parallel Adder with accumulator, 8 Hours
shift registers, design of Binary counters, counters for other sequences, counter design using
SR and J K Flip Flops, sequential parity checker, state tables and graphs
Text book 1:Part B: Chapter 12(Sections 12.1 to 12.5),Chapter 13(Sections 13.1,13.3
RBT: L1, L2
COURSE OBJECTIVES:
Explain the use of photoelectronics devices, 555 timer IC, Regulator ICs and uA741
1 opamp IC
CO:4 Develop simple HDL programs and Explain Gates and flip flops
2.0 Introduction 1
References 29
Question Bank 30
University Questions 32
18CS33 Analog & Digital Electronics
MODULE 2
2.0: Introduction
Analog electronics is an electronics system where signal change continuously. Analog signal is a signal whose
amplitude can take any value between given limits. A continuous signal. An analog circuits operates on
continuous signals.
Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices
that use or produce them. Digital signal is a signal whose amplitude can have only given discrete values between
defined limits. A signal that changes amplitude in discrete steps. A digital circuits operates on discrete signals.
Clock is a periodic, rectangular waveform used as a basic timing signal. Duty cycle for a periodic digital signal,
the ratio of high level time to the period or the ratio of low level time to the period. A table that shows all of the
input output possibilities of a logic circuit is called truth table.
A digital circuit having one or more input signals but only one output signal is called a gate. Logic circuit is a
digital circuit, a switching circuit, or any kind of two-state circuit that duplicates mental processes.
The most basic gates are -the NOT gate (inverter), the OR gate and the AND gate.
NOT gate: A gate with only one input Truth table Logic diagram
and a complemented output.
Any logic function/ logic circuit can be implemented using only one kind of gate then such gates are called
universal logic gates. NOR gate and NAND gate are called universal logic gates.
NOR gate: A gate with two or more inputs. Truth table Logic diagram
The output is low when any input is high.
Active-low refers to the concept in which a signal must be low to cause something to happen or to indicate that
something has happened. Assert means to activate. If an input line has a bubble on it, you assert the input by
making it low. If there is no bubble, you assert the input by making it high.
In a positive logic system, binary 0 stands for low voltage and binary 1 for high voltage. In a negative logic
system, binary 0 stands for high voltage and binary 1 for low voltage. Assert means to activate. If an input line
has a bubble on it, you assert the input by making it low. If there is no bubble, you assert the input by making it
high. Active-low refers to the concept in which a signal must be low to cause something to happen or activate
the circuit. Active-high refers to the concept in which a signal must be high to cause something to happen or to
activate the circuit.
Combinational Circuits are circuits made up of different types of logic gates. The output of the combinational
circuit depends on the values at the input at any given time. The circuits do not make use of any memory or
storage device. A literal is a variable or its complement.
A minterm of n variables is a product of n literals in which each variable appears exactly once in either true or
complemented form, but not both. A maxterm of n variables is a sum of n literals in which each variable appears
exactly once in either true or complemented form, but not both.
Minterm expansion or a standard sum of products (SOP): A Boolean equation that is the logical sum of
logical products. This type of equation applies to an AND-OR circuit.
Maxterm expansion or standard product of sums (POS): A Boolean equation that is the logical product of
logical sums. This type of equation applies to an OR-AND circuit.
Example:
Example: Combinational Circuit with Truth Table is given write SOP and POS expressions.
An Incompletely specified function is a Boolean function that only define output values for a subset of its inputs
- i.e. a Boolean function who’s output is a don't care for at least one of its input combinations. The X’s in the
truth table indicate that we don’t care whether the value of 0 or 1 is assigned to F.
In SOP we use m to denote the required minterms and d to denote the don’t-care minterms.
F(A,B,C) = Σ m(0, 3, 7) + Σ d(1, 6)
In POS we use M to denote the required maxterms and D to denote the don’t-care maxterms.
F(A,B,C) = Π M(2, 4, 5) · Π D(1, 6)
Write minterm and maxterm expansions for the following truth table.
The minimum sum of products corresponds directly to a minimum two-level gate circuit which
(i) has a minimum number of gates and
(ii) a minimum number of gate inputs.
The minimum sum of products is not necessarily unique; that is, a given function may have two different
minimum sum of products forms, each with the same number of terms and the same number of literals.
Given a minterm expansion, the minimum sum-of products form can often be obtained by the following
procedure:
(i) Combine terms by using 𝑋𝑌′+ 𝑋Y =(𝑌′+𝑌)=𝑋. Do this repeatedly to eliminate as many literals as possible.
A given term may be used more than once because X+X=X.
(ii) Eliminate redundant terms by using the theorems of Boolean Algebra.
A minimum product of sums expression for a function is defined as a product of sum terms which
(i) has a minimum number of terms, and
(ii) of all those expressions which have the same number of terms, has a minimum number of literals.
Unlike the maxterm expansion, the minimum product of sums form of a function is not necessarily unique. Given
a maxterm expansion, the minimum product of sums can often be obtained by a procedure similar to that used in
the minimum sum of products case, except that the theorem (𝑋+𝑌′)(𝑋+𝑌)= 𝑋 is used to combine terms.
Simplification of Boolean function reduces the gate count required to implement the circuit, the circuit works
faster and circuit require less power consumption.
Switching/Boolean functions can generally be simplified by using the algebraic techniques. The disadvantages
of algebraic procedure usage are
(i) The procedures are difficult to apply in a systematic way,
(ii) It is difficult to tell when we have arrived at a minimum solution.
Karnaugh map/K map is a method simplifying and manipulating switching functions. K map method is faster
and easier to apply than other simplification methods.
Karnaugh map of a function specifies the value of the function for every combination of values of the independent
variables.
The number of cells in 2 variable K-map is four (22), since the number of variables is two. The following figure
shows 2 variable K-map and location of minterms on a 2 variable K-map.
The number of cells in 3 variable K-map is eight (23), since the number of variables is 3. The following figure
shows 3 variable K-map and location of minterms on a 3 variable K-map.
OR
The number of cells in 4 variable K-map is sixteen (24), since the number of variables is 4. The following figure
shows 4 variable K-map and location of minterms on a 4 variable K-map.
Two adjacent 1s in the K-map is called a pair and it eliminate the variable that changes form.
Sample of pair
A quad is a group of four ls that are horizontally or vertically adjacent and a quad eliminates two variables and
their complements.
An octet is a group of 8 ls that are horizontally or vertically adjacent and an octet eliminates three variables and
their complements.
Overlapping of groups: We are allowed to use the same 1 more than once.
Rolling of Map: Groups may wrap around the table. The leftmost cell in a row may be grouped with the rightmost
cell and the top cell in a column may be grouped with the bottom cell. Roll and overlap to get largest group.
Eliminating redundant group: A groups of 1s or 0s whose all members are overlapped by other groups is called
redundant group. After encircling all possible group, eliminate any redundant group if any. We don’t consider
this group while writing the simplified equations from the K-map.
Any single 1 or any group of 1’s which can be combined together on a map of the function F represents a product
term which is called an implicant of F. Several implicants of F may be possible. A product term implicant is
called a prime implicant if it cannot be combined with another term to eliminate a variable.
The following procedure can then be used to obtain a minimum sum of products from a Karnaugh map:
The following figure shows the flowchart for determining a minimum sum of products using a Karnaugh map
with an example.
Solve S= F(A,B,C)=Σ m(0, 1, 3, 5, 6, 7, 11, 12, 14) using Kmap and implement uisng basic, nand only and norly
gates.
OR
Solve S=F(A,B,C,D)=Σ m(0,1, 2, 4, 5,6, 8,9,10,12,13) using Kmap and implement uisng basic, nand only and norly
gates.
Solve S=F(A,B,C,D)=ΠM(0,6,7,8,12,13,14,15) using K map to get minimum POS expression and implement uisng
basic, nand only and norly gates.
Solve F(A,B,C,D)=ΠM(0,3,4,7,810,12,14).ΠD(2,6) using K map to get minimum POS expression and implement
uisng basic, nand only and norly gates.
S= F(A,B,C,D)=ΠM(0,2,3,8,12,14,15).ΠD(1,4,5,11)
Limitations of K map:
Complexity of K-map simplification process increases with the increase in the number of variables
K map is manual technique and simplification process heavily depends on the human ability.
The Quine-McCluskey method provides a systematic simplification procedure which can be readily programmed
for a digital computer. The Quine-McCluskey method reduces the minterm expansion (standard sum-of-products
form) of a function to obtain a minimum sum of products.
Quine-McClusky method involves preparation of two tables; one determines prime implicants and the other
selects essential prime implicants to get minimal expression. Prime implicants are expressions with least number
of literals that represents all the terms given in a truth table. Prime implicants are examined to get essential prime
implicants for a particular expression that avoids any type of duplication.
In order to apply the Quine-McCluskey method to determine a minimum sum-of-products expression for a
function, the function must be given as a sum of minterms.
Step 1 − Arrange the given min terms in an ascending order and make the groups based on the number of ones
present in their binary representations. So, there will be at most ‘n+1’ groups if there are ‘n’ Boolean variables
in a Boolean function or ‘n’ bits in the binary equivalent of min terms.
Step 2 − Compare the min terms present in successive groups. If there is a change in only one-bit position, then
take the pair of those two min terms. Place this symbol ‘_’ in the differed bit position and keep the remaining bits
as it is.
Step 3 − Repeat step2 with newly formed terms till we get all prime implicants.
Given a function F of n variables, a product term P is an implicant of F if for every combination of values of the
n variables for which P = 1, F is also equal to 1.
A prime implicant of a function F is a product term implicant which is no longer an implicant if any literal is
deleted from it.
Step 4 − Formulate the prime implicant table/chart. It consists of set of rows and columns. Prime implicants can
be placed in row wise and min terms can be placed in column wise. Place ‘1’ in the cells corresponding to the
min terms that are covered in each prime implicant.
Step 5 − Find the essential prime implicants by observing each column. If the min term is covered only by one
prime implicant, then it is essential prime implicant. Those essential prime implicants will be part of the simplified
Boolean function.
Step 6 − Reduce the prime implicant table by removing the row of each essential prime implicant and the columns
corresponding to the min terms that are covered in that essential prime implicant. Repeat step 5 for Reduced
prime implicant table. Stop this process when all min terms of given Boolean function are over.
Find the minimum SOP for the function f (a, b, c, d) =∑m(0, 1, 2, 5, 6, 7, 8, 9, 10, 14) using Quine McCluskey
method.
Determine the essential prime implicants using QM method for the function f(A, B, C,
D)=∑M(0,1,2,3,10,12,11,13,14,15)
Find the minimum SOP for the function f (A, B, C) =∑m(2, 6, 7) using Quine McCluskey method.
Petrick’s method is a technique for determining all minimum sum-of-products solutions from a prime implicant
chart. The example discussed above has two minimum solutions. As the number of variables increases, the
number of prime implicants and the complexity of the prime implicant chart may increase significantly. In such
cases, a large amount of trial and error may be required to find the minimum solution(s).
Petrick’s method is a more systematic way of finding all minimum solutions from a prime implicant chart than
the method used previously. Before applying Petrick’s method, all essential prime implicants and the minterms
they cover should be removed from the chart.
6. For each of the terms found in step 5, count the number of literals in each prime implicant and find the
total number of literals. Choose the term or terms which correspond to the minimum total number of
literals, and write out the corresponding sums of prime implicants.
Find the minimum SOP form for the function f(a,b,c)=∑m(0,1,2,5,6,7) using pettricks method.
The two solutions with the minimum number of prime implicants are obtained by choosing rows P1, P4, and P5
or rows P2, P3, and P6.
F = a′b′ + bc′ + ac
OR
F = a′c′ + b′c + ab
Given an incompletely specified function, the proper assignment of values to the don’t-care terms is necessary in
order to obtain a minimum form for the function. Modified Quine-McCluskey method is used to obtain a
minimum solution when don’t-care terms are present. In modified Quine-McCluskey method the don’t-care terms
are treated like required minterms when finding the prime implicants and don’t-care columns are omitted when
forming the prime implicant chart. If extra prime implicants are generated because of the don’t-cares, the extra
prime implicants are eliminated in the prime implicant chart.
Find the minimum SOP for the function F(A, B, C, D) = Σ m(2, 3, 7, 9, 11, 13) + Σ d(1, 10, 15) using Quine
McCluskey method.
(The don’t-care columns are omitted when forming the prime implicant chart)
A technique called Map Entered Variable (MEV) or Entered Variable Map (EVM) is used to increase the effective
size of k-map. It allows a smaller map to handle large number of variables. This is done by writing output in
terms of input. It allows a smaller map to handle large number of variables. This is done by writing output in
terms of input.
1 1
0 0
3 MEV If function equals MEV, enter MEV
1 1
0 1 ̅̅̅̅̅̅
4 ̅̅̅̅̅̅
MEV If the function is compliment of MEV, enter MEV
1 0
0 X
5 X If function equals X, enter X
1 X
0 0
6 0 f=0 for MEV=0 and f=X for MEV=1,enter 0
1 X
0 X
7 0 f=X for MEV=0 and f=0 for MEV=1,enter 0
1 0
0 1
8 1 f=1 for MEV=0 and f=X for MEV=1,enter 1
1 X
0 X
9 1 f=X for MEV=0 and f=1 for MEV=1,enter 1
1 1
1) Write all the variables (original and complimented forms are treated as two different variables) in the map as
0, leave 0’s, minterms and don’t cares as it is and obtain the SOP expression.
2) Select one variable and make all occurrences of that variable as 1, write minterms (1’s) as don’t cares, leave
0’s and don’t cares as it is. Now, obtain the SOP expression by multiply the obtained SOP expression with
the concerned variable.
3) Repeat step 2 for all the variables in the k-map.
4) SOP of MEV/EVM is obtained by ORing all the obtained SOP expressions.
Example – A 3-variable function can be defined as a function of 2-variables if the output is written in terms of
third variable.
Consider a function F(A,B,C) = (0,1,2,5)
Solve S=F(A,B,C,D)=Σm(2,3,4,5,13,15) + Πd(8, 9, 10, 11) using MEV to get minimum SOP expression.
References
Books:
1. Charles H Roth and Larry L Kinney, Analog and Digital Electronics, Cengage Learning, 2019
2. Donald P Leach, Albert Paul Malvino & Goutam Saha, Digital Principles and Applications, 8th Edition,
Tata McGraw Hill, 2015.
Website Links:
1. https://www.geeksforgeeks.org/introduction-of-k-map-karnaugh-map/
2. https://www.tutorialspoint.com/digital_circuits/digital_circuits_k_map_method.htm
3. https://www.tutorialspoint.com/digital_circuits/digital_circuits_quine_mccluskey_tabular_method.htm
4. https://www.geeksforgeeks.org/variable-entrant-map-vem-in-digital-logic/
5. https://www.allaboutcircuits.com/technical-articles/everything-about-the-quine-mccluskey-method/
Video Links:
1. https://youtu.be/5c16CswEG2A
2. https://youtu.be/lo3pTQ09QGI
3. https://youtu.be/PInDAFIQQNI
4. https://youtu.be/224iz7EAEXA
5. https://youtu.be/-A2aoqWckvs
6. https://youtu.be/CoMQLMqVFTI
7. https://youtu.be/1tYF6SyKLjs
8. https://youtu.be/LgS8HaHEcWM
University Questions:
2018 January
2019 July