Ec2203: Digital Electronics Dept - of ECE - Unit-I
Ec2203: Digital Electronics Dept - of ECE - Unit-I
Ec2203: Digital Electronics Dept - of ECE - Unit-I
Dept.of ECE
_____________________________________________________________
UNIT-I: MINIMIZATION TECHNIQUES AND LOGIC GATES
1. How many bits are required to represent the decimal numbers in the range 0 to 999 using
straight binary code? Using BCD codes?
(999) 10 = ( 1111100111 ) 2 10 bits are required using straight binary code
(999) 10 = ( 1001 1001 1001 ) BCD 12 bits are required using BCD code
2. Show that the excess-3 code is self-complementing.
Self-complementing property: 1s complement of XS-3 code of a decimal digit is equal to XS3 code of 9s complement of the corresponding decimal digit.
Example:
XS-3 code of the decimal digit 2
=
0101
1s complement of 0101
=
1010 --------------------(1)
9s complement of 2
= 9-2 = 7
XS-3 code of 7
=
1010 --------------------(2)
The self- complementing property of XS-3 code is proved from equations (1)&(2)
3. How is the letter A coded as in the ASCII code?
7-bit ASCII code for the Letter A is 1000001
4. What is meant by weighted and non-weighted code?
Weighted codes are those, which obey the positional weighting principles. In weighed code,
each position of the number represents a specific weight.
Example: 8421, 2421 & 84-2-1.
Non-Weighted Codes are codes that are not positionally weighted. Each position of the
number is not assigned a fixed value.
Example: Excess-3 & Gray code
5. Add the decimals 67 and 78 using excess-3 code.
67 = ( 0110 0111 ) BCD = ( 1001 1010 ) XS-3
78 = ( 0111 1000 ) BCD = ( 1010 1011 ) XS-3
-----------------------------1 0100 0101 ( + )
0011 0011 0011
------------------------------( 0100 0111 1000 ) XS-3
------------------------------6. Add the decimals 57 and 68 using 8421 BCD code.
57 = ( 0101 0111 ) BCD
68 = ( 0110 1000 ) BCD
-------------------------1011 1111 ( + )
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
1
Binary:
Gray:
Binary:
B AB (AB)
0 0
1
1 0
1
0 0
1
1 1
0
A B
1
1
1
0
0
1
0
0
A+B
1
1
1
0
A
0
0
1
1
B A+B
0
0
1
1
0
1
1
1
(A+B)
1
0
0
0
A
1
1
0
0
B
1
0
1
0
AB
1
0
0
0
10. Write the maxterm for M45 using minimum number of variables.
(45) 10 = 101101 = A + B + C + D + E + F
11. Use De Morgans theorem to convert the following expressions to one that has only single
variable inversions?
a) Y = (RST+Q)
b) Z = [ (A+BC) (D+EF) ]
c) X = [ (A+C) (B+D) ]
a) Y = (RST+Q) = ( R+S+T ) Q
b) Z = [ (A+BC)(D+EF) ] = (A+BC)+(D+EF)
Z = A(BC) + D(EF) = A(B+C) + D(E+F) = AB+AC+DE+DF
c) X = [ (A+C) (B+D) ] = (A+C) + (B+D) = AC+BD
12. Define distributive law.
a) X (Y + Z) = XY + XZ
b) X + YZ = (X + Y) (X + Z)
13. Simplify the expression: X = (A+B)(A+B+D)D
X = (A+B)(A+B+D)D = (AA + AB + AD + AB + BB + BD)D
X = ( 0 + AB + AD + AB + B + BD)D
X = (AD + B(A + A + 1 + D))D = (AD + B)D
X = ADD + BD = 0 + BD
X = BD
00
01
11
10
1
1 0
1
0
3
20. Give the
0 canonical SUM form of F
2
F=(x1+x
0 2+x3)(x1+x2+x3)(x1+x2+x3)(x1+x2+x3)
4
F=(000)
(101) (110) (111) = M0 M5 M6 M7
1
F=M
(0,
5, 6, 7) ----------This is product form of F. Collecting the missing terms
5
1
in the Product form of F derives the SUM form of F.
7
SUM form:
6
F=m
(1, 2, 3, 4) = m1+m2+m4+m3
F=001+010+100+011
F=x1x2x3+x1x2x3+x1x2x3+x1x2x3
0
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
5
00
01
11
10
Quad (2,3,6,7) = B
Quad (1,3,5,7) = C
1
0
1 1
1
1
3
0
2
1
4
25. Find the1complement of x+yz.
F = x +5 yz
F = (x7+1 yz ) = x (y + z)
F=B+C
26. For a 6switching function of n variables, how many distinct minterms and maxterms are
possible?
2n distinct minterms and maxterms are possible
27. If A and B are Boolean variables and if A=1 and (A+B) = 0, find B.
If B = 0 ; (A + 0) = (1+0) = 1 =0
If B = 1 ; (A + 1) = (1+1) = 1 =0
So, B takes the value of both 0 & 1
28. Express the switching function f(BA) = A in terms of minterms.
f(BA) = A(1) = A ( B+B ) = AB + AB
29. Apply DeMorgans theorems to simplify (A+BC).
(A+BC) = A (BC) = A (B + C)
30. Plot the expression on K-map: F(w,x,y) =m (0, 1, 3, 5, 6) + d (2, 4)
xy
w
10
00
01
11
10
1
0
1 1
1
X
3
X
2
31. Simplify A+AB+A+B
1
4
A+AB+A+B
0 = A+A + AB + B
5
1
________________________________________________________________________
7
St. Josephs college of Engineering/
ISO9001:2008
6
St. Josephs Institute of Technology
6
------------------(X+X=1)
------------------(X+1 = 1)
32. Give an example of a switching function for which the MSP form is not unique.
F = m (0, 1, 3, 4, 6) is an example of a switching function for which the MSP
form is not unique
Proof:
Pair (1,3) = wy -------EPI
Pair (4,6) = wy -------EPI
Pair (0,1) =wx -------PI
(or)
Pair (0,4) = xy -------PI
xy
w
10
00
01
11
10
1
0
1 1
1
F = wy + wy + wx
0
(or)
3
F = wy + wy + xy
1
2
0
4
So, for the given example the MSP form is not unique.
0
5
1 Express x + yz as the sum of minterms.
33.
7
x + yz = x(1) + (1)yz = x(y + y) + (x + x)yz = xy + xy + xyz + xyz
6
= xy(1) + xy(1) + xyz + xyz = xy(z + z) + xy(z + z) + xyz + xyz
= xyz + xyz + xyz + xyz + xyz + xyz
= xyz + xyz + xyz + xyz + xyz
------------------(x + x = x)
=111 + 110 + 101 + 100 + 011
=m7 + m6 + m5 + m4 + m3
x + yz =m(3, 4, 5, 6, 7)
34. Express f(a,b,c) = a+bc as sum of minterms
.
A B C B
BC
A+BC
0 0 0
1
0
0
0 0 1
1
1
1
f(a,b,c) = m(1, 4, 5, 6, 7)
0 1 0
0
0
0
0 1 1
0
0
0
1 0 0
1
0
1
1 0 1
1
1
1
1 1 0
0
0
1
1 1 1
0
0
1
35. Prove that a+bc = (a+b)(a+c)
a+bc = (a+b)(a+c)
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
7
B
0
0
1
1
0
0
1
1
C
0
1
0
1
0
1
0
1
BC
0
0
0
1
0
0
0
1
A+BC
0
0
0
1
1
1
1
1
A+B
0
0
1
1
1
1
1
1
A+C
0
1
0
1
1
1
1
1
(A+B)(A+C)
0
0
0
1
1
1
1
1
b) Z = (A+B)(A+B)
Output
Rule
((XX)'(YY)')' = (X'Y')'
Idempotent
= X''+Y''
DeMorgan
= X+Y
Involution
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
8
Output
Rule
((XX)'(YY)')'
=(X'Y')'
Idempotent
=X''+Y''
DeMorgan
=X+Y
Involution
=(X+Y)'
Idempotent
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
9
H
X
0
0
1
1
Y
0
1
0
1
Z
0
0
0
1
Negative logic : In negative logic system the low level L represents logic1
0
Y
1
0
1
0
Z
1
1
1
0
49. Show how a two input NOR gate can be constructed from two input NAND gates.
__
A
A.B
B
A
__
A.B
1
1
1
2. CMOS memory chips has high noise immunity than bipolar memory chips.
54. Why TTL logic family is faster then DTL?
Ans. TTL logic family is faster than DTL because in Transistor logic family the propagation delay per
gate is less than or equal to 10 ns except for low power low speed L, TTL. Where, as in Diode transistor
logic the propagation delay per gate in 30 ns. Hence, the speed of TTL logic family is fast as compared
to DTL logic family.
55. Why totem pole outputs cannot be connected together?
Ans. It is because when one output is high the other goes low and wired ANDed connection are used,
then a large current from supply +V will flows to ground through high state gate transistor and low state
gate transistor. Thus, large current will flow which damages the output transistors of totem pole TTL
arrangement.
56. Define noise margin. What is its importance?
Ans. Noise margin is also known as noise immunity. It is defined as the ability of a logic circuit to
tolerate noise without causing any unwanted changes in the output. Also, the quantative measure of
noise immunity is known as noise margin. It is important because it cause the voltage to drop into the
invalid range so as to avoid the effects of noise voltage.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
12
58. How do open collector outputs differ from totem pole 0/Ps?
Ans. Following is the table of comparison between open collector outputs
61. Explain the difference between Boolean operations OR and XOR. Use truth
tables to described how these operations differ.
Ans.
PART-B
1. Draw and explain the operation of TTL inverter.
Ans.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
14
2. Draw the circuit of an open collector TTL NAND gate and explain its operation
Ans. The circuit diagram of 2-input NAND gate open-collector TTL gate is as shown:
Working:
Case.1 : When A = 0,B = 0
When both inputs A and B are low, both functions of Q1 are forward biased and Q2 remains off. So no
current flows through R4 and Q3 is also off and its collector voltage is equal to Vcc i.e. Y = 1
Case2 : When A = 0, B = 1 and
Case 3: When A = 1, B = 0
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
15
So, when A = 0 and B = 1 or (+5V). T1 conducts and T2 switch off. Since T2 is like an open switch, no
current flows through it. But the current flows through the resistor R2 and into the base of transistor
T3 to turn it ON. T4 remains OFF because there is no path through which it can receive base current.
The output current flows through resistor R4 and diode D1. Thus, we get high output.
When both inputs are high i.e. A = B = 1 or (+ 5V), T2 is ON and it drives T4 turning it ON. It is noted
that the voltage at the base of T3 equals the sum of the base to emitter drop of T4 and
of T2..
The diode D1 does not allow base-emitter junction of T3 to be forward-biased and hence, T3 remains
OFF when T4 is ON. Thus, we get low output.
It works as TTL NAND gate.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
16
Case 1:
When A = 0, B = 0
Now D1 and D2 both conduct, hence D3 will be off and make Q2 off. So its collector voltage rises and
make Q3 ON and Q4 off; Hence output at Y = 1 (High)
Case 2 and Case 3:
If A = 0, B = 1 and A = 1, B=0
In both cases, the diode corresponding to low input will conduct and hence diode P3 will be OFF
making Q2 OFF. In a similar way its collector voltage rises Q3 ON and Q4 OFF. Hence output
voltage Y = 1 (High).
Case 4: A = 1, B = 1
Both diodes D1 and D2 will be off. D3 will be ON and Q2 will ON making Q4 also ON. But
Q3 will be OFF. So output voltage Y = 0.
All the four cases shows that circuit operates as a NAND gate.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
17
7. What is K-map? Why we need K-maps? Give the various types of K-map.
Ans. K-map i.e. Karnaugh map is simply a graphical method for representing a Boolean fraction. The
Karnaugh map is a systematic method for simplify and manipulating Boolean expression. It is used to
simplify a logic expression or to convert a truth table to its corresponding logic circuit. It is used for the
minimization of switching functions but upto six variables. For more than six variable it becomes
complex or cubersome.
The K-map for n-Boolean variable switching function consists of
the normal or standard term i.e. one minterm or maxterm.
Need of K-maps: We need K-map for representing Boolean function through graphical method.
Because K-map simplify and manipulates a Boolean expression. So to solve or simplify a Boolean
expression, we use K-map. K-map can be used for problems involving any number of input variables
(upto six variables) which is not easily solve by Boolean Algebra. Types of K-map :
Types of K-maps commonly used are
1. Two variable K-map
2. Three variable K-map
3. Four variable K-map
4. Five variable K-map
5. Six variable K-map
1 Two variable K-map
= M formula is used where, n = Number of variables and M = Number of squares.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
19
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
20
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
21
Solution.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
22
Using boolean,
So
Using boolean,
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
23
Solution.
Using boolean,
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
24
Using boolean,
Using boolean,
10. Solve the following using K-map and verify by using boolean algebra:
(i) F (A, B, C, D) =
Solution
(ii) F (A, B, C, D) =
Solution.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
26
(iii) F (A, B, C, D) =
Solution
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
27
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
28
A+ 1 = 1
Case I, Let A = 0
0+ 1 = 1
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
29
1+1=2
Hence, A + 1 = 1
(ii) A + A = A
Case I, Let A = 0
0+0=0
1+1=1
Hence, A + A = A
16. Realize and OR and NOT using NOR gates.
Ans. (i) AND gate using NOR gates:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
30
19. Simplify the expression 2. =AB + AC + ABC (AB + C). Implement using
minimum number of NAND gates.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
31
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
32
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
33
Circuit diagram:
22. Realize OR, AND, NOT, NOR gates using NAND gates only.
Ans. (i) OR gate using NAND only:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
34
(0, 1, 2, 3, 5, 7, 8, 9, 11,14)
Ans.
24. Given below a four variable Karnaugh map with four entities. Write the corresponding
Boolean expression.
Ans. Firstly, fill given os in K-map, to get the expression in POS form.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
36
27. Simplify the function using Karnaugh map and implement using minimum Lumber of logic
gates.
F = (2, 9, 10, 12, 13) + D(1, 5, 14)
What are the limitations of Karnaugh map?
Ans.
K-map:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
37
Implementation using minimum number of logic gates can be obtained from the minimized output of the
given function.
Implementation is as shown:
Limitations of K-map:
For large number of variables i e more than six variables the K-map becomes cumbersome It is difficult
to solve the output of K-map having 7 8 and more variables as it covers more space and need large time
for calculations Also, the K-map for 6 variables is possible and for more variables Q-M method or
tabular minimization method is used
28. Minimize the following four variable functions using sum-of-products
Karnaugh Maps
f(a, b, c, d) = f1(a, b, c, d)
f2(a, b, c, d)
where f1 = a d + bc + b c d +
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
38
Ans.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
39
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
40
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
41
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
42
Thus, output
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
43
30. Design a combinational circuit which has four inputs and one output. The output is equal to 1
when
(i) All the inputs equal to 1 or
(ii) None of the inputs equal to 1.
(iii) An odd number of inputs are equal to 1.
Draw the logic circuit using minimum number of NAND gates.
Ans.
Truth Table
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
44
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
45
(0,1,3,4,6,7,8,9, 14,15)
Step 1
Step 2
Step 3
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
46
Step 4
Step 5
Ans.
Step 1:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
47
Step 2:
Step 3:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
48
Step 4:
Step 5:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
49
Outputs
Inputs
Combinatio
nal circuit
Outputs
Combin
ational
circuit
Memor
y
element
It consists of a combinational circuit to
which memory elements are connected
to form a feedback path.
The outputs dependent not only on the
present input variable but they also
depend upon the past value of the input
variable.
Sequential circuits are slower than the
combinational circuits.
Sequential circuits are comparatively
harder to design
Example: Serial Adder, Counter, shift
register
B
0
1
0
1
Implementation table
y
1
1
1
0
I0
I1
Logic diagram
1
A
2X1
MUX
3
B
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
50
MUX
2n Intputs
2 Outputs
2 X1
1 X 2n
MUX
DEMU
X
n selection
inputs
n selection
inputs
Single
output
Encoder
2n Intputs
n Intputs
2n Outputs
n X 2n
2
3
4
Decode
r
A decoder is a combinational
circuit that
converts binary information from n input
lines to a maximum of 2n unique output
lines.
A decoder accepts a set of binary inputs
and activates only the output that
corresponds to that input number.
Example: Binary to Octal decoder
n Outputs
2n X 1
Encode
r
An encoder is a digital circuit that
performs the reverse operation of a
decoder. An encoder has 2n input lines
and n output lines.
An encoder generates the binary code
corresponding to the input activated.
Example: Octal to Binary encoder.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
51
B
0
1
0
1
Implementation table
y
0
0
0
1
Logic diagram
I0
I1
0
A
2X1
MUX
B
0
A
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
52
B
0
1
0
1
Implementation table
y
0
1
1
1
I0
I1
Logic diagram
A
1
2X1
MUX
A
1
B B.
8. State the condition to check the equality of two n-bit binary numbers A and
A = An-1 . A3 A2 A1 A0
B = Bn-1 . B3 B2 B1 B0
The two numbers are equal if all pairs of significant bits are equal.
The equality relation of each pair of bits can be expressed logically with an equalence function
(X-NOR):
Xi = AiBi + AiBi
i = 0, 1, 2, 3, .(n-1)
The condition to check the equality of two n-bit binary numbers is
R(A=B) = Xn-1 Xn-2 .. X3X2X1X0
If R(A=B) =1, the two numbers A and B are equal, otherwise they are unequal.
9. Draw a 1 to 2 demultiplexer circuit.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
53
A3 AIC
A1 draw
A0 theB3logicB2diagram
B1 B
11. Using a single
of0 a 4-bit comparator.
2 7485,
IA > B
4-bit
Comparator
IA < B
IC 7485
________________________________________________________________________
+5V
IA = Bof Engineering/
St. Josephs college
ISO9001:2008
St. Josephs Institute of Technology
0V
54
OA > B
OA < B
OA = B
DECODER
2n Outputs
1X2
DEMU
X
n Intputs
2n Outputs
nX2
Decode
r
n selection
inputs
ABC
Output
BC
000
1
A
00
01
11
10
001
0
10
________________________________________________________________________
010
0
St. Josephs011
college of Engineering/
ISO9001:2008
1
0
0
St. Josephs100
Institute of Technology
1
1 1
1
101
1
0
110
1
3
55
111
1
1
2
1
4
5
7
Y=A + (BOC)
15. Realize XOR function using only NAND gates.( OR ) Implement Y = A'B + AB' using only
NAND gate
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
56
A
B
A
B
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
57
19. Draw the logic diagram and truth table for a half subtractor.
Truth Table
X
20. How many binary outputs would a 3 digit BCD-to-Binary converter have?
12 outputs
21. Define Combinational circuit?
A combinational circuit consists of logical gates whose outputs at any time are
determined from the present combination of inputs. A combinational circuit performs an
operation that can be specified logically by a set of Boolean functions. It consists of input
variables, gates and output variables.
22. What is an ALU?
An ALU is an arithmetic logical Unit. It performs all arithmetical like(Addition,
Multiplication, subtraction, division) operations.
23. Give the truth table for half adder and write the expression for sum and carry?
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
58
A half adder is a logical circuit that performs an addition operation on two binary digits.
The half adder produces a sum and a carry value which are both binary digits.
The drawback of this circuit is that in case of a multibit addition, it cannot include a carry.
24. Obtain the expression for sum and carry output of a full adder and implement the same.
S=z
(X
Y)
= Z'(XY'+X'Y) + Z(XY'+X'Y)'.
= Z'(XYM-X'Y) + Z(XY+X'Y').
= XY'Z'+X'YZ'+XYZ+X'Y'Z.
C = XY'Z+X'YZ+XY.
25. Obtain an expression for difference and borrow outputs of a full subtractor.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
59
29. Explain half subtractor with the help of its internal circuit
Ans. To subtract two numbers i e two Input variables A and B we get two output variable i e difference
D and borrow Bo It is known as half subtractor Functional diagram is shown:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
60
PART-B
1.Implement half adder circuit using 4 : 1 MUX or multiplexers only.
Ans. Truth table of half adder is as shown:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
61
Implementation:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
62
K-Maps:
For 82:
For B1:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
63
For Bo:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
64
Truth Table
E3 = A + BD + BS
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
65
For E1
For E0
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
66
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
68
Ans
Logic Circuit:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
69
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
70
11. Obtain the truth table for a combinational circuit that accepts a three bit number and
generates an output binary number equal to the square of the input number.
Ans. Truth table is as shown for inputs and the corresponding square outputs.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
71
Ans.
Ans.
15. Define a demultiplexer Show how to convert a decoder into a demultiplexer indicate how to
add a strobe to this system
OR
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
73
It can be converted into demultiplexer if D1 i e data Input line is converted to all the AND gates
simultaneously.
Stroke signal is also added to all the AND gates simultaneously as shown in fig.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
74
Strobe signal is similar to enable signal for chip selection. It is an active low signal. If high signal is
applied to stroke the chip will be disable because i = 0 goes to all the AND gates And we receive no
output at D0, D1, D2 and D3
Difference between DMUX and MUX:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
75
Circuit Diagram:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
76
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
77
19.Give the logic diagram of 4-to-2 encoder and explain its importance in design of digital system.
Ans. Encoder is a device which encodes the input of any code to output of any code.
Encoder may have
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
78
Circuit diagram
Encoder has very much importance in digital system. With the help of it, we can convert decimal to any
other system like binary or BCD etc.
20. Draw the circuit of a 3 bit binary subtractor and explain its operation with the help of an
example
Ans. Let the three inputs are A, B and C. Output will difference (D) = (A B C) and borrow (Bo).
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
79
Circuit diagram:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
80
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
81
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
82
The circuit diagram for single bit or one bit comparator is as shown in figure:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
83
K-map
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
84
We will get correct BCD sum from output of Adder-2. Which will be in BCD form.
25. Write note on 3 bit binary magnitude comparator.
Ans. 3 bit binary magnitude comparator:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
85
= 64. Thus, six variable k-maps are required to solve for A > B,
26. Realize the circuit of a full adder in terms of two half adders from its truth table.
Ans. The full adder can be designed from two half adders like this:
Let the three inputs are A, B and Cin. Two outputs are S (sum) and carry (Co).
27. What are Magnitude comparators Explain the design of magnitude comparators with the
help of a suitable example
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
86
K-map
Similarly, 7485 is TTL 4 bit magnitude comparator. Thee inputs can be extended to compare more than 4
bits.
28. Use a 8 x 1 MUX to implement the logic function
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
87
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
88
J
0
0
1
1
0
0
1
1
K
0
1
0
1
0
1
0
1
Q(t+1)
0
0
1
1
1
0
1
0
Q(t+1)
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
89
0
1
0
1
0
1
X
X
X
X
1
0
D
0
1
0
1
Q(t+1)
0
1
0
1
T
0
1
0
1
Q(t+1)
0
1
1
0
16. Name the two problems that may arise in ripple counters or asynchronous counters.
1. Cumulative flip-flop Delay
2. There is a possibility of glitches occurring at the output of decoding gates used with a
ripple counter.
17. Why is parallel counter referred to as synchronous?
In parallel counter all flip-flops are triggered by the same clock at the same time. All flipflops are synchronized by the common clock signal.
18. Draw a Mod 6 counter using feedback technique.
In asynchronous up counter each flip-flop is triggered by the normal output of the previous
flip-flop.
Whereas in asynchronous down counter each flip-flop is triggered by the complemented
output of the previous flip-flop.
Shift register counter: A shift register with the serial output connected back to the serial
input is called shift register counter. Because of such a connection, special specified
sequences are produced as the output. The most common shift register counters are the ring
counter and the Johnson counter.
30. If a serial-in-serial-out shift register has N stages and if the clock frequency is f, what will
be the time delay between input and output?
Time delay between input and output = N / f
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
94
0
0
0/ 0
1/ 1
1
1
1/ 0
0
1
0/1
1/ 0
0/ 1
1
0
1/ 1
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
95
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
97
46. The clock frequency is 2MHz. How long will it take to serial load the eight shift register?
Ans.
n=8
Time taken to load serially the eight bit will be given by
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
99
In case of RS two inputs are there hence four possible combined are used. But in case of D flip-flop it
has only one input so and two combination are used. Also, in D flip-flop what ever we want to store will
be put as input. If we want to store 1. 1 is the input and if 0 is input, 0 will be stored in D flip-flop.
51. Differentiate between synchronous and asynchronous counters.
Ans.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
100
Thus MOD-64.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
101
It is same for synchronous counter unless no. of flip-flop, where the maximum frequency of
synchronous counter is
58. Specially where Master-slave J-K flip flop is preferred for use.
Ans. Master slave J-K flip-flop is preferred where we want to avoid multiple toggling and race around
conduction. In this flip-flop, master F/F is positive edge triggered and slave flip-flop is negative edge
triggered. The slave ftp-flop followed the master flip-flop.
59. Applications of D Flip Flop. ________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
102
PART-B
1. Explain T-flip-flop with suitable internal structure.
Ans. The functional block diagram of T flip-flop is as shown in fig.
For R:
Implementation:
3. For the given state diagram, draw the state reduction diagram.
Stats Diagram:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
104
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
105
From fig. when enable is 1, the D input will given a 0 at either the
or
inputs of NAND
latch. Thus, 0 becomes same as D. Thus, when enable is 1 the output Q will look exactly like D.
Hence, the D latch is said to be transparent latch.
5. Give the truth-table for each flip-flop type: (a) J-K ; (b) D ; and (c) T
Ans. Truth table of J-K Flip-flop:
2. D Flip-flop:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
106
Toggle means 0 changes to 1 and 1 changes to 0 with the passage of each clock
6. Draw logic circuit diagram for 3-bit synchronous up-down counter with clear input, start input
and done output. The counter should produce done output after completion of counter in either
direction.
Ans. 3-bit synchronous up-down counter:
7. Draw the logic circuits and the excitation tables for the T, JK flip-flops.
Ans.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
107
Edge Triggered S-R Flip-flop: In edge-triggered S-R flip-flop, the change of state in flip-flop takes
place only when edge (either +ve or -ve) of clock pulse takes place.
10. What is the difference between level and edge triggering? Explain the working of master slave
J-K flip flop.
Ans.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
108
Master slave JK flip-flop : The master slave flip-flop may be designed using R-S, D and JK flip-flops.
Following figure shows the functional block diagram of master slave JK flip- flop:
In figure m is used for Master and S is used for Slave
Working:
Case 1: When positive clock pulse goes on leading edge is applied, the CLKm is 1 and CLKs is 0, then
data transferred to Qm is held upto CLK = 1
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
109
11. Draw a master-slave J-K flip-flop system. Explain its operation and show that the race-around
condition is eliminated.
Ans.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
110
A master-slave J-K flip-flop is constructed from two flip-flops. One flip-flop acts as a master and the
other as a slave and the overall circuit is thus, called as master-slave flip-flop. It make use of J-K master
flip-flop and S-A slave flip-flop. The master is positive edge triggered and slave is negative edge
triggered. Therefore, master responds to J-K inputs before the slave. V
If J = 1 and K = 0, the master sets on the positive clock edge. The high output of the master drives the J
input of the slave, so when the negative clock edge arrives, the slave sets, copying the action of the
master.
If J = 0 and K = 1, the master resets on the positive clock edge. The high output of master i.e.
to R input of the slave. Therefore, slave resets on arrival of negative clock edge.
goes
If J = K = 1 for master, it toggles on positive clock edge and the slave them toggles on the negative clock
edge.
When J = K = 1
Let clock = 1 then master is active and slave is in active Therefore, output of master toggle. So S and R
also will be inverted
When clock 0 Master becomes in active and slave is active Therefore, output of the slave will toggle
These changed outputs are again returned back to the master inputs as feedback is connected in fig. But
here clock is 0, the master is still in active So it does not respond to these changed outputs. This voids
multiple toggling which is responsible for Race Around Condition Hence by using Master-Slave J K
Flip-flop RACE AROUND CONDITION will be avoided or eliminated.
12. Explain what is universal shift register? Explain its working.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
111
13. Draw the logic symbols for T and RS flip-flops. Explain the function of each type of flip-flop.
Ans. RS Flip-flop: Its logic symbol is as shown in fig.
Its internal structure is as shown:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
112
Its functioning can be explained with the help of truth table as shown:
Case I. When both the inputs i.e. S = R = 0
The data inside the flip-flop do not change i.e. if 0 was the previous data we get 0 as output data and
if 1 was previously stored in flip-flop we get 1 as output data. Hence, no change state.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
113
T flip-flop is also known as Toggle flip-flop It is a modification of the JK flip-flop The T flip flop is
obtained from a JK flip flop by connecting both inputs, J and K together
When T = 0, both AND gates are disabled and hence these is no change in the output When T = 1 (i.e. J
= 1 and K = 1) output toggles i.e. with the passage of each clock the output changes from 0 to 1 and 1
to 0 i.e. it toggles
Its truth table is as shown in fig
14. Draw the circuit of an S-R flip-flop using NAND gates. Modify it to include clock Derive J-K
circuit from S-R flip-flop circuit and explain its truth table
Ans. S-R Flip-flop using NAND gates:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
115
Logic diagram:
15. Design a J-K counter that goes through states 2, 4, 5, 7, 2, 4 is the counter-self starting.
Ans.
K-maps
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
116
Circuit
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
117
K-map for T:
17. Twisted ring counter is also known as Johnson counter. It is an application of shift register.
Following figure shows the circuit diagram for its operation.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
118
Ans. Operation : Initially a short negative pulse is provided to clear all the which resets the data to 000
Put all others as dont care conditions i.e. 10, 11, 12, 13, 14 and 15 to be dont care.
K-map for TA:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
120
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
121
19.Write short note on the following: Counter design with state equation and state diagrams.
Ans. Counter designing make use of static diagrams and state equations.
State Diagram : The graphical representation of different states of a counter is known as state diagram.
Let us consider an example of 3 bit Ripple counter (up and down)
The numbers written inside the circles are the state numbers and the arrows shows the direction of
counter. In fig. (a) 0 is the initial state i.e. counter starts from 0 and count upto 7 then again 0 and so
on.
So it is up counter.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
122
Ans. Race-Around Condition : When J and K both inputs are high i.e. J = K = I, the output will keep
toggling indefinitely. This multiple toggling in J-K F/F is called Race-Around Condition. It can be
eliminated by using master slave J-K flip-flop.
1. Master slave J-K Flip-flop
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
123
Working
shows the bidirectional shift register When
Fig
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
124
From 0 to 29 the states are valid states and 30 and 31 states are invalid states.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
125
Circuit diagram
Using T flip flop is as shown in figure
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
127
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
128
K-maps
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
129
K-maps
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
130
The programmable array logic (PAL) is a programmable logic device with a fixed OR array
and a programmable AND array.
The Programmable Read Only Memory (PROM) is a programmable logic device with a
fixed AND array and a programmable OR array.
Architecture: PAL
input
Programmable
AND array
Fixed OR
Array
Fixed AND
array
Programmable
output
Architecture: PROM
input
OR Array
output
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
131
Programmable Array Logic (PAL) is a programmable logic device with a fixed OR array
and a programmable AND array. Because only the AND gates are programmable, the PAL is
easier to program, is not flexible as the PLA. It uses array logic symbol.
Programmable Logic Array (PLA) is a programmable logic device with a Programmable
AND array and a programmable OR array. PLA can be used to implement complex logic
circuits. It uses conventional symbol. It is more flexible than PAL.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
133
PART-B
1. Explain the Bipolar RAM Cell.
Ans. Bipolar transistor is used in bipolar ROM cell. It is as shown in figure.
When base of transistor is not connected with a row no current flows to the base and it represents a
storage of logic 0. On the other hand, when base is connected the flowing to the base of transistor and
it represents a storage of logic 1.
Q 2. Design the OR Matrix or OR array.
Ans. These gives the logical sum terms of output from AND arrays as shown in fig.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
135
Here X are the fuse links used in diagrams. The interconnections without X are unplugged fuses or
blown off fuse links.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
136
Ans. Let the input variables are A, B and C. The K-map minimization is as shown:
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
137
Carry = C = AB.
5. What is PAL?
Ans. PAL: PAL is known as programmable array logic. It is a programmed logic device with OR arrays
fixed and AND arrays programmable. Because only AND gates are programmable, the PAL is easier to
program, but it is not as flexible as the PLA (programmable logic array). For example : We have a
boolean function given by
Y (A, B, C,) =
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
138
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
139
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
140
9. A certain memory stores 8 k x 16 bit words. How many data input lines, data output lines and
address lines does it have ? What is its capacity in bytes?
Ans. Memory is M x N form where M are memory locations and N are data input lines.
Here
M = 8K
N = 16
10. What are the various types of ROMs? Discuss their relative advantages and disadvantages.
Ans. ROM : In ROM, read and write operation cannot be periormed with equal ease always read
operation is easier than write operation. It is used to store information which is (I) Permanent group
includes ; masked ROM and PROM (ii) Semi permanent group include; EPROM and EE-PROM. Five
types of ROM-masked ROM, PROM, EPROM, EE-PROM and flash memory are described in the
following paragraphs.
Masked ROM : Programming is done through masking and metallization. process. Manufactures
provides programmed ROM, user cannot write into this memory.
PROM : Programmable Read Only Memory user can program (write) the PROM through special
PROM programmer. It can be written (programmed) once only, user cannot rewrite this memory.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
141
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
142
In this circuit T1 and T3 are loads T2 and T4 are resistances. T9 is used for write operation and T10 for
read operation. X and Y lines are used for addressing the cell. When X = 1 T5 and T6 will be ON when
Y = 1, T7 and T6 will be ON.
(i) Write operation: To make write operation, T9 is turned ON If the data is logic 1, then T3 is turned
ON If data is logic 0 then T1 is ON
(ii) Read operation: For read operation MOSFET (T10) is turned ON This will connect Data-line to
Data-out Hence complement of stored data is read.
14. Explain the architecture and function of programmable logic arrays
Ans. Programmable logic devices (PLD) are special type of ICs which can be programmed by the user
and hence a combinational or sequential circuit can be implemented with these PLO s are of various
types as programmable array logic (PAL) and programmable logic array (PLA) etc The block diagram of
PLA device is as shown:
Input Buffers : These buffers amplify the input signal. These are also used to avoid the loading of
sources connected at the input
AND Matrix: It can be used to implement the product terms in the SOP form Each AND has two matrix
has connections are shown by (X) mark on the line.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
145
00
01
11
10
1 b1
c1
d1
c2
________________________________________________________________________
d
St. Josephs college of2 Engineering/
ISO9001:2008
St. Josephs Institute aof2 Technology
b2
148
00/ 0
01/ 0
10/ 0
10/ 0
11/ 1
01/ 0
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology 11/ 1
150
Xi
Inputs
Zk
Outputs
Combinational
Logic for
Outputs and
Next State
State Register
Clock
State
Feedback
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
152
(N D + Reset)/0
Reset/0
N D + Reset
Reset
0
Reset/0
0
[0]
Reset
N/0
5
N D/0
5
D/0
ND
[0]
N/0
10
10
D
D/1
[0]
N D/0
N+D/1
ND
N+D
15
15
[1]
Reset/1
Reset
Mealy Machine
Moore Machine
Outputs depend on
state AND inputs
Outputs change
synchronously with
state changes
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
153
Comb.
Logic for
Outputs
Combinational
Logic for
Next State
(Flip-flop
Inputs)
Zk
Outputs
Clock
state
feedback
0
0/0
0
[0]
0
1/0
0/0
1
0
1
1/1
[0]
1
2
[1]
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
154
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
155
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
156
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
157
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
158
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
159
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
160
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
161
A K-map for each combinatorial logic function which has an output should be used. Redundant
prime implicants should be added to the K-Map (circuit) [shown in RED above], which will guarantee
that all single-bit input changes are covered. Multi-level functions will be reduced to "two-level"
functions, and analyzed by the K-map approach. The procedure for designing a static-hazard-free
network is a straightforward application. The key is to place the function in such a form that the transient
output function guarantees that every set of adjacent 1's in the K-map are covered by a term, and that no
terms contain both a variable and its complement. The former condition eliminates 1-hazards and the
latter eliminates 0-hazards. Dynamic hazards happen because of multiple paths in a multilevel network,
each with its own asymmetric delay.Circuits which contain multiple paths of the same signal should be
re-clocked
before
the
signal
is
used
by
a
circuit.
Static 0 hazards occur in 'Product-Of-Sums' [POS] implementations, but do not occur in 'Sum-OfProducts' [SOP] implementations. Static 1 hazards occur in SOP implementations, do not occur in POS
implementations.
Y= AB+B'C
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
163
A
S
B
A
B
BUF
F
YS
DA
B
AND
2
AND 2
A
Y
X1
A
B
OR
2
Y
X2
AB
00
01
11
10
S=0
S=1
00
01
11
10
S=0
S=1
The blue oval shows the redundant term used to cover the
transition between product terms.
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
165
________________________________________________________________________
St. Josephs college of Engineering/
ISO9001:2008
St. Josephs Institute of Technology
166