Digital Book For Gate
Digital Book For Gate
ADVANCED
DIGITAL LOGIC
Short Notes
Simplification and K-map
Q1. Which of the following is the K-Map produces exactly the same outputs as the
most simplified version of the following K-Map?
(a) (b)
(c) (d)
Answer: (d)
Solution:
Given K - Map
Answer: (c)
Solution:
Answer: (6)
Solution:
Answer: (d)
Solution:
Check Option (a) (3, 10)
F=
F = ABD + A BD + BCD
SOP form
F=
SOP form F = BD + BD
F = BD + BD
Here in option (d) the new minimal SOP and POS are equal to the functions.
Option (d) is Correct.
Q6. Consider the symbolic K-map shown below, where F and G are Boolean
variables, and F' and G' represent their respective Boolean complements.
Clearly, the above K-map gives rise to different Boolean functions of x1, x2, x3
and x4 for different combinations of Boolean values of F and G. In other
words, the K-map represents a Boolean function of x1, x2, x3, x4, F and G.
Let us call this function H(x1, x2, x3, x4, F, G). Suppose F and G are
functions of {x1, . . . x4}. Specifically, suppose F = (x1 + x4) and G =
(x1⊕x2⊕x4). How many sum terms of the minimal POS form of the Boolean
function ϕ represented by the symbolic K-map given above? _______________
Answer: 4
Q7. Consider the following K-maps where blank cells are don’t care:
What is F⊕G?
(a) Σ(2,6,8,11,13,14) + d(3,5,7,9,12,15)
(b) Σ(2,6,8,13) + d(3,5,7,9,11,14,12,15)
(c) Σ(2,6,8) + d(3,5,7,9,12,15)
(d) Σ(0,1,4) + d(3,5,7,9,11,14,12,15)
Answer: (a)
Solution:
Answer: 1
Solution:
f (A, B, C, D) = (0, 9, 3, 4, 9,11) D (6, 7, 10, 12, 13)
Answer: (b)
Solution:
K – Map for 5 – variables
Q10. The function J(a, b, c) has three inputs a, b, c and one output. Output is true
when two or more inputs are true; otherwise, output is false. That is,
J(1,1,0)=J(1,0,1)=J(0,1,1)=J(1,1,1)=1. otherwise, J=0.
Which of the following is/are true?
(a) Minimal SOP for J(a,b,c) = ab + bc + ac
(b) xJ(a,b,c) + x’y + yJ(a,b,c) = xJ(a,b,c) + x’y
(c) J(a,b,c) is functionally complete
(d) None of the above
Q14. Given a Boolean function f(A, B, C) = m(1,3,6)+ d(), how many don't care
terms need to be l's to make f(A,B,C)= AC?_________
Answer: 1
Solution:
Answer: (b)
Solution:
( A C )( A B ) A A AB AC BC AB AC BC
0 AC BC C ( A B ) 1 C ( A B )( A B )
C ( AA AB AB BB) C ( AB AB B ) C (( A A) B B )
C ( B B ) BC
Q16. [MSQ]
Select the Boolean function(s) equivalent to x + yz, where x, y, and z are
Boolean variables, and + denotes logical OR operation.
(a) x + z + xy
(b) (x + y) (x + z)
(c) x + xy + yz
(d) x + xz + xy
S1 S1 S2 = S1 + S1S2 = S1 + S2
S1 S2 S2 = S1S2 + S2 = S1 + S2
(b)
F = S1.S2 . S1 .S2 = 0
Option (b) is incorrect.
(C)
F = S1 S2 = S1 + S2
Option © is incorrect.
(d)
F = S1 + S2 (S1 + S2 )
= S1 + S2 + S1 + S2
F = S1.S2 + S1 .S2 = S1 S2
Option (d) is correct.
Q18. Consider the following Circuit
f1 = x0 + x1
f2 = f1.x2 = (x0 + x1) x2 = x0x2 + x1x2
f3 = f2 + x3 = x0x2 + x1x2 + x3) x4
f4 = x0x2x4 + x1x2x4 + x3x4
f4 matches with option © by putting n = 4 in option ©
Option © is correct.
Q19. If the functions w, x, y and z are as follows.
w = R + PQ + RS
x = PQRS + PQRS + P QRS
y = RS + PR + PQ + PQ
z = R + S + PQ + PQR + P QS
then
(a) w = z, x= y
(b) w = z, x = z
(c) w = y
(d) w = y = z
Answer: (b)
Solution:
w = R + PQ + RS
y = RS + R + PQ + PQ
y = RS + (PR) (P Q) (PQ)
y = RS + (P + R) (P + Q) (P + Q)
y = RS + (P + R) (PQ + QP + Q)
y = RS + (P + R) Q
y = RS + PQ + RQ
Z = R + S + PQ + PQR + P QS
Z = R + S + (PQ ) (PQR) (P QS )
Z = R + S + (P + Q) (P + Q + R) (P + Q + S)
Z = R + S + (P + Q) (PQ + PS + PQ + Q + QS + PR + QR + RS)
Z = R + S + (P + Q) (Q + PS + PR + RS)
Z = R + S + (P + Q) (Q + PS + PR) {By Consensus theorem}
ADVANCED DIGITAL LOGIC Page18
Z = R + S + PQ + PR + P QS + PQ R
Z = R + S + PQ
Z = R + S + PQ
Answer: (a)
Solution:
AB + AC + BC = AB + AC
It’s dual form is :
(A + B) (A + C) (B + C) = (A + B) (A + C)
{No change in variable and priority of variable remains constant}
Option (a) is Correct.
Q21. Boolean expression for shaded portion is
Answer: (c)
Solution:
F = (0, 3, 4)
(a) PQ S X + P Q S X + Q RS X + QR S X
(b) Q S X + Q S X
(c) Q S X + Q SX
(d) Q S + Q S
Answer: (b)
Solution:
F = X (SQ) + X (SQ)
F = QSX + QSX
Option (b) is correct.
Q24. In a car security system, we usually want to connect the siren in such a way
that the then will activate when it is triggered by one or more sensors. In
addition, there will be a master switch to turn the system on or off.
Answer: (c)
Solution:
Q25. A vending machine that dispenses drinks has four buttons: C (coffee), T (tea),
M (milk), S (sugar). Create the logic for the signal that will dispense a stirring
stick, based on the following rules:
1. This machine is meant to dispense beverages only: coffee, tea, milk, coffee
Answer: (a)
Solution:
Number C T M S STICK
0 0 0 0 0 0
1 0 0 0 1 X
2 0 0 1 0 0
3 0 0 1 1 X
4 0 1 0 0 0
5 0 1 0 1 1
6 0 1 1 0 1
7 0 1 1 1 1
8 0 0 0 0 0
9 1 0 0 1 1
10 1 0 1 0 1
11 1 0 1 1 1
12 1 1 0 0 X
13 1 1 0 1 X
14 1 1 1 0 X
15 1 1 1 1 X
Answer: (d)
Solution:
(a)
f (x, y) = x + y
x y x x+y
0 0 1 1
0 1 1 1
1 0 0 0
1 1 0 1
Check for 5 properties
1. 0 preserve false
2. 1 preserve true
As 1 preserve property is satisfied.
Option (a) is not functionally complete.
(b) f (x, y, z) = xy + yz
x y z y xy yz xy + yz
0 0 0 1 0 0 0
0 0 1 1 0 0 0
0 1 0 0 0 0 0
0 1 1 0 0 1 1
1 0 0 1 1 0 1
1 0 1 1 1 0 1
1 1 0 0 0 0 0
1 1 1 0 0 1 1
1. 0 – preserve
As 0 preserve property is satisfied.
Option © is not functionally complete.
As Option (a, b, c) all are not functionally complete.
Option (d) is correct.
Q27. If X = 1 in the logic equation [X + Z{Y + (Z + XY)}] {X + Z (X + Y)} = 1, then
(a) Y = Z
(b) Y = Z’
(c) Z = 0
(d) Z = 1
Answer: (c)
Solution:
[X + Z {Y + (Z + XY)}] {X + Z (X + Y)]
[1 + Z {Y + (Z + XY)}] {X + Z (X + Y)}
X + Z (X + Y) = 1
1 + Z (1 + Y) = 1
0+Z=1
Z=0
Option © is correct.
Q28. Minimize the following Boolean function
F = ABC’D’ + ABC’D + AB’C’D + ABCD + AB’CD +ABCD’ + AB’CD’
(a) AB + AC + AD
(b) BC + BD + AD +AC
(c) CD + AB + AC
(d) AB + BC
Answer: (a)
Q29. How many minimum number of NAND gate are required to implement
F = AB + AD +AC
Option (a) is correct.
Data for the next three questions, the logic circuit below has three inputs, X, Y
and Z, and two outputs, F and G.
Q30. Which of the following is the minterm list form of a Boolean function F(X, Y,
Z)?
(a) XYZ (3, 5, 6, 7) (b) XYZ (1, 2, 4, 7)
(c) XYZ (0, 3, 5, 6) (d) XYZ (0, 1, 2, 4)
F = (XY)(XZ) (YZ)
F = XY + XZ + YZ
F = XY + XZ + YZ
F = XYZ (3, 5, 6, 7)
and F = xyz (0, 1, 2, 4)
Option (a, d) are correct.
Q31. Which of the following is the minterm list form of a Boolean function G(X, Y,
Z)?
(a) XYZ (3, 5, 6, 7) (b) XYZ (1, 2, 4, 7)
(c) XYZ (0, 3, 5, 6) (d) XYZ (0, 1, 2, 4)
G = (X ⊙Y) ⊙Z
G = (XY + XY) ⊙ Z
G = (XY + XY)Z + (XY + XY) (Z)
G = XYZ + XY Z + X Y + X Y (Z)
G = XYZ + XY Z + X Y Z + X YZ
Answer: (d)
Solution:
Answer: 8
Solution:
Answer: 7
Solution:
Solution:
Y = ABC D + AB C D + AB C (0) + A B C (0) + ABC (0) + A BC (0) + ABC (0) +
ABC (1) + ABC (0)
Y = AB C D + A BC D + ABC (D + D)
Y = AB CD + A BCD + AB C D + AB CD
0011 0111 1101 1100
3 7 13 12
Y = m (3, 7, 12, 13)
Option (b) is Correct.
Q36. Consider the following multiplexer where I0, I1, I2 and I3 are four data input
lines selected by two address line combinations A1A0 = 00, 01, 10, and 11,
respectively, and F is the output of the multiplexer. EN is the enable input,
find the function F(x, y, z) implemented by the below circuit.
(a) m(6)
(b) m(3, 7)
(c) m(0, 2, 4, 5, 6)
(d) None of the above
Solution:
f1 = m (2, 4, 10, 11, 12, 13, 14)
f2 = m (1, 3, 8, 10, 11)
f3 = m (2, 4, 5, 6, 7)
All the output lines of the chip will be high except pin 8, when all the inputs
1, 2, and 3
(A) are high; and G, G2 are low
(B) are high; and G is low G2 is high
(C) are high: and G, G2 are high
(D) are high: and G is high; G2 is low
Answer: (c)
Solution:
Answer: (d)
Solution:
y = ab + a b = a b
Circuit is same as two input XOR gates with a and b inputs.
Option © is correct.
Q40. If a 4-to-1 MUX (shown in the figure) realizes a three-variable function
𝑓 (𝑥, 𝑦, 𝑧) = 𝑥𝑦 + 𝑥𝑧, then which of the following is correct?
(a) I0 = x, I1 = 0, I2 = x, I3 = x
(b) I0 = 0, I1 = 1, I2 = y, I3 = x
(c) I0 = x, I1 = 1, I2 = 0, I3 = x
(d) I0 = x, I1 = 0, I2 = x, I3 = z
Answer: (a)
F = xy + xz
Option (a) is correct.
Q41. For an MUX to function as a full adder, what should be the input provided to
the I0, I1, and I2, I3 if the A and B are the select lines?
Our Approach:-
Check all options one by one and if any options K – Map matches with K –
Map of sum than only that option will be correct.
(a)
F = AB C + A BC + A BC + AB C
F = AB C + A B C + A BC + ABC
Answer: (a)
Solution:
y = bc a + b c a + bca + bca
y = abc + ab c + a bc + abc
Answer: (d)
Solution:
En = An Bn
Answer: (a, c)
Solution:
(c) (d)
Answer: (b)
Solution:
Y = C (A + B) (B C)
(a)
Y = AB (B + C) C
Not matches with Option (a)
ADVANCED DIGITAL LOGIC Page40
(b)
Y = (A + B) B C . C
OR
Y = C (A + B) C (matches)
Option (b) is Correct.
Q46. We have the combinational circuit shown below with part of its logic hidden. It
takes in one 1-bit input: A, and produces one 1-bit output: Out. The
relationship between A and Out is shown in the accompanying truth table.
What is the functionality of the hidden logic in the circuit? You can denote the
two inputs to the hidden logic as In1 and In2.
(a) AND (b) NOR (c) NAND (d) OR
Out = A.A = 0
Option (a) is correct.
(b)
Out = A + A = 1 = 0
Out = A. A = 0 = 1
Option © is incorrect.
(d)
Out = A + A = 1
Option (d) is incorrect.
Q47. Consider the following decoder with the logic gates:
Answer: (a)
Solution:
G = m (1, 2, 5, 6) = m (0, 3, 4, 7)
Option (a) is correct.
Q48. Which of the following is the correct truth table for the circuit shown below?
Answer: (b)
Solution:
f = x (g) + x (g)
f = x (yz + y z) + x (yz + yz)
f = xy z + x y z + xyz + xyz
Truth table of f is :-
x y z f
0 0 0 0 0
1 0 0 1 1
2 0 1 0 1
3 0 1 1 0
4 1 0 0 1
5 1 0 1 0
6 1 1 0 0
7 1 1 1 1
(b)
(c)
f = z (xy) + z (x + y)
f = xyz + xz + yz
f = x (y z + z) yz
f = x (y + z) + yz
f = xy + yz +xz
Option (a) is correct.
(b)
f = y (xz) + y (x + z)
f = xyz + xy + yz
f = x (yz + y) + yz
f = xy + xz + yz
Option © is correct.
Data for the next three questions, the circuit below uses a 2-bit magnitude
comparator, a 4:1 multiplexer and a 1:4 demultiplexer. Inputs are A, B, C, D and
outputs are P, Q, R, S.
Answer: (a)
Solution:
A B C D MUX output P
0 0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1 0
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0 1
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1 1
for P to be 1,
S1 = 0 and S0 = 0 and MUX output = 1
Now for S1 = 0 and S0 = 0 that means X is neither less than Y and X is neither
greater than Y it means X = Y.
For X = Y
X1X0 = Y1Y0
A B =CD
4 possible case ABCD = 0000 0101 1010 1111
Conclusion: In truth table whenever AB = CD
Than P = A
{Because S1 and S0 of both MUX and DEMUX are set zero}
P is high at ABCD = 1010 and 1111
SOP expression for is m (10, 15)
Q51. Which of the following is the simplified SOP expressions for Q?
(a) Σm(10, 15)
Answer: (c)
Solution:
For Simplified SOP expression for Q, S1 = 0 and S0 = 1 in DEMUX and S1 is
connected with X> Y Pin of comparator and so is connected with X < Y Pin of
Comparator that means,
S1 = of MUX = value of X < Y = So of DEMUX = 1
S0 = of MUX = value of X > Y = S1 of DEMUX = 0
Answer: (d)
Solution:
Answer: (b)
Solution:
Answer: (a)
Solution:
Answer: (a)
Solution
Let sum output of FA1, FA2, FAA IS x1, x2, xn respectively.
X = x1 + x2 + ⋯ + xn
For X to be high (x = 1)
x1 + x2 + … . + xn = 1
x1 + x2 + . . . xn = 0
It means x1 = 0 and x2 = 0 . . . and xn = 0
Now observe the FA1
Sum = A B C
Carry = AB + BC + CA
Sum = 1 A0B0 = x1 = 0
A0B0 1 = 0 {As XOR is associative}
A0B0 = 0 {As 1 A = A}
A 0 B0 = 0
A 0 B0 = 0
It means A0B0 = 00 or 11
A0 = B0
Similarly in generalized way we can say that
A0 = B0
A1 = B1
.
.
.
An = Bn
A=B
Hence Option (a) is correct.
ADVANCED DIGITAL LOGIC Page54
Q58. For vectors A = a3a2a1a0 and B = b3b2b1b0, the output Yof the circuit is
(a) A = B
(b) A > B
(c) A < B
(d) A >= B
Answer: (d)
Q59. Given F (a, b, c, d) = Σm (0, 1, 3, 4, 8, 9, 10, 11, 12, 14), which of the following
is/areVALID expression for F?
(a)F (a, b, c, d) = (b' + d') (a + c' + d)
(b) F (a, b, c, d) = c'd' + ad' + b'd
(c) F (a, b, c, d) = Π(2, 5, 6, 7, 13, 15)
(d) F (a, b, c, d) = (bd + a'cd')'
F = cd + b d + a d
Option (b) is correct.
F = bd + a cd
F = F = bd + a c d
Option (d) is correct.
F = bd + a cd
F = (bd) (acd)
F = (b + d) (a + c + d)
Option (a) is correct.
From K – Map,
F = m (0, 1, 3, 4, 8, 9, 10, 11, 12, 14)
F = m (2, 5, 6, 7, 13, 15)
ADVANCED DIGITAL LOGIC Page55
Option © is correct.
Hence Option (a, b, c, d) all are correct.
Q60. The output F of the digital circuit shown can be written in the form(s)
(a) A. B (b) A+ B
(c) A + B (d) A . B
(a) F= m(0,1,3,5,9,10,14)
(b) F= m(2,3,5,7,8,12,13)
Answer: (d)
Solution
F = AB C + A BD + A BC + AB CD
F = AB C + A BD + A BC + AB CD
F = m (2, 3, 5, 7, 8, 9, 12)
Q62. The propagation delays of the XOR gate, AND gate and multiplexer (MUX) in
the circuit shown in the figure are 4 ns, 2 ns and 1 ns, respectively.
Answer: (a)
Q63. For the given combinational network with three inputs A, B, and C, three
intermediate outputs P, Q, and R, and two final outputs X = PQ = (0, 2, 4)
and Y = PR = (1, 2, 4, 6) as shown in the figure.
Answer: (b)
P Q = {0, 2, 4}
It implies P must contain 0, 2, 4
P = (0, 2, 4} [minimum set of P] - - - - - -(1)
P R = {1, 2, 4, 6}
Answer: (b)
Solution:
Q65. A 1-bit Full Adder circuit takes 70 ns to produce the sum and 50 ns to
produce the carry. If a 6-bit parallel adder is to be designed with the Full
Adder block, what will be the minimum propagation delay for getting the
results? How many 6-bit additions per second can be expected from this
design?
(a) 230ns, 3.275 106
(b) 320ns, 3.125 106
Answer: (b)
Q66. Consider the incomplete circuit implementing the function y(a, b, c)= Σm
(1,2,4,7):
Which of following is the missing Label1 & Label2 respectively so that the
circuit shown above correctly implements y(a, b, c)?
(a) 1, a' (b) a, a' (c) a', a (d) 1, 1
Y = AB 0 + A B C + AB C + AB (C)
Y = ABC + AB C + ABC
(a) Sum = A BC
= 001, 010, 100, 111
= AB C + A BC + ABC + ABC
Option (a) is incorrect.
(b) Cout = AB + BC + CA
Option (b) is incorrect.
© C = AB + C (A B)
= AB + C (AB + AB)
= AB + ABC + AB C
Option © is incorrect.
Option (d) is correct.
Q68. For the Boolean function f (a, b, c) = ΣM (1, 6, 7) the missing inputs X and Y
respectively to the multiplexers. Assume EN= 1.
Y1 = ac + ax
f = bY1 + BY
f = b (a c + ax) + b y = ab c + abc + abc
f = ab c + ab x + bY = ab c + abc + abc
Compare,
= a`b c + abX + bY = ab c + abc + abc
= ab c + ab X + bY = ab c + ab ( c + c = 1)
Now check option by option:
(a) 1, a
abc + ab + ba = ab c + ab
The circuit shown above takes as input an 8-bit number A [7:0] and a control input
Z. It generates an 8-bit output G [7:0].
Q69. What is functionality of the circuit when Z = 0?
(a) Logical right shift by 2 bits
(b) Logical left shift by 2 bits.
(c) Arithmetic right shift by 2 bits.
(d) Arithmetic left shift by 2 bits.
Answer: (c)
Solution:
When z = 0
Input no. A7 A6 A5 A4 A3 A2 A1 A0
Output no. A7A7A7 A6 A5 A4 A3 A2
You can observe 2 conclusion from output:
Conclusion 1: Right shift by 2 bit ( A1 and A0 is lost)
Conclusion 2: Arithmetic shift [ output retains the topmost bit]
Option © is correct.
Note: The difference b/w logical shift and Arithmetic shift is understood by an
example shown below:
Consider the Binary number in 2’s complement is 11100101
Answer: (b)
Solution:
Input no. A7 A6 A5 A4 A3 A2 A1 A0
Output no. 0 0 0 A7 A6 A5 A4 A3
Logical Right shift by 3 bits
Unsigned division by 23
Option (b) is correct.
Q71. Function implemented by the following circuit is
Answer: (b)
Solution
Answer: (c, d)
Solution
Qt+1 = D
D = X Qt
Qt+1 = d = XQt = XQt + XQt = Qt ⊙ X
Options (c, d) are correct.
Q73. A new flip-flop, called AB flip-flop, is created as shown below.
Answer: (d)
Solution:
J=A+B
K = AB
Qt+1 = JQt + TCQt
A B J K Qt+1
0 0 0 0 Qt Hold state
0 1 1 0 1 set state
1 0 1 0 1 set state
1 1 1 1 =Qt Toggle state
Toggle command A = 1 R = 1
Option (d) is correct.
Which one of the following gate must be in the box to complete schematic of a
down-counter?
(a) NOR
(b) NAND
(c) XOR
(d)X-NOR
Answer: (a)
T2 = X = Q 1 + Q 0
LSB
Q0 Q1 Q2
0 0 0
1 1 1
0 1 1
1 0 1
0 0 1
1 1 0
0 1 0
1 0 0
0 0 0
ADVANCED DIGITAL LOGIC Page69
1 1 1
MSB
Q2 Q1 Q0
0 0 0 0
1 1 1 7
1 1 0 6
1 0 1 5
1 0 0 4
0 1 1 3
0 1 0 2
0 0 1 1
0 0 0 0
As output are 7, 6, 5, 4, 3, 2, 1, 0
Given counter is mod – 8 down counter
Option (a) is Correct.
Data for the next two question, the following sequential circuit consists of two
different flip-flops and five gates. The input and output signals are X and Y,
respectively. Each state is encoded as Q1Q0, with the JK flip-flop being Q1 and the SR
flip-flop being Q0 of the state representation.
Answer: (d)
Solution: The modified circuit will still work, because the next state logic in
this circuit will never generate the (1, 1) input combination which is the invalid
input for an SR flip-flop. For all other input combinations, the JK flip-flop has
the same functionality as the SR flip-flop. Therefore, the replacement does not
change the behavior of the circuit.
Q76. Interestingly, another employee made the opposite mistake. He replaced the
JK flip-flop with an SR flip-flop in his implementation. Which of the following
statement is TRUE regarding this change?
(a) The modified circuit will not work correctly, as the next state logic in the
circuit will generate the (1, 1) input combination.
(b) The modified circuit will not work correctly, as the next state logic in the
circuit will not generate the (0, 1) input combination.
(c) The modified circuit will not work correctly, when X = 0 & Q0 =1, both
inputs of the JK flip-flop will be 1.
(d) The modified circuit will work correctly, as the next state logic in the circuit
will never generate the (1, 1) input combination.
Answer: (c)
Solution: The modified circuit will not work. When X = 0 & Q0 =1, both inputs
of the JK flip-flop will be 1. This is an invalid input combination if it is
replaced by an SR flip-flop, and will change the behavior of the circuit.
Q77. A sequential circuit has one flip-flop Q, two inputs X and Y, and one output S.
The circuit consists of a D flip-flop with S as its output and logic implementing
the function D X Y S with D as the input to the D flip-flop.
(b)
(c)
(d)
Answer: (d)
Q+ = S + = D = X Y S
X Y S S+ = XYS
Case 1: Q = 0 and Q+ = 0
J=K=0
1X=0
X=1
Y=1⊙1=1
p = X/Y = 1/1
Case 2:
Q = 0 and Q+ = 1
J=K=1
1X=1
X=0
0X=1
X=1
Y=0⊙1
Y=0
S = 1/0
Case 4:
Q = 1 and Q+ = 1
0X=0
X=0
Y=0⊙0
Y=1
r = 0/1
Q79. The following synchronous sequential circuit is designed with a J-K flip-flop
and a T flip-flop with JA = (A+ B'), KA = (A'+B), and TB = A. If the initial state
(AB) is 00, then find the sequence of states visited by the circuit?
Answer: (b)
Solution:
In J –K flip flop,
Q+ = JQ + KQ
A+ = JAA + K A A
A+ = (A + B) A + (A + B)A
A+ = AB + (A. B)A
A+ = A B + A B
A+ = (A + A)B
A+ = B
In T – flip flop
Q+ = T Q
B + = T B B
B+ = A B
A B
0 0
1 0
1 1
0 0
Answer: 6
Solution
𝑄0+ = J0Q0 + K 0 Q0
𝑄0+ = 1.Q0 + 0. Q0
𝑄0+= Q0
𝑄1+= J1Q1 + K1 Q1
= (Q0Q2 ) Q1 +Q0 . Q1
= Q0 Q 1 Q 2 + Q 0 Q1
Suppose you are asked to make a decoding circuit such that the output Y=1
when the counter is at state 1, 2, 4 and 7. Using a single gate, which of the
following can be used to implement the given logic operation?
(a) AND
(b) OR
(c) XNOR
(d) XOR
Answer: (c)
Solution
A+ = A
B+ = B {B will change its output only when A changes its output from 1 to 0
because B is negative edge triggered flipflop with input clock A}
ADVANCED DIGITAL LOGIC Page78
C+ = C (C will change its output only when B changes its output from 1 to 0)
MSB
A B C
0 0 0
1 0 0
0 1 0
1 1 0
0 0 1
1 0 1
0 1 1
1 1 1
0 0 0
MSB
A B C
0 0 00
0 0 1 1
0 1 02
0 1 13
1 0 04
1 0 1 5
1 1 06
1 1 17
0 0 0 6
Y = CBA = C⊙B⊙A
When C = 0, B = 0, A = 1, Y should be 1,
but Y = 0 ⊙ 0 ⊙ 1 = 0
Option (d) is false.
The number of clock pulse at which the counter again goes back to its initial
state. and the order of state of the counter for each clock pulse is
a) At 8th clock pulse, 000,001,110,111,100,101,010,011
b) At 7th clock pulse, 000,001,110,111,100,101,010
c) At 8th clock pulse 000, 101, 011, 110, 010, 111, 001
d) At 7th clock pulse, 000,101,011,110,010,111,001
Answer: (a)
Solution:
JB = A, KB = A
B+ = JBB + K B B
B+ = AB + A B
B+ = AB
JC = AB, KC = AB
C+ = JCC + K C C
C+ = ABC + ABC
C+ = ABC
MSB
A B C
0 0 0
1 0 0
0 1 1
1 1 1
0 0 1
1 0 1
0 1 0
1 1 0
0 0 0
MSB
C B A
0 0 0
After 8th clock plus, counter again goes back to its initial state 000.
Order of state is 000, 001, 110, 111, 100, 101, 010, 011
Option (a) is correct.
Data for the next two questions, consider the F flip-flop with an external input F.
The state diagram of his flip-flop is shown below.
Q84. If the F flip-flop is implemented using a T flip-flop and one logic gate, then the
logic gate is
(a) EX-OR (b) OR
(c) NOT (d) EX-NOR
Answer: (c)
Solution:
Implementing F Flipflop using T flipflop
Truth table of F:
Excitation Table of T:
F Q Q+ T
0 0 0 1 1
1 0 1 0 1
2 1 0 0 0
3 1 1 1 0
Answer: (d)
Solution: .
Implementing F flip flop using D flipflop
Truth table of Flip flop :
Excitation table f D flip flop
F Q Q+ D
0 0 0 1 1
1 0 1 0 0
2 1 0 0 0
3 1 1 1 1
The F flip flop is implemented using a D flip flop and one XNOR gate.
Option (d) is correct.
Q86. Consider the sequential circuit below, which uses four D flip-flops. The 𝐶𝐿𝑅
input is an asynchronous input that is used to clear the value of a flip-flop.
Note that Q' of the right-most flip-flop is connected to the D input of the left-
most flip-flop.
The circuit is initialized to ABCD = 0000 by clearing all flip-flops to zero (i.e.,
the Q output for every flip-flop is cleared to zero). This sequential circuit cycles
through a number of states. The first state (call it state 0) is 0000, the second
state (call it state 1) is 1000. How many states are there altogether? __________
(a) (b)
Q88. A committee of logic designers could not agree on whether to use NAND gates
or NOR gates to build a set-reset latch. The compromise design is shown
below.
Q89. The maximum clock frequency in MHz of a 4-stage ripple counter, utilizing
flip-flops, with each flip-flop having a propagation delay of 20 ns, is ______.
(Round off to one decimal place).
Q91. Assuming that flip-flops are in reset condition initially, the count sequence
observed at QA in the circuit shown is
(a) 0010111…
(b) 0001011…
(c) 0101111…
(d) 0110100…
Q92. If we need to design a synchronous counter that goes through the states
00 01 11 10 00 using D flip-flop, what should be the input to the
flip-flops?
Answer: (b)
Solution
Q1 Q0 D1 D0
0 0 0 0 1
1 0 1 1 1
3 1 1 1 0
2 1 0 0 0
0 0
D1 = Q0
Q93. The excitation table for a flip-flop whose output conditions are,
if AB = 00, no change of state occurs,
AB = 01, ff becomes 1 with next clock pulse,
AB = 10, ff becomes 0 with next clock pulse,
AB = 11, ff changes its state
(a) Qn Qn+1 A B (b) Qn Qn+1 A B
0 0 0 x 0 0 1 x
0 1 1 x 0 1 0 x
1 0 x 1 1 0 x 0
1 1 x 0 1 1 x 1
Answer: (c)
Solution
Truth table:
A B Qn Qn+1
0 0 0 0
0 0 1 1
ADVANCED DIGITAL LOGIC Page89
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 0
Excitation table:
Qn Qn+1 A B
0 0 0 0
1 X0
0
0 1 0 1
1 X1
1
1 0 1 0
1 1 X
1
0 1 0 0
0 0X
1
Option © is correct.
Assume that the flip-flops are all positive edge triggered, and their values are
all high before the first positive clock edge. Which of the following is the correct
Wave form for the output Y?
Option © is correct.
Answer: (d)
Solution
𝑄0+= Q0
𝑄1+ = Q1 when Q0 1 to 0 { -ve edge triggered flip flop }
𝑄2 = Q2 when Q1 1 to 0
+
Rd = Q2. Q1. Q0
Rd = Q2. Q1.Q0
It means output of Flip flop get reset (000) when Q2 = Q1 = Q0 = 1
Q0 Q1 Q2
0 0 0
1 0 0
0 1 0
1 1 0
0 0 1
1 0 1
Answer: 10
Solution
Clear = QC QA
Clear = QC. QA
QA QB QC QD
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
Answer: 31.25
Solution
𝑓 1000𝑘ℎ𝑧
Frequency of waveform at Q4 = = = 31.25 kHz answer.
32 32