Skip to main content

Chapter 2

Digital Logic

TU BCA past exam questions

Past questions and answers

74 questions set from this chapter, 4 of them more than once; 5 are most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.

  • Most repeated · 5 of 8 exams
  • 2018 · 2+3 marks

Simplify (using K-map) the given Boolean function F in both SOP and POS using don't care conditions D = B'CD' + A'BC'D:
F=B′C′D′+BCD′+ABCD′F = B'C'D' + BCD' + ABCD'

Similar questions: Simplify (using k-map) the given Boolean function (2019) · Simplify the Boolean function F(w, x, y (2020) · Simplify given Boolean function in both SOP (2022)

Answer

F=B′C′D′+BCD′+ABCD′F = B'C'D' + BCD' + ABCD' with d=B′CD′+A′BC′Dd = B'CD' + A'BC'D (variables A,B,C,DA,B,C,D).

Minterms of FF (ABCD):

  • B′C′D′=0000,1000B'C'D' = 0000, 1000, so m0,m8m_0, m_8
  • BCD′=0110,1110BCD' = 0110, 1110, so m6,m14m_6, m_{14}
  • ABCD′=1110ABCD' = 1110, so m14m_{14}

F=Σ(0,6,8,14)F = \Sigma(0, 6, 8, 14)

Don't cares:

  • B′CD′=0010,1010B'CD' = 0010, 1010, so m2,m10m_2, m_{10}
  • A′BC′D=0101A'BC'D = 0101, so m5m_5

d=Σ(2,5,10)d = \Sigma(2, 5, 10)

K-map (rows ABAB, columns CDCD; X = don't care)

AB \ CD00011110
00100X
010X01
110001
10100X

SOP:

  • Quad m0,m2,m8,m10m_0, m_2, m_8, m_{10} gives B′D′B'D'
  • Quad m2,m6,m10,m14m_2, m_6, m_{10}, m_{14} gives CD′CD'

F=B′D′+CD′F = B'D' + CD'

POS: group the 0s (using the X in m5m_5 and m10m_{10} where useful):

  • m1,m3,m5,m7,m9,m11,m13,m15m_1, m_3, m_5, m_7, m_9, m_{11}, m_{13}, m_{15} (all D=1D=1 cells) gives DD
  • m4,m5,m12,m13m_4, m_5, m_{12}, m_{13} gives BC′BC'

F′=D+BC′  ⇒  F=D′(B′+C)F' = D + BC' \;\Rightarrow\; F = D'(B' + C)

Both forms are equal: D′(B′+C)=B′D′+CD′D'(B' + C) = B'D' + CD'.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 4 of 8 exams
  • Asked 2 times
  • 2021 · 5 marks
  • 2022 · 5 marks

Simplify given Boolean function in both SOP and POS using k-map where d represents don't care condition. F (A, B, C, D) = ∏ (2, 3, 4, 5, 7, 9, 10) and ∏ d (0, 6, 11)

Similar questions: Simplify (using k-map) the given Boolean function (2019) · Simplify (using K-map) the given Boolean function (2018)

Answer

F(A,B,C,D)=∏M(2,3,4,5,7,9,10)F(A,B,C,D)=\prod M(2,3,4,5,7,9,10) with don't cares at 0, 6, 11. So the 0s are 2, 3, 4, 5, 7, 9, 10; the don't cares are 0, 6, 11; and the 1s are 1, 8, 12, 13, 14, 15.

K-map (rows ABAB, columns CDCD; X = don't care):

AB\CDAB \backslash CD00011110
00X100
01000X
111111
1010X0

SOP form (group the 1s, using don't cares where useful)

  • Cells 12, 13, 15, 14 (row AB=11AB=11): ABAB
  • Cells 8, 12: ACˉDˉA\bar C\bar D
  • Cells 0 (X), 1: AˉBˉCˉ\bar A\bar B\bar C

F=AB+ACˉDˉ+AˉBˉCˉF = AB + A\bar C\bar D + \bar A\bar B\bar C

POS form (group the 0s, using don't cares where useful)

  • Cells 2, 3, 10, 11 (X): BˉC\bar BC, so the sum term is (B+Cˉ)(B+\bar C)
  • Cells 4, 5, 7, 6 (X): AˉB\bar AB, so the sum term is (A+Bˉ)(A+\bar B)
  • Cells 9, 11 (X): ABˉDA\bar BD, so the sum term is (Aˉ+B+Dˉ)(\bar A+B+\bar D)

F=(B+Cˉ)(A+Bˉ)(Aˉ+B+Dˉ)F = (B+\bar C)(A+\bar B)(\bar A+B+\bar D)

Check: for minterm 9 (ABCD=1001ABCD=1001) the last factor is 0+0+0=00+0+0=0, so F=0F=0 as required; for minterm 8 (10001000) all three factors are 1, so F=1F=1 as required.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 4 of 8 exams
  • 2019 · 5 marks

Simplify (using k-map) the given Boolean function in both SOP and POS using the don't care condition if: f(A, B, C, D) = ℼ(0,1,3,7,8,12) ℼ d(5,10,13,14).

Similar questions: Simplify given Boolean function in both SOP (2022) · Simplify (using K-map) the given Boolean function (2018)

Answer

f(A,B,C,D)=ΠM(0,1,3,7,8,12)⋅d(5,10,13,14)f(A,B,C,D) = \Pi M(0,1,3,7,8,12)\cdot d(5,10,13,14)

So f=0f = 0 at 0, 1, 3, 7, 8, 12; don't care at 5, 10, 13, 14; and f=1f = 1 at the remaining minterms 2, 4, 6, 9, 11, 15.

K-map (rows ABAB, columns CDCD)

        CD: 00   01   11   10
AB=00        0    0    0    1
AB=01        1    X    0    1
AB=11        0    X    1    X
AB=10        0    1    1    X

SOP (group the 1s)

  • m2,m6,m10,m14m_2, m_6, m_{10}, m_{14} gives CD′CD' (uses X at 10, 14).
  • m9,m11,m13,m15m_9, m_{11}, m_{13}, m_{15} gives ADAD (uses X at 13).
  • m4,m5m_4, m_5 gives A′BC′A'BC' (uses X at 5), covering m4m_4.

fSOP=CD′+AD+A′BC′f_{SOP} = CD' + AD + A'BC'

POS (group the 0s)

  • m8,m10,m12,m14m_8, m_{10}, m_{12}, m_{14} gives AD′AD' (uses X at 10, 14), covering 8 and 12.
  • m1,m3,m5,m7m_1, m_3, m_5, m_7 gives A′DA'D (uses X at 5), covering 1, 3, 7.
  • m0,m8m_0, m_8 gives B′C′D′B'C'D', covering 0.

f′=AD′+A′D+B′C′D′f' = AD' + A'D + B'C'D'

Complementing:

fPOS=(A′+D)(A+D′)(B+C+D)f_{POS} = (A' + D)(A + D')(B + C + D)

Check: at m0m_0: (A′+D)=1(A'+D)=1, (A+D′)=1(A+D')=1, (B+C+D)=0(B+C+D)=0, so f=0f=0. At m1m_1: (A+D′)=0(A+D') = 0, so f=0f=0. At m4m_4: all three factors are 1, so f=1f=1. At m8m_8: (A′+D)=0(A'+D)=0, so f=0f=0. At m15m_{15}: all 1, so f=1f=1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 4 of 8 exams
  • 2021 · 5 marks

Explain clocked JK flip flop with logic diagram, truth table, characteristic table and excitation table.

Similar questions: What is D flip-flop? Explain clocked RS (2019) · How does a flip-flop differ from a (2024)

Answer

Clocked JK flip-flop

A JK flip-flop is a clocked bistable element with two data inputs JJ and KK and outputs QQ and Qˉ\bar Q. It removes the invalid state of the SR flip-flop: when J=K=1J=K=1 the output toggles. The state changes only when the clock pulse (or edge) arrives.

Logic diagram: it is built from a clocked SR flip-flop (two cross-coupled NAND gates) with two extra 3-input NAND gates at the input.

  • Upper gate: inputs JJ, CLKCLK and Qˉ\bar Q; its output is SS.
  • Lower gate: inputs KK, CLKCLK and QQ; its output is RR.
  • These feed the cross-coupled NAND latch whose outputs are QQ and Qˉ\bar Q.

The feedback of QQ and Qˉ\bar Q to the input gates is what makes J=K=1J=K=1 toggle the output.

Truth table (at an active clock pulse)

JJKKQn+1Q_{n+1}Operation
00QnQ_nNo change
010Reset
101Set
11Qˉn\bar Q_nToggle

Characteristic table

QnQ_nJJKKQn+1Q_{n+1}
0000
0010
0101
0111
1001
1010
1101
1110

Characteristic equation: Qn+1=JQˉn+KˉQnQ_{n+1}=J\bar Q_n+\bar K Q_n.

Excitation table (what inputs are needed for a required transition)

QnQ_nQn+1Q_{n+1}JJKK
000X
011X
10X1
11X0

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Most repeated · 3 of 8 exams
  • Asked 2 times
  • 2018 · 1+4 marks
  • 2019 · 5 marks

What is D flip-flop? Explain clocked RS flip-flop with its logic diagram and truth table.

Similar questions: Explain clocked JK flip flop with logic (2021)

Answer

D flip-flop: a flip-flop with a single data input DD. On the active clock edge the output takes the value of DD, so Q(t+1)=DQ(t+1) = D. It is also called a delay or data flip-flop. It is made from an SR flip-flop by connecting S=DS = D and R=D′R = D', so the invalid state cannot occur.

DQ(t+1)
00
11

Clocked RS flip-flop

Logic diagram: the basic cross-coupled NAND (or NOR) latch is preceded by two gates. Input SS is ANDed with the clock to give the set input of the latch, and RR is ANDed with the clock to give the reset input. When CP = 0 both gates output inactive values, so the latch holds its state. When CP = 1 the inputs SS and RR reach the latch.

Operation:

  • S=0,R=0S=0, R=0: no change.
  • S=0,R=1S=0, R=1: reset, Q=0Q=0.
  • S=1,R=0S=1, R=0: set, Q=1Q=1.
  • S=1,R=1S=1, R=1: invalid, since both outputs go to the same level and the final state is unpredictable.

Truth table

CPSRQ(t+1)State
0XXQ(t)No change
100Q(t)No change
1010Reset
1101Set
111?Invalid

Characteristic equation: Q(t+1)=S+R′QQ(t+1) = S + R'Q, with SR=0SR = 0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2018 · 2+1+2 marks
  • 2019 · 5 marks

Design MOD-5 counter with state and timing diagram.

Answer

MOD-5 counter: counts 0, 1, 2, 3, 4 and returns to 0. It needs ⌈log⁡25⌉=3\lceil\log_2 5\rceil = 3 flip-flops. A synchronous design with JK flip-flops follows. States are ABCABC.

State table and excitation (J, K entries from the JK excitation table: 0→0 is 0X, 0→1 is 1X, 1→0 is X1, 1→1 is X0)

Present ABCNext ABCJAKAJBKBJCKC
0000010X0X1X
0010100X1XX1
0100110XX01X
0111001XX1X1
100000X10X0X
101, 110, 111unused (don't care)

K-map simplification (states 101, 110, 111 as don't cares)

JA=BC,KA=1J_A = BC,\quad K_A = 1 JB=KB=CJ_B = K_B = C JC=A′,KC=1J_C = A',\quad K_C = 1

If the counter powers up in an unused state, it returns to the valid sequence: 101 goes to 010, 110 goes to 010 and 111 goes to 000.

State diagram: 000→001→010→011→100→000000 \to 001 \to 010 \to 011 \to 100 \to 000

Timing diagram (outputs change on the falling edge of the clock)

CLK : _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_
A   : ______________|‾‾‾‾|_____    (high only in state 4)
B   : ______|‾‾‾‾‾‾‾‾‾‾|_________    (high in states 2,3)
C   : __|‾‾|____|‾‾|_______________  (high in states 1,3)
count:  0   1   2   3   4   0

The pattern repeats every 5 clock pulses, and the output of A has frequency f/5f/5.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2019 · 5 marks
  • 2022 · 5 marks

Subtract: 1010.110 - 101.101 using both 2’s and 1’s complement.

Answer

We need 1010.110−101.1011010.110 - 101.101, that is 10.75−5.625=5.125=101.001210.75 - 5.625 = 5.125 = 101.001_2.

Write the subtrahend with 4 integer bits: 0101.1010101.101.

Using 2's complement

1's complement of 0101.1010101.101 is 1010.0101010.010. Add 1 at the last bit: 2's complement =1010.011= 1010.011.

1010.110+1010.011=1 0101.0011010.110 + 1010.011 = 1\,0101.001

The carry out is discarded (it indicates a positive result), so the answer is +0101.001=+101.001+0101.001 = +101.001.

Using 1's complement

1's complement of 101.101101.101 is 1010.0101010.010.

1010.110+1010.010=1 0101.0001010.110 + 1010.010 = 1\,0101.000

There is an end-around carry: remove the carry and add it to the last bit.

0101.000+0000.001=0101.0010101.000 + 0000.001 = 0101.001

Answer: +101.0012+101.001_2 (=5.12510= 5.125_{10}) by both methods.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 10 marks

A sequential circuit with two D flip flops, A and B, two inputs x and y, and one output z, is specified by the following next state and output equations.
A(t + 1) = x'y + xA
B(t + 1) = x/B + xA
z = B
1.Draw the logic diagram.
2.Derive the state
3.Derive the state diagram.

Similar questions: What is state diagram? A sequential circuit (2022)

Answer

Equations (reading x/Bx/B as x′Bx'B):

A(t+1)=x′y+xAA(t+1) = x'y + xA B(t+1)=x′B+xAB(t+1) = x'B + xA z=Bz = B

For D flip-flops DA=x′y+xAD_A = x'y + xA and DB=x′B+xAD_B = x'B + xA.

1. Logic diagram

x --[NOT]--> x'
x' , y     --[AND]--+
x  , A     --[AND]--+--[OR]--> D_A --[D FF A]--> A  (fed back)
x' , B     --[AND]--+
x  , A     --[AND]--+--[OR]--> D_B --[D FF B]--> B  (fed back)
B ---------------------------------------------> z
CLK -> both flip-flops

Components: one inverter, four 2-input AND gates (the xAxA term is shared and can use a single gate), two 2-input OR gates and two D flip-flops. The output zz is taken directly from BB.

2. State table (present state ABAB, inputs xyxy)

Present ABABxyxyNext AANext BBzz
0000000
0001100
0010000
0011000
0100011
0101111
0110001
0111001
1000000
1001100
1010110
1011110
1100011
1101111
1110111
1111111

For example, with AB=01AB=01, xy=10xy=10: A+=0+1⋅0=0A^+ = 0 + 1\cdot0 = 0, B+=0⋅1+1⋅0=0B^+ = 0\cdot1 + 1\cdot0 = 0.

3. State diagram

The states are 00,01,10,1100, 01, 10, 11 (labelled ABAB). The output depends only on the state: z=1z = 1 in states 01 and 11, z=0z=0 in states 00 and 10. Transitions are labelled xyxy:

State 00 (z=0): xy=00,10,11 -> 00 ;  xy=01 -> 10
State 01 (z=1): xy=00 -> 01 ;  xy=01 -> 11 ;  xy=10,11 -> 00
State 10 (z=0): xy=00 -> 00 ;  xy=01 -> 10 ;  xy=10,11 -> 11
State 11 (z=1): xy=00 -> 01 ;  xy=01,10,11 -> 11

Summary of the behaviour: when x=0x = 0, AA loads yy and BB holds its value; when x=1x = 1, AA holds its value and BB loads AA. State 11 is reached and held while x=1x = 1 and A=1A = 1; from 11 the circuit leaves only through x=0,y=0x=0,y=0 (to 01).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Simplify the Boolean function F(w, x, y, z) = π(0,2,4,6,8,10,12,14) and don’t care conditions d(w, x, y, z) = π(1,3,9,11) using K-Map method for both SOP and POS form.

Similar questions: Simplify (using K-map) the given Boolean function (2018)

Answer

The zeros of FF are the maxterms 0, 2, 4, 6, 8, 10, 12, 14, so F=1F=1 for the odd minterms 5, 7, 13, 15, and the don't-care conditions are the cells 1, 3, 9, 11.

K-map (rows wxwx, columns yzyz; X = don't care):

wx\yzwx \backslash yz00011110
000XX0
010110
110110
100XX0

SOP form. The cells with z=1z=1 (the whole column yz=01yz=01 and yz=11yz=11: cells 1, 3, 5, 7, 9, 11, 13, 15) form one octet, using the don't cares as 1. The octet is independent of ww, xx and yy:

F=zF = z

POS form. Group the 0s (cells 0, 2, 4, 6, 8, 10, 12, 14), which form the octet z=0z=0. Writing the group as the product zˉ\bar z and complementing it (De Morgan) gives the sum term zz, with no other variable involved:

F=zF = z

Both forms give the same result, F=zF=z, so the function needs no gate at all, only a wire from input zz.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 5 marks

Define combinational logic circuit. Design a full adder with its truth table, logic diagram and Boolean expression.

Similar questions: Define combinational circuit. Write a combinational circuit (2022)

Answer

Combinational logic circuit

A combinational logic circuit is a circuit whose output at any instant depends only on the present combination of its inputs, and not on past inputs. It has no memory or feedback. It is built from logic gates; examples are adders, decoders, multiplexers and comparators.

Full adder

A full adder adds three 1-bit inputs: the two bits AA and BB and the carry-in CinC_{in}, giving a sum SS and a carry-out CoutC_{out}.

Truth table:

ABCinC_{in}SCoutC_{out}
00000
00110
01010
01101
10010
10101
11001
11111

From the truth table, S=∑m(1,2,4,7)S=\sum m(1,2,4,7) and Cout=∑m(3,5,6,7)C_{out}=\sum m(3,5,6,7).

S=AˉBˉCin+AˉBCˉin+ABˉCˉin+ABCin=A⊕B⊕CinS=\bar A\bar B C_{in}+\bar A B\bar C_{in}+A\bar B\bar C_{in}+ABC_{in}=A\oplus B\oplus C_{in}

K-map simplification of CoutC_{out} gives

Cout=AB+BCin+ACin=AB+Cin(A⊕B)C_{out}=AB+BC_{in}+AC_{in}=AB+C_{in}(A\oplus B)

Logic diagram: two half adders and an OR gate. The first half adder takes AA and BB (XOR gives A⊕BA\oplus B, AND gives ABAB). The second half adder takes A⊕BA\oplus B and CinC_{in} (XOR gives the sum SS, AND gives Cin(A⊕B)C_{in}(A\oplus B)). An OR gate combines the two AND outputs to give CoutC_{out}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

Define combinational circuit. Write a combinational circuit design procedure. Design a half adder with its truth table, logic diagram and Boolean expression.

Similar questions: Define combinational logic circuit. Design a full (2021)

Answer

Combinational circuit

A combinational circuit is a logic circuit whose output at any instant depends only on the present combination of inputs, not on past inputs. It has no memory or feedback. Examples: adders, multiplexers, decoders, encoders.

Design procedure

  1. State the problem and decide the number of inputs and outputs.
  2. Assign letter symbols to the inputs and outputs.
  3. Derive the truth table that defines the relation between inputs and outputs.
  4. Obtain the simplified Boolean expression for each output (K-map or Boolean algebra).
  5. Draw the logic diagram with the simplified expressions and verify it.

Half adder

A half adder adds two single bits AA and BB and gives a sum SS and a carry CC.

AABBSSCC
0000
0110
1010
1101

Boolean expressions: S=AˉB+ABˉ=A⊕B,C=ABS=\bar AB+A\bar B=A\oplus B,\qquad C=AB

Logic diagram: an XOR gate with inputs A,BA,B gives the sum, and an AND gate with the same inputs gives the carry.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 10 marks

What is state diagram? A sequential circuit with two D flip-flops A and B, one input x and one output z is specified by the following next state and output equations: A(t + 1) = A' + B, B(t + 1) = B' x, z = A + B'
i) Draw the logic diagram of the circuit
ii) Draw the state table
iii) Draw the state diagram

Similar questions: A sequential circuit with two D flip (2019)

Answer

State diagram

A state diagram is a graphical representation of a sequential circuit. Each state is a circle, and each directed arrow between circles is a transition labelled with "input/output" (Mealy) or just the input (Moore, with the output written inside the state circle). It shows how the circuit moves from state to state for each input.

Given circuit: D flip-flops AA, BB; input xx; output zz. DA=A′+B,DB=B′x,z=A+B′D_A=A'+B,\qquad D_B=B'x,\qquad z=A+B'

(i) Logic diagram

  • DAD_A: a NOT gate on AA and an OR gate with BB give DA=A′+BD_A=A'+B, connected to flip-flop AA.
  • DBD_B: a NOT gate on BB and an AND gate with xx give DB=B′xD_B=B'x, connected to flip-flop BB.
  • Output: a NOT gate on BB and an OR gate with AA give z=A+B′z=A+B'.
  • Both flip-flops share one clock.

(ii) State table

AABBxxA+A^+B+B^+zz
000101
001111
010100
011100
100001
101011
110101
111101

(iii) State diagram (Moore type, because zz depends only on the present state: z=1z=1 in states 00,10,1100,10,11 and z=0z=0 in state 0101)

  • State 00/z=100/z{=}1: on x=0x=0 go to 1010; on x=1x=1 go to 1111.
  • State 01/z=001/z{=}0: on x=0x=0 or 11 go to 1010.
  • State 10/z=110/z{=}1: on x=0x=0 go to 0000; on x=1x=1 go to 0101.
  • State 11/z=111/z{=}1: on x=0x=0 or 11 go to 1010.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 5 marks

How does a flip-flop differ from a latch? Explain clocked SR flip-flop with logic diagram, truth table, characteristic table, and excitation table.

Similar questions: Explain clocked JK flip flop with logic (2021)

Answer

Flip-flop versus latch

LatchFlip-flop
Level sensitive: the output follows the inputs for as long as the enable is activeEdge triggered: the output changes only at the rising or falling edge of the clock
No clock (or only an enable level)Has a clock input
Output may change several times during one enable pulse (transparency)Output changes once per clock edge
Built from gates directly (e.g. NOR or NAND cross-coupled)Built from latches (e.g. master-slave) or edge-detecting circuits
Simple, fast, less hardwareMore hardware, but reliable in synchronous circuits

Clocked SR flip-flop

It is an SR latch with two extra NAND gates that gate the inputs SS and RR with the clock CLKCLK. When CLK=0CLK = 0 the flip-flop holds its state; when CLK=1CLK = 1 the inputs act on it.

Logic diagram:

S ──┐
    NAND ──┐
CLK─┤      │
    └──────┼── NAND (Q) ──── Q
           │      ╳ cross-coupled
    ┌──────┼── NAND (Q') ─── Q'
CLK─┤      │
    NAND ──┘
R ──┘

Truth table (with CLK=1CLK = 1)

SRQ(t+1)Operation
00Q(t)No change
010Reset
101Set
11?Invalid (forbidden)

Characteristic table

SRQ(t)Q(t+1)
0000
0011
0100
0110
1001
1011
110X
111X

Characteristic equation: Q(t+1)=S+R′QQ(t+1) = S + R'Q with the constraint SR=0SR = 0.

Excitation table

Q(t)Q(t+1)SR
000X
0110
1001
11X0

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 · 5 marks

Subtract: 675.6 - 456.4 using both 10's and 9's complement.

Answer

Subtract 675.6−456.4675.6 - 456.4.

Using 10's complement

10's complement of 456.4456.4 (3 integer digits): 103−456.4=543.610^3 - 456.4 = 543.6

675.6+543.6=1219.2675.6 + 543.6 = 1219.2

The carry (leftmost 1) is discarded, so the result is 219.2.

Using 9's complement

9's complement of 456.4456.4: 999.9−456.4=543.5999.9 - 456.4 = 543.5

675.6+543.5=1219.1675.6 + 543.5 = 1219.1

The end-around carry is added to the result:

219.1+1 (at the last digit)=219.2219.1 + 1 \text{ (at the last digit)} = 219.2

The answer is 219.2 by both methods. Check: 675.6−456.4=219.2675.6 - 456.4 = 219.2.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 · 5 marks

What is universal logic gate? Realize NAND and NOR as universal logic gates.

Answer

Universal gate: a gate from which every other basic gate (NOT, AND, OR) and hence any logic function can be built. NAND and NOR are universal gates.

NAND as a universal gate

  • NOT: tie the inputs together: Y=(A⋅A)′=A′Y = (A\cdot A)' = A'
  • AND: NAND followed by a NAND used as NOT: Y=((AB)′)′=ABY = ((AB)')' = AB
  • OR: invert each input with a NAND, then NAND them: Y=(A′⋅B′)′=A+BY = (A'\cdot B')' = A + B (De Morgan)

NOR as a universal gate

  • NOT: tie the inputs together: Y=(A+A)′=A′Y = (A + A)' = A'
  • OR: NOR followed by a NOR used as NOT: Y=((A+B)′)′=A+BY = ((A+B)')' = A + B
  • AND: invert each input with a NOR, then NOR them: Y=(A′+B′)′=ABY = (A' + B')' = AB (De Morgan)

Gate counts: NOT = 1, AND = 2, OR = 3, using either gate type.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 · 1+4 marks

Define encoder. Draw logic diagram and truth table of octal-to-binary encoder.

Answer

Encoder: a combinational circuit with 2n2^n (or fewer) input lines and nn output lines. Exactly one input is active at a time, and the output is the binary code of that input.

Octal-to-binary encoder (8 inputs D0D_0 to D7D_7, 3 outputs A2A1A0A_2A_1A_0)

D7D6D5D4D3D2D1D0A2A1A0
00000001000
00000010001
00000100010
00001000011
00010000100
00100000101
01000000110
10000000111

Boolean equations

A0=D1+D3+D5+D7A_0 = D_1 + D_3 + D_5 + D_7 A1=D2+D3+D6+D7A_1 = D_2 + D_3 + D_6 + D_7 A2=D4+D5+D6+D7A_2 = D_4 + D_5 + D_6 + D_7

Logic diagram: three 4-input OR gates.

  • OR gate 1 takes D1,D3,D5,D7D_1, D_3, D_5, D_7 and gives A0A_0.
  • OR gate 2 takes D2,D3,D6,D7D_2, D_3, D_6, D_7 and gives A1A_1.
  • OR gate 3 takes D4,D5,D6,D7D_4, D_5, D_6, D_7 and gives A2A_2.

D0D_0 is not connected to any gate, because the all-zero output already represents D0D_0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 · 3+2 marks

Design a 4-bit serial-in parallel-out shift register with timing diagram.

Answer

4-bit serial-in parallel-out (SIPO) shift register

Design: four D flip-flops FFAFF_A, FFBFF_B, FFCFF_C, FFDFF_D share one clock.

  • The serial input goes to DD of FFAFF_A.
  • QAQ_A feeds DD of FFBFF_B, QBQ_B feeds DD of FFCFF_C, and QCQ_C feeds DD of FFDFF_D.
  • The four outputs QA,QB,QC,QDQ_A, Q_B, Q_C, Q_D are available together as the parallel output.

On each rising clock edge every bit moves one place to the right and a new bit enters FFAFF_A. After four clock pulses the four serial bits are available in parallel. The first bit entered is in QDQ_D.

Operation example: serial input 1, 0, 1, 1 (register initially 0000)

ClockSerial inQAQ_AQBQ_BQCQ_CQDQ_D
00000
111000
200100
311010
411101

Timing diagram

CLK : _|‾|_|‾|_|‾|_|‾|_
Din : ‾‾‾|___|‾‾‾‾‾‾‾‾‾   (1 0 1 1)
QA  : __|‾‾|___|‾‾‾‾‾‾‾
QB  : _____|‾‾‾|___|‾‾‾‾
QC  : _________|‾‾‾|____
QD  : _____________|‾‾‾‾

Each output is the previous stage's output delayed by one clock period. After the 4th pulse the parallel data QAQBQCQD=1101Q_AQ_BQ_CQ_D = 1101 can be read.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 · 3+7 marks

Write difference between PLA and PAL. Design a PLA circuit with given functions.
F1(A,B,C)=Σ(2,3,5)F_1(A,B,C) = \Sigma(2,3,5)
F2(A,B,C)=Σ(0,4,5,7)F_2(A,B,C) = \Sigma(0,4,5,7)
Design PLA program table also.

Answer

Difference between PLA and PAL

PLA (Programmable Logic Array)PAL (Programmable Array Logic)
Both the AND array and the OR array are programmableOnly the AND array is programmable; the OR array is fixed
More flexible; product terms can be shared among outputsLess flexible; product terms cannot be shared
More complex and costlySimpler, cheaper and faster
Needs more fuses to programNeeds fewer fuses

PLA design

F1(A,B,C)=Σ(2,3,5)F_1(A,B,C) = \Sigma(2,3,5), F2(A,B,C)=Σ(0,4,5,7)F_2(A,B,C) = \Sigma(0,4,5,7)

K-map simplification

F1F_1: minterms 2 (010) and 3 (011) combine to A′BA'B; minterm 5 (101) is alone, AB′CAB'C.

F1=A′B+AB′CF_1 = A'B + AB'C

F2F_2: minterms 0 and 4 combine to B′C′B'C'; minterms 5 and 7 combine to ACAC.

F2=B′C′+ACF_2 = B'C' + AC

The PLA needs four distinct product terms:

P1=A′BP_1 = A'B, P2=AB′CP_2 = AB'C, P3=B′C′P_3 = B'C', P4=ACP_4 = AC.

PLA program table

Product termProductAABBCCF1F_1F2F_2
P1P_1A′BA'B01-1-
P2P_2AB′CAB'C1011-
P3P_3B′C′B'C'-00-1
P4P_4ACAC1-1-1

In the inputs column, 1 means the variable is used true, 0 means complemented, and - means the variable is absent. In the outputs, 1 means the product term goes to that OR gate. (Outputs: F1=P1+P2F_1 = P_1 + P_2, F2=P3+P4F_2 = P_3 + P_4.)

PLA structure

Inputs A,B,C (with complements) --> AND array --> P1,P2,P3,P4
   P1 ,P2 --> OR gate --> F1
   P3 ,P4 --> OR gate --> F2

Each programmable connection (cross) in the AND array corresponds to a 1/0 entry in the table, and in the OR array to a 1 in the output columns.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 · 2+8 marks

Define D flip-flop. Design a Master-slave flip-flop by using JK flip-flop along with its circuit diagram and truth table.

Answer

D flip-flop: A D (Data) flip-flop is a one-input flip-flop whose output follows the input at the clock edge: Q(t+1)=DQ(t+1) = D. It stores one bit and delays the data by one clock period, so it is also called a delay flip-flop.

DDQ(t+1)Q(t+1)
00
11

Master-slave flip-flop using JK flip-flops

An ordinary level-triggered JK flip-flop suffers from the race-around condition: when J=K=1J = K = 1 and CLK stays high longer than the propagation delay, the output toggles repeatedly. A master-slave arrangement avoids this.

Construction: two JK flip-flops are cascaded. The first (master) receives the external JJ, KK and the clock CLK. The second (slave) receives the master's outputs QmQ_m and Qm′Q_m' as its JJ and KK, and the inverted clock CLK'. The final outputs QQ and Q′Q' are taken from the slave.

J --\                          Qm              Q
     [ MASTER JK ]-----------> J [ SLAVE JK ] ----> Q
K --/   (CLK)       Qm' ---->  K   (CLK')    ----> Q'
          ^                          ^
          |                          |
         CLK ---------[NOT]----------+

Operation

  • CLK = 1: the master is enabled and responds to JJ, KK (and its own feedback), while the slave is disabled (its clock CLK' = 0), so the output QQ cannot change.
  • CLK = 0: the master is disabled and holds its value; the slave is enabled and copies the master's state to the outputs.

So the output changes only once per clock, at the falling edge, and no race-around occurs, because the master's change is not fed back to the inputs while it is enabled.

Truth table (state change at the falling edge of the clock)

JJKKQ(t+1)Q(t+1)Operation
00Q(t)Q(t)No change
010Reset
101Set
11Q′(t)Q'(t)Toggle

Characteristic equation: Q(t+1)=JQ′+K′QQ(t+1) = JQ' + K'Q. Connecting J=DJ=D and K=D′K=D' through an inverter turns the master-slave JK into a master-slave D flip-flop.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2018 · 3+7 marks

Write down the difference between asynchronous and synchronous counter. Design a 4-bit binary ripple counter along with its circuit, state and timing diagram.

Answer

Difference between asynchronous and synchronous counters

Asynchronous (ripple) counterSynchronous counter
Clock is applied only to the first flip-flop; each next flip-flop is clocked by the previous outputThe same clock is applied to all flip-flops simultaneously
Flip-flops change one after another, so delays add up (propagation delay accumulates)All flip-flops change at the same instant
Slower; maximum frequency is limitedFaster; higher operating frequency
Simple circuit, no extra gatesNeeds additional combinational logic (AND gates)
Glitches may occur in decoded statesNo such glitches
Example: ripple counterExample: ring counter, synchronous up counter

4-bit binary ripple (up) counter

It counts 0 to 15 (16 states, MOD-16) using four JK (or T) flip-flops with J=K=1J = K = 1 so that each toggles on a clock edge. Outputs Q3Q2Q1Q0Q_3 Q_2 Q_1 Q_0 with Q0Q_0 the LSB. The flip-flops are negative-edge triggered, the clock goes to FF0 and the output QQ of each stage is the clock of the next.

Circuit

        J=K=1        J=K=1        J=K=1        J=K=1
CLK --> [FF0] Q0 --> [FF1] Q1 --> [FF2] Q2 --> [FF3] Q3

Each flip-flop toggles when the preceding output goes from 1 to 0 (a falling edge), so each stage divides the frequency by 2: fQ3=fCLK/16f_{Q_3} = f_{CLK}/16.

State table

Clock pulseQ3Q_3Q2Q_2Q1Q_1Q0Q_0Decimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
10101010
11101111
12110012
13110113
14111014
15111115
1600000 (recycles)

State diagram: 0→1→2→⋯→15→00 \to 1 \to 2 \to \dots \to 15 \to 0 (one loop of 16 states).

Timing diagram

CLK: _|~|_|~|_|~|_|~|_|~|_|~|_|~|_|~|_|~|_ ...
Q0 : __/~\__/~\__/~\__/~\__/~\ ...            toggles every clock
Q1 : ____/~~~\___/~~~\___/~~~\ ...            toggles every 2 clocks
Q2 : ________/~~~~~~~\_______ ...             toggles every 4 clocks
Q3 : ________________/~~~~~~~~~~~~~~~\ ...    toggles every 8 clocks

Q0Q_0 has half the clock frequency, Q1Q_1 a quarter, Q2Q_2 an eighth and Q3Q_3 one-sixteenth.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 5 marks

Define decoder. Draw logic diagram and truth table of 3 to 8 line decoder.

Answer

Decoder: A decoder is a combinational circuit that converts an nn-bit binary code on its inputs into a maximum of 2n2^n unique output lines, activating exactly one output for each input combination. It is the opposite of an encoder.

3-to-8 line decoder

Inputs A,B,CA, B, C (AA MSB), outputs D0D_0 to D7D_7. Each output is a minterm of the inputs. Optionally an enable input EE is ANDed with each output.

Truth table

AABBCCD0D_0D1D_1D2D_2D3D_3D4D_4D5D_5D6D_6D7D_7
00010000000
00101000000
01000100000
01100010000
10000001000
10100000100
11000000010
11100000001

Output equations

D0=A′B′C′,  D1=A′B′C,  D2=A′BC′,  D3=A′BCD_0 = A'B'C',\; D_1 = A'B'C,\; D_2 = A'BC',\; D_3 = A'BC D4=AB′C′,  D5=AB′C,  D6=ABC′,  D7=ABCD_4 = AB'C',\; D_5 = AB'C,\; D_6 = ABC',\; D_7 = ABC

Logic diagram

A --+------[NOT]--- A'
B --+------[NOT]--- B'
C --+------[NOT]--- C'

A' B' C' --[AND3]-- D0        A  B' C' --[AND3]-- D4
A' B' C  --[AND3]-- D1        A  B' C  --[AND3]-- D5
A' B  C' --[AND3]-- D2        A  B  C' --[AND3]-- D6
A' B  C  --[AND3]-- D3        A  B  C  --[AND3]-- D7

Three inverters and eight 3-input AND gates are needed. It can be used for memory address decoding, code conversion and implementing Boolean functions (OR the required outputs).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 5 marks

Define ROM. Implement the following combinational logic function using ROM:
A1 A0 | F1 F2
0 0 | 1 0
0 1 | 0 1
1 0 | 1 1
1 1 | 1 0

Answer

ROM (Read-Only Memory): ROM is a non-volatile memory whose contents are fixed (written during manufacture or programmed once) and which can only be read in normal operation. A ROM with nn address inputs and mm outputs has 2n2^n words of mm bits. Internally it is a fixed AND array (an nn-to-2n2^n decoder) followed by a programmable OR array, so it can realise any combinational function: the inputs are the address and the outputs are the stored data bits.

Implementation

The table has 2 inputs (A1,A0A_1, A_0) and 2 outputs (F1,F2F_1, F_2), so a 4×24 \times 2 ROM is required (4 words of 2 bits).

Address A1A0A_1A_0Stored word F1F2F_1F_2
001 0
010 1
101 1
111 0

From the table:

F1=Σ(0,2,3),F2=Σ(1,2)F_1 = \Sigma(0, 2, 3), \quad F_2 = \Sigma(1, 2)

ROM structure: a 2-to-4 decoder produces the word lines W0W_0 to W3W_3 (the minterms); the OR array connections (fuses left intact) are:

  • F1=W0+W2+W3F_1 = W_0 + W_2 + W_3
  • F2=W1+W2F_2 = W_1 + W_2
A1 -->[ 2-to-4 ]--> W0 --------+-------> OR --> F1
A0 -->[ decoder ]--> W1 -----+--|-------> OR --> F2
                     W2 -----+--+--(to both ORs)
                     W3 ---------+-------> F1 OR

That is, W0,W2,W3W_0, W_2, W_3 feed the OR gate of F1F_1 and W1,W2W_1, W_2 feed the OR gate of F2F_2. Programming the ROM means keeping exactly these connections and blowing the rest.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 5 marks

What are the drawbacks of clocked RS Flip Flop? Explain the operation of JK Flipflop along with its circuit diagram and characteristic table.

Answer

Drawbacks of the clocked RS flip-flop

  1. Invalid state: when S=R=1S = R = 1 with CLK = 1, both outputs become 1 (or both 0 in a NOR version), violating the condition Q′=Q‾Q' = \overline{Q}. When the clock then falls, the next state is unpredictable.
  2. Forbidden input condition: the user must make sure SS and RR are never 1 together, which restricts its use.
  3. No toggle operation: there is no input combination that complements the output, so counters and similar circuits cannot be built directly.
  4. Race/indeterminate behaviour: if SS and RR go from 1,1 to 0,0 at slightly different times the final state is uncertain.

The JK flip-flop removes these problems.

JK flip-flop

A JK flip-flop is a clocked RS flip-flop with feedback: the outputs QQ and Q′Q' are fed back to the input gates so that S=J⋅Q′S = J\cdot Q' and R=K⋅QR = K\cdot Q. The input condition J=K=1J = K = 1 is now allowed and causes the output to toggle.

Circuit diagram

J --[AND3: J, CLK, Q']--- S \
CLK                           [Clocked SR latch] -- Q
K --[AND3: K, CLK, Q ]--- R /                    -- Q'
          ^         ^
          |_________|  Q and Q' fed back

Operation

  • J=0,K=0J = 0, K = 0: no change, Q(t+1)=Q(t)Q(t+1) = Q(t).
  • J=0,K=1J = 0, K = 1: reset, Q(t+1)=0Q(t+1) = 0.
  • J=1,K=0J = 1, K = 0: set, Q(t+1)=1Q(t+1) = 1.
  • J=1,K=1J = 1, K = 1: toggle, Q(t+1)=Q′(t)Q(t+1) = Q'(t). Because of the feedback the invalid state never occurs.

Characteristic table

JJKKQ(t)Q(t)Q(t+1)Q(t+1)
0000
0011
0100
0110
1001
1011
1101
1110

Characteristic equation: Q(t+1)=JQ′+K′QQ(t+1) = JQ' + K'Q.

If the clock pulse is wider than the propagation delay, toggling repeats within one pulse (race-around). It is cured by edge triggering or the master-slave arrangement.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 10 marks

Define PLA. Design PLA circuit with given function.
F1(A, B, C) = Σ(3,5,6,7)
F2(A, B, C) = Σ(0,2,4,7)
Design PLA Program table also.

Answer

PLA (Programmable Logic Array): A PLA is a programmable logic device with a programmable AND array that generates product terms of the inputs and a programmable OR array that sums selected product terms to form the outputs. Because both arrays are programmable, product terms can be shared between several functions. Its size is given by the number of inputs, product terms and outputs.

Design

F1(A,B,C)=Σ(3,5,6,7)F_1(A,B,C) = \Sigma(3,5,6,7), F2(A,B,C)=Σ(0,2,4,7)F_2(A,B,C) = \Sigma(0,2,4,7)

Simplification

F1F_1: pairs (3,7)=BC(3,7) = BC, (5,7)=AC(5,7) = AC, (6,7)=AB(6,7) = AB.

F1=AB+AC+BCF_1 = AB + AC + BC

F2F_2: pairs (0,2)=A′C′(0,2) = A'C', (0,4)=B′C′(0,4) = B'C', and minterm 7 =ABC= ABC.

F2=A′C′+B′C′+ABCF_2 = A'C' + B'C' + ABC

To reduce the number of product terms, also simplify the complement of F1F_1. F1′=Σ(0,1,2,4)F_1' = \Sigma(0,1,2,4):

F1′=A′B′+A′C′+B′C′F_1' = A'B' + A'C' + B'C'

Now F1′F_1' and F2F_2 share A′C′A'C' and B′C′B'C', so only four distinct product terms are needed (A′B′A'B', A′C′A'C', B′C′B'C', ABCABC) instead of six. Output F1F_1 is taken as the complement of this sum (PLA outputs have an XOR gate to select true or complemented form).

PLA program table

Product termProductAABBCCF1F_1 (C)F2F_2 (T)
1A′B′A'B'00-1-
2A′C′A'C'0-011
3B′C′B'C'-0011
4ABCABC111-1

In the inputs, 1 = true, 0 = complemented, - = not used. In the output columns, 1 means the product term is connected to that OR gate; (C) means the output is complemented (XOR fuse intact) and (T) means true output.

Thus F1=(P1+P2+P3)′F_1 = (P_1 + P_2 + P_3)' and F2=P2+P3+P4F_2 = P_2 + P_3 + P_4.

Verification: P1+P2+P3P_1+P_2+P_3 covers {0,1}∪{0,2}∪{0,4}={0,1,2,4}\{0,1\}\cup\{0,2\}\cup\{0,4\} = \{0,1,2,4\}, whose complement is {3,5,6,7}\{3,5,6,7\}, which is F1F_1. P2+P3+P4P_2 + P_3 + P_4 covers {0,2}∪{0,4}∪{7}={0,2,4,7}\{0,2\}\cup\{0,4\}\cup\{7\} = \{0,2,4,7\}, which is F2F_2.

Block structure

A,B,C (true and complement) -> AND array (4 product terms)
-> OR array: F1 gets P1,P2,P3 then XOR(1) -> F1 ; F2 gets P2,P3,P4 then XOR(0) -> F2

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 10 marks

Distinguish between sequential and combinational logic with example? Discuss the design procedure of combinational logic.

Answer

Combinational vs sequential logic

Combinational logicSequential logic
Output depends only on the present inputsOutput depends on present inputs and on past inputs (stored state)
No memory elementContains memory elements (flip-flops, latches)
No clock is neededUsually clocked (synchronous) or event driven (asynchronous)
Described by a truth table or Boolean expressionDescribed by a state table, state diagram
Faster and simplerSlower and more complex
Examples: adder, multiplexer, decoder, encoder, comparatorExamples: flip-flop, register, counter, memory

Design procedure of combinational logic

  1. State the problem and determine the required number of input and output variables.
  2. Assign symbols to the input and output variables.
  3. Derive the truth table that defines the required relationship between inputs and outputs.
  4. Obtain the simplified Boolean function for each output using a K-map or Boolean algebra (SOP or POS).
  5. Draw the logic diagram using gates (possibly converting to NAND-only or NOR-only form to reduce the number of ICs).
  6. Verify the circuit by simulation or by checking the truth table.

Example: full adder

Inputs A,B,CinA, B, C_{in}; outputs Sum SS and carry CoutC_{out}.

AABBCinC_{in}SSCoutC_{out}
00000
00110
01010
01101
10010
10101
11001
11111

K-map simplification gives

S=A⊕B⊕CinS = A \oplus B \oplus C_{in} Cout=AB+Cin(A⊕B)C_{out} = AB + C_{in}(A \oplus B)

which is realised with two XOR gates, two AND gates and one OR gate.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

Which one of the following is hexadecimal equivalent of (5073.052)8(5073.052)_8? (a) A3C.150 (b) B2B.140 (c) A3B.150 (d) B3A.150

Answer

(c) A3B.150

Convert each octal digit to 3 bits: (5073.052)8=(101 000 111 011.000 101 010)2(5073.052)_8 = (101\,000\,111\,011.000\,101\,010)_2. Regroup in fours from the point, padding the fraction with zeros: 1010 0011 1011.0001 0101 00001010\,0011\,1011.0001\,0101\,0000, which is (A3B.150)16(A3B.150)_{16}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

Which one of the following is 9's complement of (3578.501)10(3578.501)_{10}? (a) 4926.947 (b) 3926.947 (c) 4926.937 (d) None of the Above

Answer

(d) None of the Above

The 9's complement is obtained by subtracting each digit from 9: 9999.999−3578.501=6421.4989999.999 - 3578.501 = 6421.498. This matches none of the given options.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

Which one of the following is the equivalent reflected code of 1101? (a) 1001 (b) 1011 (c) 1000 (d) 1010

Answer

(b) 1011

The reflected (Gray) code keeps the MSB and XORs each binary bit with the bit before it: 1, 1⊕1=0, 1⊕0=1, 0⊕1=11,\ 1\oplus1=0,\ 1\oplus0=1,\ 0\oplus1=1, giving 1011.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

When output will go high in NOR Gate? (a) if all inputs are high (b) if any input is high (c) if any input is low (d) if all inputs are low

Answer

(d) if all inputs are low

A NOR gate is an OR followed by NOT, so Y=A+B‾Y=\overline{A+B} is 1 only when every input is 0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

According to Boolean algebra: What is the value of X+1X + 1? (a) Xˉ\bar{X} (b) 1 (c) 0 (d) XX

Answer

(b) 1

By the null (dominance) law of Boolean algebra, X+1=1X+1=1 for both X=0X=0 and X=1X=1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

The logic circuits whose outputs at any instant of time depends not only on the present input but also on the past outputs are called (a) Combinational circuits (b) Sequential circuits (c) Latches (d) Flip-flops

Answer

(b) Sequential circuits

In a sequential circuit the output depends on the present inputs and on the stored past state (memory). A combinational circuit depends on the present inputs only.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

If Q = 1, the output is said to be (a) Reset (b) Set (c) Previous state (d) current state

Answer

(b) Set

A flip-flop is said to be in the set state when Q=1Q=1 (and Qˉ=0\bar Q=0), and in the reset (clear) state when Q=0Q=0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

Which one of the following are also called ripple counters? (a) SSI counters (b) Synchronous counters (c) Asynchronous counters (d) VLSI counters

Answer

(c) Asynchronous counters

In an asynchronous counter the clock drives only the first flip-flop, and each later stage is clocked by the output of the previous one, so the change ripples through the stages. Hence they are called ripple counters.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

How many flip-flops are required to construct MOD-30 counter? (a) 5 (b) 6 (c) 4 (d) 8

Answer

(a) 5

A MOD-NN counter needs nn flip-flops with 2n≥N2^n \ge N. For N=30N=30: 24=16<302^4=16<30 and 25=32≥302^5=32\ge 30, so 5 flip-flops are required.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

How much storage capacity does each stage in a shift register represent? (a) One bit (b) Two bits (c) Four bits (d) Eight bits

Answer

(a) One bit

Each stage of a shift register is one flip-flop, which stores one bit. An nn-stage register therefore stores nn bits.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Define Digital Logic. Explain digital signal with its applications, advantages and disadvantages.

Answer

Digital logic is the branch of electronics that deals with circuits and systems which process information represented by discrete values, normally the two binary levels 0 and 1, using logic gates and Boolean algebra to perform operations and make decisions.

Digital signal

A digital signal is a signal that takes only a finite number of discrete levels, usually two: logic 0 (low, about 0 V) and logic 1 (high, about +5 V or +3.3 V). Unlike an analog signal, which varies continuously, it changes abruptly between these levels.

HIGH (1)  ___      ___________      ___
         |   |    |           |    |   |
LOW  (0) |   |____|           |____|   |___

Applications

  • Computers, microprocessors and memory devices.
  • Digital communication: mobile phones, internet, digital TV and radio.
  • Digital clocks, watches, calculators and electronic displays.
  • Storage and processing of audio, images and video (CD, DVD, MP3, digital cameras).
  • Embedded and control systems: washing machines, traffic lights, automobiles.

Advantages

  • Less affected by noise and distortion, since only two levels must be distinguished.
  • Easy to store, copy and transmit without loss of quality.
  • Error detection and correction are possible.
  • Circuits are easy to design and can be integrated on ICs, which makes them small, cheap and low power.
  • Easy to process with computers and to encrypt for security.

Disadvantages

  • An analog quantity must be converted by ADC and DAC, which adds cost and introduces quantisation error.
  • Needs a larger bandwidth than an equivalent analog signal.
  • Sampling and processing need more complex circuitry and time.
  • A signal may be lost completely when the noise is large enough to flip the logic level.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Define positional number system. Calculate following:
a) Subtract 21 from 35 using 2's complement method
b) Convert (62.75)₁₀ into single precision floating point format

Answer

Positional number system

A positional number system is one in which the value of a digit depends on the digit itself and on its position, each position carrying a weight that is a power of the base (radix) rr. A number dn−1…d1d0.d−1…d−md_{n-1}\dots d_1d_0.d_{-1}\dots d_{-m} has the value

∑i=−mn−1di r i\sum_{i=-m}^{n-1} d_i\, r^{\,i}

For example, (101.1)2=1⋅22+0⋅21+1⋅20+1⋅2−1=5.5(101.1)_2 = 1\cdot2^2+0\cdot2^1+1\cdot2^0+1\cdot2^{-1}=5.5. Decimal (r=10r=10), binary (r=2r=2), octal (r=8r=8) and hexadecimal (r=16r=16) are positional systems.

(a) 35 − 21 using 2's complement (8 bits)

35=0010001135 = 00100011, 21=0001010121 = 00010101

1's complement of 21 = 1110101011101010; adding 1 gives the 2's complement 1110101111101011.

00100011+ 111010111 00001110\begin{array}{r} 00100011\\ +\ 11101011\\ \hline 1\,00001110 \end{array}

The carry out of the MSB is discarded (it shows that the result is positive), so the result is 00001110=(14)1000001110 = (14)_{10}, which agrees with 35−21=1435-21=14.

(b) (62.75)10(62.75)_{10} in single precision (IEEE 754)

Integer part: 62=111110262 = 111110_2. Fraction: 0.75=0.1120.75 = 0.11_2. So 62.75=111110.11262.75 = 111110.11_2.

Normalise: 111110.112=1.11110112×25111110.11_2 = 1.1111011_2 \times 2^{5}.

  • Sign bit = 0 (positive).
  • Biased exponent =5+127=132=100001002= 5+127 = 132 = 10000100_2.
  • Mantissa (23 bits) = the bits after the leading 1, padded with zeros: 1111011000000000000000011110110000000000000000.

0  10000100  111101100000000000000000\ \ 10000100\ \ 11110110000000000000000

In hexadecimal this is (427B0000)16(427B0000)_{16}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Define universal gate. Explain Universal gates with their graphical symbol, algebraic expression, truth table, and Venn diagram.

Answer

Universal gate

A universal gate is a gate with which any other logic gate or any Boolean function can be built using only that gate. NAND and NOR are the universal gates.

NAND gate

  • Symbol: an AND gate with a small circle (bubble) at the output.
  • Expression: Y=A⋅B‾=Aˉ+BˉY=\overline{A\cdot B}=\bar A+\bar B
ABY
001
011
101
110

Venn diagram: with two overlapping circles A and B inside a rectangle (the universe), the NAND output is the whole rectangle except the overlap A∩BA\cap B (it is shaded everywhere except the common region).

Building other gates from NAND: NOT =A⋅A‾=\overline{A\cdot A}; AND =A⋅B‾⋅A⋅B‾‾=\overline{\overline{A\cdot B}\cdot\overline{A\cdot B}}; OR =Aˉ⋅Bˉ‾=\overline{\bar A\cdot\bar B}.

NOR gate

  • Symbol: an OR gate with a small circle at the output.
  • Expression: Y=A+B‾=Aˉ⋅BˉY=\overline{A+B}=\bar A\cdot\bar B
ABY
001
010
100
110

Venn diagram: the NOR output is only the region of the rectangle that lies outside both circles A and B, that is, the complement of A∪BA\cup B.

Building other gates from NOR: NOT =A+A‾=\overline{A+A}; OR =A+B‾+A+B‾‾=\overline{\overline{A+B}+\overline{A+B}}; AND =Aˉ+Bˉ‾=\overline{\bar A+\bar B}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Define Decoder. Explain binary to octal converter with block diagram, truth table and logic diagram.

Answer

Decoder

A decoder is a combinational circuit that converts an nn-bit binary code on its inputs into a unique one-of-2n2^n output line, so that exactly one output is active for each input combination.

Binary to octal converter (3-to-8 decoder)

It takes a 3-bit binary number A2A1A0A_2A_1A_0 and activates the one output D0D_0 to D7D_7 corresponding to the octal digit.

Block diagram:

          +-----------+
 A2 ----->|           |-----> D0
 A1 ----->|  3 to 8   |-----> D1
 A0 ----->|  DECODER  |-----> ...
          |           |-----> D7
 E  ----->|  (enable) |
          +-----------+

Truth table:

A2A1A0D0D1D2D3D4D5D6D7
00010000000
00101000000
01000100000
01100010000
10000001000
10100000100
11000000010
11100000001

Output equations (each output is one minterm):

D0=Aˉ2Aˉ1Aˉ0, D1=Aˉ2Aˉ1A0, D2=Aˉ2A1Aˉ0, D3=Aˉ2A1A0D_0=\bar A_2\bar A_1\bar A_0,\ D_1=\bar A_2\bar A_1A_0,\ D_2=\bar A_2A_1\bar A_0,\ D_3=\bar A_2A_1A_0 D4=A2Aˉ1Aˉ0, D5=A2Aˉ1A0, D6=A2A1Aˉ0, D7=A2A1A0D_4=A_2\bar A_1\bar A_0,\ D_5=A_2\bar A_1A_0,\ D_6=A_2A_1\bar A_0,\ D_7=A_2A_1A_0

Logic diagram: three NOT gates produce Aˉ2,Aˉ1,Aˉ0\bar A_2,\bar A_1,\bar A_0. Eight 3-input AND gates are used, each fed with the appropriate true or complemented inputs as in the equations above, and the output of each AND gate is one of D0D_0 to D7D_7 (an enable input can be added as a fourth input of each AND gate).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Define Multiplexer. Explain 4:1 multiplexer with its block diagram, truth table and logic diagram.

Answer

Multiplexer

A multiplexer (MUX) is a combinational circuit that selects one of several input data lines and passes it to a single output line, the selection being made by the select (control) lines. A 2n2^n-to-1 MUX has 2n2^n data inputs and nn select lines. It is also called a data selector.

4:1 multiplexer

It has four data inputs I0I_0 to I3I_3, two select lines S1S0S_1S_0 and one output YY.

Block diagram:

 I0 ---->|        |
 I1 ---->|  4 : 1 |
 I2 ---->|  MUX   |----> Y
 I3 ---->|        |
          ^    ^
          S1   S0

Truth table:

S1S0Y
00I0I_0
01I1I_1
10I2I_2
11I3I_3

Output equation:

Y=Sˉ1Sˉ0I0+Sˉ1S0I1+S1Sˉ0I2+S1S0I3Y=\bar S_1\bar S_0 I_0+\bar S_1 S_0 I_1+S_1\bar S_0 I_2+S_1S_0 I_3

Logic diagram: two NOT gates give Sˉ1\bar S_1 and Sˉ0\bar S_0. Four 3-input AND gates are fed with (Sˉ1,Sˉ0,I0)(\bar S_1,\bar S_0,I_0), (Sˉ1,S0,I1)(\bar S_1,S_0,I_1), (S1,Sˉ0,I2)(S_1,\bar S_0,I_2) and (S1,S0,I3)(S_1,S_0,I_3). Their outputs go to a 4-input OR gate whose output is YY.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Write short Notes on (any Two):
a) Parallel Adder
b) PLA
c) State Diagram

Answer

(a) Parallel adder

A parallel adder adds two nn-bit binary numbers at once. It is made by connecting nn full adders in cascade: the carry-out of each full adder is the carry-in of the next higher stage, while all the bits of the two numbers An−1…A0A_{n-1}\dots A_0 and Bn−1…B0B_{n-1}\dots B_0 are applied simultaneously. The first stage has carry-in C0C_0 (0 for addition), and the outputs are the sum bits Sn−1…S0S_{n-1}\dots S_0 and the final carry CnC_n.

 A3 B3    A2 B2    A1 B1    A0 B0
  |  |     |  |     |  |     |  |
 +----+   +----+   +----+   +----+
 | FA |<--| FA |<--| FA |<--| FA |<-- C0
 +----+   +----+   +----+   +----+
C4  | S3     | S2     | S1     | S0

For stage ii: Si=Ai⊕Bi⊕CiS_i=A_i\oplus B_i\oplus C_i and Ci+1=AiBi+Ci(Ai⊕Bi)C_{i+1}=A_iB_i+C_i(A_i\oplus B_i). Because each stage must wait for the carry from the previous stage, the carry ripples through, so this is also called a ripple-carry adder. It is simple, but its delay grows with the number of bits; this is reduced by the look-ahead carry adder. With an XOR on the BB inputs controlled by a mode input, the same circuit can also subtract.

(b) PLA (Programmable Logic Array)

A PLA is a programmable logic device with a programmable AND array followed by a programmable OR array, used to implement Boolean functions in sum-of-products form. Inputs and their complements feed the AND array, which generates the required product terms; the OR array then sums selected product terms to form each output. Fuses (or switches) are blown or programmed to select the connections.

inputs -> [ programmable AND array ] -> product terms -> [ programmable OR array ] -> outputs

A PLA of size n×p×mn \times p \times m has nn inputs, pp product terms and mm outputs. Only the product terms that are really needed are generated, and a product term can be shared between several outputs, so a PLA is more efficient than a ROM (which has a fixed AND array decoding all 2n2^n minterms) for functions with many don't care conditions. It is used to implement multiple functions of the same inputs, such as in control units and code converters.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 10 marks

Explain JK and T Flip Flop with their Logic and Diagram, graphical symbol, characteristic table, characteristic equation and excitation table.

Answer

JK flip-flop

The JK flip-flop removes the invalid state of the SR flip-flop: when J=K=1J=K=1 the output toggles.

Logic diagram: a clocked SR flip-flop built from two cross-coupled NAND gates, with J gated with Qˉ\bar Q and K gated with QQ through two 3-input NAND gates along with the clock:

 J ---+--[NAND3]--\
 CLK -+            >--[NAND]--+--- Q
 Q' --+            |   ^      |
                   |   |      |
 K ---+--[NAND3]--/    +--[NAND]--- Q'
 CLK -+
 Q --+

Graphical symbol: a rectangle with inputs J, K and a clock input (triangle) on the left, and outputs Q and Qˉ\bar Q on the right.

Characteristic table:

JKQn+1Q_{n+1}Operation
00QnQ_nNo change
010Reset
101Set
11Qˉn\bar Q_nToggle

Characteristic equation:

Qn+1=JQˉn+KˉQnQ_{n+1}=J\bar Q_n+\bar K Q_n

Excitation table:

QnQ_nQn+1Q_{n+1}JK
000X
011X
10X1
11X0

T (toggle) flip-flop

The T flip-flop is a JK flip-flop with J and K tied together as the single input T. It toggles at each clock pulse when T=1T=1 and holds its state when T=0T=0.

Logic diagram: a JK flip-flop with both J and K connected to T (or a D flip-flop whose input is T⊕QT\oplus Q, using an XOR gate).

Graphical symbol: a rectangle with inputs T and clock, and outputs Q and Qˉ\bar Q.

Characteristic table:

TQn+1Q_{n+1}Operation
0QnQ_nNo change
1Qˉn\bar Q_nToggle

Characteristic equation:

Qn+1=TQˉn+TˉQn=T⊕QnQ_{n+1}=T\bar Q_n+\bar T Q_n=T\oplus Q_n

Excitation table:

QnQ_nQn+1Q_{n+1}T
000
011
101
110

The T flip-flop is mainly used in counters and frequency dividers, because with T=1T=1 the output frequency is half that of the clock.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 10 marks

Differentiate between asynchronous and synchronous sequential circuits with example. Draw a block diagram, truth table and timing diagram to store 2001 in 4-bit SIPO register.

Answer

Synchronous and asynchronous sequential circuits

BasisSynchronousAsynchronous
ClockAll memory elements are triggered by a common clockNo common clock; elements change as the inputs or the outputs of other elements change
State changeOnly at clock edgesAt any time when inputs change
SpeedLimited by the clock periodFaster, no waiting for clock
DesignEasier, free from hazards and racesMore difficult, races and hazards must be avoided
Memory elementsClocked flip-flopsUnclocked latches or time delays
ExampleSynchronous counter, shift registerRipple (asynchronous) counter, SR latch circuits

4-bit SIPO register storing 2001

A 4-bit register holds one decimal digit (in BCD) at a time, so the number 2001 is stored as the four digits 2, 0, 0, 1, that is 0010, 0000, 0000, 00010010,\ 0000,\ 0000,\ 0001, each entered serially and read out in parallel.

Block diagram: four D flip-flops FF3, FF2, FF1, FF0 in a chain with a common clock. Serial data goes to D of FF3; Q3Q_3 goes to D of FF2, Q2Q_2 to D of FF1, Q1Q_1 to D of FF0. The parallel outputs are Q3Q2Q1Q0Q_3Q_2Q_1Q_0.

Serial in --> [FF3]-->[FF2]-->[FF1]-->[FF0]
                |       |       |       |
               Q3      Q2      Q1      Q0   (parallel out)
                     common clock

Data is shifted in least significant bit first so that after four clock pulses the bits sit in their correct positions. Register content Q3Q2Q1Q0Q_3Q_2Q_1Q_0 (starting cleared to 0000):

Digit 2 (0010), serial input sequence 0, 1, 0, 0:

ClockSerial inQ3Q2Q1Q0Q_3Q_2Q_1Q_0
0-0000
100000
211000
300100
400010

Digit 0 (0000), input 0, 0, 0, 0: the register stays 0000 after every clock pulse (this is done twice, for the two zeros).

Digit 1 (0001), serial input sequence 1, 0, 0, 0:

ClockSerial inQ3Q2Q1Q0Q_3Q_2Q_1Q_0
111000
200100
300010
400001

Timing diagram for digit 2 (serial input 0,1,0,0): the single 1 enters at Q3Q_3 on the second clock edge, moves to Q2Q_2 on the third and to Q1Q_1 on the fourth, where it stays as the register holds 0010. Each output is the previous stage's output delayed by one clock period.

CLK : _|‾|_|‾|_|‾|_|‾|_
DIN :  0   1   0   0
Q3  :  0   1   0   0
Q2  :  0   0   1   0
Q1  :  0   0   0   1
Q0  :  0   0   0   0

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 10 marks

Define counter. Write a procedure to design a counter circuit. Design MOD-8 up counter.

Answer

Counter

A counter is a sequential circuit made of flip-flops that goes through a prescribed sequence of states on the application of clock pulses. It is used to count pulses, divide frequency and generate timing. A counter with NN states is a MOD-NN counter.

Procedure to design a (synchronous) counter

  1. Decide the number of states (MOD) and the count sequence; find the number of flip-flops nn from 2n≥N2^n\ge N.
  2. Draw the state diagram.
  3. Choose the type of flip-flop (JK, T or D) and prepare the state table with present state and next state.
  4. Use the excitation table of the flip-flop to find the required inputs for every state transition.
  5. Simplify the flip-flop input equations using K-maps (unused states as don't cares).
  6. Draw the logic diagram with a common clock and verify the design (self-starting check for unused states).

Design of a MOD-8 up counter (using JK flip-flops)

N=8N=8, so n=3n=3 flip-flops Q2Q1Q0Q_2Q_1Q_0, with the sequence 000→001→⋯→111→000000\to001\to\dots\to111\to000. There are no unused states.

State diagram: eight states 0 to 7 in a ring, 0→1→2→3→4→5→6→7→00\to1\to2\to3\to4\to5\to6\to7\to0.

JK excitation: 0→00\to0: JK=0XJK=0X; 0→10\to1: 1X1X; 1→01\to0: X1X1; 1→11\to1: X0X0.

Present Q2Q1Q0Q_2Q_1Q_0Next Q2Q1Q0Q_2Q_1Q_0J2K2J_2K_2J1K1J_1K_1J0K0J_0K_0
0000010X0X1X
0010100X1XX1
0100110XX01X
0111001XX1X1
100101X00X1X
101110X01XX1
110111X0X01X
111000X1X1X1

K-map simplification:

  • J0J_0 is 1 or X in every row, so J0=K0=1J_0=K_0=1.
  • J1J_1 is 1 for 001 and 101 (X for 010, 011, 110, 111), giving J1=K1=Q0J_1=K_1=Q_0.
  • J2J_2 is 1 only for 011 (X for 100 to 111), giving J2=K2=Q1Q0J_2=K_2=Q_1Q_0.

J0=K0=1,J1=K1=Q0,J2=K2=Q1Q0J_0=K_0=1,\qquad J_1=K_1=Q_0,\qquad J_2=K_2=Q_1Q_0

Logic diagram: three JK flip-flops with a common clock. FF0 has J and K tied to logic 1. FF1 has J and K tied to Q0Q_0. FF2 has J and K tied to the output of a 2-input AND gate with inputs Q1Q_1 and Q0Q_0. The outputs Q2Q1Q0Q_2Q_1Q_0 give the binary count 0 to 7.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 5 marks

Subtract: 453.35 - 321.17 using both 9's and 10's complement.

Answer

Subtract 453.35−321.17453.35 - 321.17.

Using 9's complement

9's complement of 321.17=999.99−321.17=678.82321.17 = 999.99 - 321.17 = 678.82.

453.35+678.82=1132.17453.35 + 678.82 = 1132.17

There is an end-around carry, so remove the carry 1 and add it to the result:

132.17+1=132.18132.17 + 1 = 132.18

Using 10's complement

10's complement of 321.17321.17 = 9's complement ++ last place unit =678.82+0.01=678.83= 678.82 + 0.01 = 678.83.

453.35+678.83=1132.18453.35 + 678.83 = 1132.18

The carry is discarded (it shows the result is positive), giving 132.18132.18.

Both methods give 453.35−321.17=132.18453.35 - 321.17 = 132.18.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 5 marks

Define Decoder. Design BCD to Decimal decoder with its block diagram, truth table, circuit diagram and mathematical expression.

Answer

Decoder

A decoder is a combinational circuit that converts an nn-bit coded input into a unique active output out of up to 2n2^n output lines.

BCD to decimal decoder (4-line to 10-line)

It accepts a 4-bit BCD digit ABCDABCD (AA is the MSB) and activates exactly one of the ten outputs D0D_0 to D9D_9. The input combinations 1010 to 1111 never occur in BCD.

Block diagram:

 A ---->|            |----> D0
 B ---->|  BCD to    |----> D1
 C ---->|  Decimal   |----> ...
 D ---->|  decoder   |----> D9

Truth table:

ABCDActive output
0000D0D_0
0001D1D_1
0010D2D_2
0011D3D_3
0100D4D_4
0101D5D_5
0110D6D_6
0111D7D_7
1000D8D_8
1001D9D_9

Each active output is 1 and the other nine are 0 for that row.

Mathematical expressions (each is the minterm of the input):

D0=AˉBˉCˉDˉ,D1=AˉBˉCˉD,D2=AˉBˉCDˉ,D3=AˉBˉCDD_0=\bar A\bar B\bar C\bar D,\quad D_1=\bar A\bar B\bar C D,\quad D_2=\bar A\bar B C\bar D,\quad D_3=\bar A\bar B CD D4=AˉBCˉDˉ,D5=AˉBCˉD,D6=AˉBCDˉ,D7=AˉBCDD_4=\bar A B\bar C\bar D,\quad D_5=\bar A B\bar C D,\quad D_6=\bar A BC\bar D,\quad D_7=\bar A BCD D8=ABˉCˉDˉ,D9=ABˉCˉDD_8=A\bar B\bar C\bar D,\quad D_9=A\bar B\bar C D

Using the don't cares for 1010 to 1111, these can be reduced, for example D8=ADˉD_8=A\bar D, D9=ADD_9=AD, D2=BˉCDˉD_2=\bar BC\bar D, D3=BˉCDD_3=\bar BCD, D6=BCDˉD_6=BC\bar D, D7=BCDD_7=BCD.

Circuit diagram: four NOT gates produce Aˉ,Bˉ,Cˉ,Dˉ\bar A,\bar B,\bar C,\bar D; ten 4-input AND gates (or the reduced forms above) are connected to the true or complemented inputs as in the expressions, and their outputs are D0D_0 to D9D_9.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 5 marks

Explain basic gates and universal gate. Realize NOR gate as a universal gate.

Answer

Basic gates

The basic gates are AND, OR and NOT; every Boolean function can be realised with them.

GateExpressionOutput
ANDY=A⋅BY=A\cdot B1 only when all inputs are 1
ORY=A+BY=A+B1 when any input is 1
NOTY=AˉY=\bar AComplement of the input

Universal gates

NAND (Y=A⋅B‾Y=\overline{A\cdot B}) and NOR (Y=A+B‾Y=\overline{A+B}) are called universal gates because each one alone can be used to build AND, OR and NOT gates, and so any logic circuit. They are also cheaper and easier to fabricate than the basic gates.

NOR gate as a universal gate

  • NOT: join both inputs: Y=A+A‾=AˉY=\overline{A+A}=\bar A.
  • OR: NOR followed by a NOR used as inverter: Y=A+B‾+A+B‾‾=A+BY=\overline{\overline{A+B}+\overline{A+B}}=A+B.
  • AND: invert each input with a NOR, then NOR them: Y=Aˉ+Bˉ‾=A⋅BY=\overline{\bar A+\bar B}=A\cdot B (De Morgan's law).

Realisation: the NOT uses one NOR, the OR uses two NOR gates, and the AND uses three NOR gates (two as inverters on AA and BB, and one that combines Aˉ\bar A and Bˉ\bar B). Since AND, OR and NOT can all be made from NOR gates, NOR is a universal gate.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 5 marks

Differentiate between synchronous and asynchronous counter. Design 3-bit up ripple counter.

Answer

Synchronous vs asynchronous counter

Synchronous counterAsynchronous (ripple) counter
All flip-flops receive the same clock simultaneouslyClock is given only to the first flip-flop; each next flip-flop is clocked by the output of the previous one
All flip-flops change state togetherFlip-flops change one after another
Propagation delay is that of one flip-flop, so it is fastDelays add up (n×tpdn\times t_{pd}), so it is slow
Needs extra gates for the inputsSimple, no extra logic
No decoding glitchesDecoding glitches can occur
Used at high frequencyUsed at low frequency

3-bit up ripple counter

It counts 00 to 77 (MOD-8) using three JK flip-flops with J=K=1J=K=1 (toggle mode), triggered on the falling edge.

Connections: the clock goes to the clock input of FF0FF_0 (Q0Q_0 is the LSB). Q0Q_0 drives the clock of FF1FF_1, and Q1Q_1 drives the clock of FF2FF_2. J=K=1J=K=1 for all three.

Count sequence:

ClockQ2Q_2Q1Q_1Q0Q_0
0000
1001
2010
3011
4100
5101
6110
7111
8000

Working: Q0Q_0 toggles at every falling clock edge. Q1Q_1 toggles when Q0Q_0 falls (1→01\to0), and Q2Q_2 toggles when Q1Q_1 falls. So the frequencies are f/2f/2, f/4f/4 and f/8f/8, and the counter returns to 000000 after 8 pulses.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 10 marks

Explain PLA with its block diagram. Design a combinational circuit using a ROM that accepts a 3-bit number and generates an output binary number equal to the square of the input number with circuit diagram, truth table and block diagram.

Answer

Programmable Logic Array (PLA)

A PLA is a programmable logic device in which both the AND array and the OR array are programmable. It implements several Boolean functions in sum-of-products form. Only the product terms that are needed are generated, and they can be shared between outputs, so it is more economical than a ROM when many input combinations are not needed.

Block diagram: the nn inputs go to input buffers/inverters, which give each variable and its complement. These feed the programmable AND array, which produces kk product terms. The product terms feed the programmable OR array, which forms the sum of the chosen product terms. The OR outputs go through programmable XOR/output buffers to give the mm outputs F1…FmF_1\dots F_m. Fuse (or cross-point) connections are programmed to select which inputs enter each AND gate and which products enter each OR gate.

ROM that gives the square of a 3-bit number

The input is A2A1A0A_2A_1A_0 (values 0 to 7). The largest output is 72=49=11000127^2=49=110001_2, so 6 output bits B5B4B3B2B1B0B_5B_4B_3B_2B_1B_0 are needed. A ROM of size 8×68\times6 is used: the 3 inputs go to a 3×83\times8 decoder (the address lines) and the OR/fuse array programs the output bits.

Truth table:

A2A1A0A_2A_1A_0DecimalSquareB5B_5B4B_4B3B_3B2B_2B1B_1B0B_0
00000000000
00111000001
01024000100
01139001001
100416010000
101525011001
110636100100
111749110001

Simplification: B0=A0B_0=A_0 and B1=0B_1=0 always, so these need no ROM storage (B0B_0 is connected directly to A0A_0, B1B_1 to ground). The remaining outputs are ORs of decoder lines mim_i: B2=m2+m6,B3=m3+m5,B4=m4+m5+m7,B5=m6+m7B_2=m_2+m_6,\quad B_3=m_3+m_5,\quad B_4=m_4+m_5+m_7,\quad B_5=m_6+m_7

Circuit: the 3×83\times8 decoder produces m0…m7m_0\dots m_7. Programmable (blown/intact) connections feed m2,m6m_2,m_6 into the OR for B2B_2; m3,m5m_3,m_5 for B3B_3; m4,m5,m7m_4,m_5,m_7 for B4B_4; m6,m7m_6,m_7 for B5B_5.

Block diagram: 3 inputs →\rightarrow ROM (8×68\times6) →\rightarrow 6 outputs B5…B0B_5\dots B_0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 10 marks

What is counter? Design a mod 7 synchronous counter with state table, state diagram, circuit diagram.

Answer

Counter

A counter is a sequential circuit made of flip-flops that goes through a predetermined sequence of states when clock pulses are applied. It is used for counting pulses, frequency division and timing. A MOD-NN counter has NN distinct states.

Design of a MOD-7 synchronous counter

Seven states (00 to 66) need 3 flip-flops A,B,CA,B,C (AA is the MSB). JK flip-flops are used, and the unused state 111111 is treated as don't care.

State diagram: 000→001→010→011→100→101→110→000000\to001\to010\to011\to100\to101\to110\to000 (a single loop of 7 states; the state 111111 is unused).

State table with flip-flop inputs:

Present ABCABCNext A+B+C+A^+B^+C^+JAJ_AKAK_AJBJ_BKBK_BJCJ_CKCK_C
0000010X0X1X
0010100X1XX1
0100110XX01X
0111001XX1X1
100101X00X1X
101110X01XX1
110000X1X10X
111XXXXXXXXX

K-map simplification (using the don't care 111111): JA=BC,KA=BJ_A=BC,\quad K_A=B JB=C,KB=A+CJ_B=C,\quad K_B=A+C JC=AB‾,KC=1J_C=\overline{AB},\quad K_C=1

Circuit diagram: three JK flip-flops with a common clock. An AND gate gives JA=BCJ_A=BC; KAK_A is connected to BB; JBJ_B to CC; an OR gate gives KB=A+CK_B=A+C; a NAND gate gives JC=AB‾J_C=\overline{AB}; KCK_C is tied to logic 1.

Self-starting check: from the unused state 111111: JA=KA=1J_A=K_A=1 so A→0A\to0; JB=KB=1J_B=K_B=1 so B→0B\to0; JC=0,KC=1J_C=0,K_C=1 so C→0C\to0. The next state is 000000, so the counter corrects itself.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 10 marks

Define multiplexer. Explain 4:1 multiplexer with its block diagram, truth table and logic diagram. Mention how a 4:1 multiplexer works like lower order multiplexer.

Answer

Multiplexer

A multiplexer (MUX) is a combinational circuit that selects one of many data inputs and sends it to a single output, according to the select lines. A 2n2^n-to-1 MUX has 2n2^n data inputs, nn select lines and one output. It is also called a data selector.

4:1 multiplexer

Block diagram: a box with four data inputs I0,I1,I2,I3I_0,I_1,I_2,I_3, two select inputs S1,S0S_1,S_0, an enable (optional) and one output YY.

Truth table:

S1S_1S0S_0YY
00I0I_0
01I1I_1
10I2I_2
11I3I_3

Boolean expression: Y=Sˉ1Sˉ0I0+Sˉ1S0I1+S1Sˉ0I2+S1S0I3Y=\bar S_1\bar S_0I_0+\bar S_1S_0I_1+S_1\bar S_0I_2+S_1S_0I_3

Logic diagram: two NOT gates produce Sˉ1,Sˉ0\bar S_1,\bar S_0. Four 3-input AND gates take (data input, and the correct combination of select lines) and a 4-input OR gate adds their outputs to give YY.

4:1 MUX used as a lower-order (2:1) multiplexer

A 4:1 MUX can act as a 2:1 MUX by using only one select line. Tie S1=0S_1=0 and use S0S_0 as the single select line: then Y=Sˉ0I0+S0I1Y=\bar S_0I_0+S_0I_1, and I2,I3I_2,I_3 are unused. So a 4:1 MUX can replace a 2:1 MUX. In general, a higher-order MUX works as any lower-order one by grounding the extra select lines (and, for a larger MUX, three 2:1 MUXes can in turn form one 4:1 MUX).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

Define Priority encoder. Design 4:2 priority encoder with its block diagram, truth table, circuit diagram and mathematical expression.

Answer

Priority encoder

A priority encoder is an encoder in which, when more than one input is 1 at the same time, the output code is that of the input with the highest priority. It also has a valid output VV that is 1 when at least one input is 1.

4:2 priority encoder (D3D_3 has the highest priority, D0D_0 the lowest)

Block diagram: four inputs D3D2D1D0D_3D_2D_1D_0 go to the encoder, which has outputs Y1,Y0Y_1,Y_0 and a valid bit VV.

Truth table (X = don't care):

D3D_3D2D_2D1D_1D0D_0Y1Y_1Y0Y_0VV
0000XX0
0001001
001X011
01XX101
1XXX111

Boolean expressions (from K-maps): Y1=D3+D2Y_1=D_3+D_2 Y0=D3+Dˉ2D1Y_0=D_3+\bar D_2D_1 V=D3+D2+D1+D0V=D_3+D_2+D_1+D_0

Circuit diagram: an OR gate on D3,D2D_3,D_2 gives Y1Y_1. A NOT gate on D2D_2 and an AND with D1D_1, then an OR with D3D_3, give Y0Y_0. A 4-input OR gives VV.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

Why NAND and NOR gates are called universal gates? Realize NAND gate as universal gate.

Answer

Universal gates

NAND and NOR are called universal gates because every other basic gate (NOT, AND, OR) and hence any Boolean function can be built using only NAND gates or only NOR gates. Since AND, OR and NOT are enough to realise any logic function, and each of them can be made from NAND alone (or NOR alone), these gates are "universal". They are also cheaper and easier to fabricate in IC form.

Realisation using NAND gates

  • NOT: join both inputs of a NAND gate: A⋅A‾=Aˉ\overline{A\cdot A}=\bar A.
  • AND: a NAND followed by a NAND used as inverter: AB‾‾=AB\overline{\overline{AB}}=AB (2 gates).
  • OR: invert each input with a NAND (as NOT), then NAND them: Aˉ⋅Bˉ‾=A+B\overline{\bar A\cdot\bar B}=A+B (3 gates).

So NAND alone gives NOT, AND and OR, which proves it is universal.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

What is race around condition? Explain how JK master flip flop is used to eliminate race around condition.

Answer

Race-around condition

In a level-triggered JK flip-flop with J=K=1J=K=1, the output toggles during the whole time the clock is high. If the clock pulse width tpt_p is longer than the propagation delay tpdt_{pd} of the flip-flop, the output changes more than once during one pulse. The toggled output is fed back to the inputs and toggles again, so the output oscillates between 0 and 1 and the final state at the end of the pulse is uncertain. This is the race-around condition. It occurs only for J=K=1J=K=1 and when tp>tpdt_p>t_{pd}.

Master-slave JK flip-flop (the cure)

It consists of two JK flip-flops connected in series: the master and the slave. The clock is applied directly to the master and through an inverter to the slave. The outputs Q,QˉQ,\bar Q of the master go to the inputs of the slave, and the slave outputs are fed back to the master's inputs (JJ and KK gates).

Working:

  1. When CLK=1CLK=1, the master is enabled and the slave is disabled. The master takes the state according to JJ and KK, but the slave holds the old output.
  2. When CLK=0CLK=0, the master is disabled (it ignores any further change of the inputs) and the slave is enabled, so it copies the master's output to QQ and Qˉ\bar Q.

The final output changes only once, at the falling edge of the clock, and the feedback from the output reaches the master only while it is disabled. Hence the output cannot toggle more than once per clock pulse, and the race-around condition is eliminated.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

Differentiate between synchronous and ripple counter. Design mod 7 ripple counter with its state diagram, sequence table, logic diagram and timing diagram.

Answer

Synchronous vs ripple counter

Synchronous counterRipple (asynchronous) counter
Common clock to all flip-flopsEach flip-flop is clocked by the previous flip-flop's output
Flip-flops change state togetherFlip-flops change one after the other
Total delay equals one flip-flop delay, so it is fastDelays accumulate, so it is slow
Needs extra combinational gatesSimpler hardware
No glitches in decodingMay give glitches

MOD-7 ripple counter

Three JK flip-flops (J=K=1J=K=1, falling-edge triggered) form a 3-bit ripple counter with 8 states. To make it MOD-7, a NAND gate detects the state 111111 (the 7th state) and its output is connected to the asynchronous clear inputs (active low) of all flip-flops, which resets the counter to 000000 at once. So the counter counts 000000 to 110110 (00 to 66) and the state 111111 lasts only for a very short time.

Sequence table:

ClockQ2Q_2Q1Q_1Q0Q_0
0000
1001
2010
3011
4100
5101
6110
7000 (via the transient 111111)

State diagram: 000→001→010→011→100→101→110→000000\to001\to010\to011\to100\to101\to110\to000.

Logic diagram: clock to FF0FF_0, Q0→Q_0\to clock of FF1FF_1, Q1→Q_1\to clock of FF2FF_2; J=K=1J=K=1. A 3-input NAND gate with inputs Q2,Q1,Q0Q_2,Q_1,Q_0 drives CLR‾\overline{CLR} of all three flip-flops.

Timing diagram: Q0Q_0 toggles at every falling clock edge (f/2f/2), Q1Q_1 toggles on each falling edge of Q0Q_0, and Q2Q_2 on each falling edge of Q1Q_1. At the 7th falling clock edge, Q2Q1Q0Q_2Q_1Q_0 momentarily becomes 111111, the NAND output goes low and all outputs clear to 000000. The output frequency of Q2Q_2 is therefore f/7f/7 (not an exact 50% duty cycle).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 10 marks

Define PLA with its block diagram. Realize BCD to gray code converter using PAL.

Answer

PLA (Programmable Logic Array)

A PLA is a programmable logic device with a programmable AND array followed by a programmable OR array, so that any sum-of-products function of the inputs can be implemented. The same product term can be shared by several outputs.

Block diagram: inputs →\rightarrow input buffers (giving true and complement) →\rightarrow programmable AND array (product terms) →\rightarrow programmable OR array (sum terms) →\rightarrow output buffers (optionally with XOR) →\rightarrow outputs.

In a PAL (programmable array logic) only the AND array is programmable and the OR array is fixed, which makes it simpler and cheaper; each output has a fixed number of product terms.

BCD to Gray code converter using PAL

Let the BCD input be ABCDABCD (AA = MSB, digits 00 to 99) and the Gray output G3G2G1G0G_3G_2G_1G_0. The input combinations 10101010 to 11111111 are don't cares.

DecimalABCDABCDG3G2G1G0G_3G_2G_1G_0
000000000
100010001
200100011
300110010
401000110
501010111
601100101
701110100
810001100
910011101

K-map simplification (using the don't cares) gives: G3=AG_3=A G2=A+BG_2=A+B G1=BˉC+BCˉG_1=\bar BC+B\bar C G0=CˉD+CDˉG_0=\bar CD+C\bar D

PAL programming (AND array; each OR gate is fixed):

Product termAABBCCDDOutput
11–––G3G_3
21–––G2G_2
3–1––G2G_2
4–01–G1G_1
5–10–G1G_1
6––01G0G_0
7––10G0G_0

(1 = true input fuse kept, 0 = complemented input kept, – = no connection.) Four inputs with their complements go into the AND array; 7 product terms are connected to four fixed OR gates (one output each: 1, 2, 2 and 2 terms). The PAL has 4 inputs and 4 outputs.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 10 marks

What is register? Explain types of registers depending on input output with its block diagram & logic diagram.

Answer

Register

A register is a group of flip-flops, each storing one bit, used to store and move binary data. An nn-bit register has nn flip-flops and can store nn bits. A register that can shift its contents is called a shift register. Data is loaded or read either serially (one bit per clock) or in parallel (all bits at once).

Types of registers (by input and output)

1. Serial-in serial-out (SISO) Block diagram: serial data in →\rightarrow [4 flip-flops in a chain] →\rightarrow serial data out, with a common clock. Logic diagram: four D flip-flops; the DD input of the first is the serial input, the QQ of each is connected to the DD of the next, and the QQ of the last is the serial output. On each clock pulse every bit moves one place. A 4-bit word needs 4 clocks to load and 4 more to read out.

2. Serial-in parallel-out (SIPO) Same chain of D flip-flops, but the output of every flip-flop Q3Q2Q1Q0Q_3Q_2Q_1Q_0 is available. Data enters serially (4 clocks) and then all bits are read together. Used for serial-to-parallel conversion.

3. Parallel-in serial-out (PISO) Each flip-flop has a 2:1 multiplexer (AND-OR gates) at its D input controlled by a SHIFT/LOAD‾\overline{\text{LOAD}} line. With LOAD, the parallel inputs D3D2D1D0D_3D_2D_1D_0 are loaded in one clock; with SHIFT, the bits shift toward the last flip-flop and come out one by one at the serial output. Used for parallel-to-serial conversion.

4. Parallel-in parallel-out (PIPO) Each D flip-flop has its own data input and own output, all with a common clock. All bits are loaded in a single clock pulse and all are available at the outputs together. There is no shifting, so it is the fastest and is used as a storage register (buffer).

TypeInputOutputSpeed
SISOSerialSerialSlowest
SIPOSerialParallelSlow load, fast read
PISOParallelSerialFast load, slow read
PIPOParallelParallelFastest

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

Convert +64.35 into IEEE 754 double precision floating point binary number.

Answer

IEEE 754 double precision format: 1 sign bit, 11 exponent bits (bias 10231023), 52 mantissa bits.

Step 1: integer part. 64=1000000264=1000000_2.

Step 2: fraction part. Multiply 0.350.35 repeatedly by 2: 0.35→0.7 (0), 1.4 (1), 0.8 (0), 1.6 (1), 1.2 (1), 0.4 (0), 0.8 (0), 1.6 (1), 1.2 (1), 0.4 (0),…0.35\to0.7\,(0),\ 1.4\,(1),\ 0.8\,(0),\ 1.6\,(1),\ 1.2\,(1),\ 0.4\,(0),\ 0.8\,(0),\ 1.6\,(1),\ 1.2\,(1),\ 0.4\,(0),\dots so 0.35=0.01 0110 0110 0110…20.35=0.01\,0110\,0110\,0110\dots_2 (after the first two bits "01", the block 01100110 repeats).

Hence 64.35=1000000.01 0110 0110…2=1.00000001 0110 0110…2×2664.35=1000000.01\,0110\,0110\dots_2=1.00000001\,0110\,0110\dots_2\times2^{6}

Step 3: fields

  • Sign: +⇒0+\Rightarrow 0.
  • Exponent: 6+1023=1029=1000000010126+1023=1029=10000000101_2.
  • Mantissa (52 bits, leading 1 dropped): 000000 01000000\,01 followed by 01100110 repeated 11 times. The next bits are 0110…0110\ldots, which start with 0, so rounding is downward.

Result: 0  10000000101  00000001011001100110011001100110011001100110011001100\ \ 10000000101\ \ 0000000101100110011001100110011001100110011001100110

In hexadecimal: 0x4050166666666666.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

Explain the universal gates with their logic symbol, logic expression, and truth table. Realize an OR Gate using NAND Gate.

Answer

Universal gates

NAND and NOR gates are universal because any logic function can be built using only one of them.

NAND gate

  • Symbol: AND gate with a bubble at the output.
  • Expression: Y=A⋅B‾Y=\overline{A\cdot B}
AABBYY
001
011
101
110

NOR gate

  • Symbol: OR gate with a bubble at the output.
  • Expression: Y=A+B‾Y=\overline{A+B}
AABBYY
001
010
100
110

OR gate using NAND gates

By De Morgan's theorem: A+B=Aˉ⋅Bˉ‾=A⋅A‾⋅B⋅B‾‾A+B=\overline{\bar A\cdot\bar B}=\overline{\overline{A\cdot A}\cdot\overline{B\cdot B}}

Three NAND gates are used: two have their inputs joined (so they act as inverters giving Aˉ\bar A and Bˉ\bar B), and the third NAND takes Aˉ,Bˉ\bar A,\bar B and gives Y=A+BY=A+B.

AABBAˉ\bar ABˉ\bar BY=AˉBˉ‾Y=\overline{\bar A\bar B}
00110
01101
10011
11001

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

Minimize the given Boolean function in both SOP and POS using K-map and realize using basic gates:
F(A,B,C,D) = E(0,1,2,5,7,8,9,10,13,15)

Answer

F(A,B,C,D)=∑m(0,1,2,5,7,8,9,10,13,15)F(A,B,C,D)=\sum m(0,1,2,5,7,8,9,10,13,15)

K-map (rows ABAB, columns CDCD in the order 00,01,11,1000,01,11,10):

AB\CDAB\backslash CD00011110
001101
010110
110110
101101

Minimal SOP (group the 1s)

  • Quad m5,m7,m13,m15m_5,m_7,m_{13},m_{15}: BDBD
  • Quad m0,m2,m8,m10m_0,m_2,m_8,m_{10} (the four corners): BˉDˉ\bar B\bar D
  • Quad m0,m1,m8,m9m_0,m_1,m_8,m_9: BˉCˉ\bar B\bar C (covers m1,m9m_1,m_9)

F=BD+BˉDˉ+BˉCˉF=BD+\bar B\bar D+\bar B\bar C

Realisation (basic gates): two NOT gates (Bˉ\bar B, Dˉ\bar D) and a NOT for CC; three AND gates (B⋅DB\cdot D, Bˉ⋅Dˉ\bar B\cdot\bar D, Bˉ⋅Cˉ\bar B\cdot\bar C) feeding one 3-input OR gate.

Minimal POS (group the 0s), zeros are m3,m4,m6,m11,m12,m14m_3,m_4,m_6,m_{11},m_{12},m_{14}:

  • Quad m4,m6,m12,m14m_4,m_6,m_{12},m_{14}: B=1,D=0B=1,D=0, giving the sum (Bˉ+D)(\bar B+D)
  • Pair m3,m11m_3,m_{11}: B=0,C=1,D=1B=0,C=1,D=1, giving the sum (B+Cˉ+Dˉ)(B+\bar C+\bar D)

F=(Bˉ+D)(B+Cˉ+Dˉ)F=(\bar B+D)(B+\bar C+\bar D)

Realisation: NOT gates for BB, CC, DD; one 2-input OR gate for (Bˉ+D)(\bar B+D) and one 3-input OR gate for (B+Cˉ+Dˉ)(B+\bar C+\bar D); both feed a 2-input AND gate.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

Explain 4-bit Binary Parallel Adder. Implement a full Adder using two half Adders.

Answer

4-bit binary parallel adder

A 4-bit parallel adder adds two 4-bit numbers A3A2A1A0A_3A_2A_1A_0 and B3B2B1B0B_3B_2B_1B_0 with an input carry C0C_0 and produces a 4-bit sum S3S2S1S0S_3S_2S_1S_0 and a final carry C4C_4. It is made of four full adders connected in cascade: the carry-out of each full adder is the carry-in of the next (the carry "ripples" from the LSB stage to the MSB stage).

  • FA0FA_0: inputs A0,B0,C0A_0,B_0,C_0; outputs S0,C1S_0,C_1
  • FA1FA_1: inputs A1,B1,C1A_1,B_1,C_1; outputs S1,C2S_1,C_2
  • FA2FA_2: inputs A2,B2,C2A_2,B_2,C_2; outputs S2,C3S_2,C_3
  • FA3FA_3: inputs A3,B3,C3A_3,B_3,C_3; outputs S3,C4S_3,C_4

All bits of both numbers are applied at the same time, so it is called "parallel". The delay is the sum of the carry delays through all stages, which limits its speed (a carry look-ahead adder removes this).

Full adder using two half adders

A full adder gives S=A⊕B⊕Cin,Cout=AB+Cin(A⊕B)S=A\oplus B\oplus C_{in},\qquad C_{out}=AB+C_{in}(A\oplus B)

  • Half adder 1: inputs A,BA,B; outputs S1=A⊕BS_1=A\oplus B and C1=ABC_1=AB.
  • Half adder 2: inputs S1S_1 and CinC_{in}; outputs S=S1⊕CinS=S_1\oplus C_{in} and C2=S1CinC_2=S_1C_{in}.
  • An OR gate combines the carries: Cout=C1+C2=AB+(A⊕B)CinC_{out}=C_1+C_2=AB+(A\oplus B)C_{in}.

This is exactly the full-adder equations, so two half adders and one OR gate make a full adder.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

Define combinational circuit. Design a binary to octal converter.

Answer

Combinational circuit

A combinational circuit is a logic circuit whose output depends only on the present values of its inputs. It contains logic gates only, with no memory element and no feedback. Examples: adder, decoder, multiplexer.

Binary to octal converter

A 3-bit binary number A2A1A0A_2A_1A_0 corresponds to one octal digit (00 to 77), so the converter has 3 inputs and 8 outputs D0…D7D_0\dots D_7 (one line high for each octal digit). This is a 3×83\times8 decoder.

A2A_2A1A_1A0A_0D0D_0D1D_1D2D_2D3D_3D4D_4D5D_5D6D_6D7D_7
00010000000
00101000000
01000100000
01100010000
10000001000
10100000100
11000000010
11100000001

Each output is a minterm: D0=Aˉ2Aˉ1Aˉ0, D1=Aˉ2Aˉ1A0, …, D7=A2A1A0D_0=\bar A_2\bar A_1\bar A_0,\ D_1=\bar A_2\bar A_1A_0,\ \dots,\ D_7=A_2A_1A_0

Circuit: three NOT gates give the complements, and eight 3-input AND gates, one per output, are connected to the correct true/complement inputs. (A longer binary number is converted by grouping its bits in 3s from the right.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

What is a synchronous sequential circuit? Explain RS NAND latch with block diagram, logic diagram, truth table, and timing diagram.

Answer

Synchronous sequential circuit

A synchronous sequential circuit is one whose output depends on the present inputs and also on the past history (stored state), and whose state changes only at discrete instants set by a clock signal. It consists of a combinational circuit and memory elements (flip-flops) with a common clock.

RS NAND latch

It is a basic memory element made of two cross-coupled NAND gates with active-low inputs Sˉ\bar S (set) and Rˉ\bar R (reset).

Block diagram: a box with inputs Sˉ,Rˉ\bar S,\bar R and outputs Q,QˉQ,\bar Q.

Logic diagram: NAND gate 1 has inputs Sˉ\bar S and Qˉ\bar Q and output QQ; NAND gate 2 has inputs Rˉ\bar R and QQ and output Qˉ\bar Q.

Truth table:

Sˉ\bar SRˉ\bar RQQQˉ\bar QOperation
0011Invalid (both outputs 1)
0110Set
1001Reset
11QnQ_nQˉn\bar Q_nNo change (hold)

Working: a 0 on a NAND input forces its output to 1. With Sˉ=0\bar S=0 the output QQ becomes 1, and then with Rˉ=1\bar R=1 the second gate gives Qˉ=0\bar Q=0 (set). With Rˉ=0\bar R=0, Qˉ=1\bar Q=1 and Q=0Q=0 (reset). When both inputs are 1, the cross-coupled feedback keeps the previous state. If both go from 0 to 1 together the next state is unpredictable.

Timing diagram: QQ goes high when Sˉ\bar S goes low, and stays high after Sˉ\bar S returns high. QQ goes low when Rˉ\bar R goes low, and stays low after Rˉ\bar R returns high. Qˉ\bar Q is always the complement of QQ, except during the invalid case Sˉ=Rˉ=0\bar S=\bar R=0 where both are high.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

Define register. Explain serial-in serial-out register with working mechanism for data input 11010

Answer

Register

A register is a group of flip-flops used to store binary data; an nn-bit register has nn flip-flops. A register that can move its data left or right by one position at each clock pulse is called a shift register.

Serial-in serial-out (SISO) shift register

It is a chain of D flip-flops. The serial data is fed to the DD input of the first flip-flop, the QQ output of each flip-flop goes to the DD input of the next, and all use the same clock. The output is taken serially from the last flip-flop. At every clock pulse, each bit moves one place to the right.

Working for data input 11010 (5-bit register Q4Q3Q2Q1Q0Q_4Q_3Q_2Q_1Q_0; the bits are entered in the order 1,1,0,1,01,1,0,1,0, first bit first; register starts at 00000):

ClockSerial inputQ4Q_4Q3Q_3Q2Q_2Q1Q_1Q0Q_0
0–00000
1110000
2111000
3001100
4110110
5001011

After 5 clock pulses the data is stored in the register (Q0Q_0 holds the first bit entered). To read it out serially, apply more clocks with input 0: the output Q0Q_0 gives 1,1,0,1,01,1,0,1,0 in the clock pulses 5 to 9 (states 01011→00101→00010→00001→0000001011\to00101\to00010\to00001\to00000), the same order in which the data was entered. So 5 clock pulses are needed to load and 4 more to get out the remaining bits.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 10 marks

Explain ring counter. Design a 3-bit asynchronous up counter with block diagram, count sequence table, and timing diagram.

Answer

Ring counter

A ring counter is a shift register in which the output of the last flip-flop is fed back to the input of the first. It is initialised so that only one flip-flop holds a 1 and all others hold 0. This single 1 circulates around the ring with each clock pulse. An nn-bit ring counter has nn states (MOD-nn).

For a 4-bit ring counter the sequence is 1000→0100→0010→0001→10001000\to0100\to0010\to0001\to1000. It uses nn flip-flops for nn states, needs no decoding (each output is directly one state signal) and is used for timing and control sequencing. Its disadvantage is that it needs more flip-flops than a binary counter.

3-bit asynchronous up counter

Block diagram: three JK (or T) flip-flops FF0,FF1,FF2FF_0,FF_1,FF_2 in a chain. The external clock goes to FF0FF_0 only. Q0Q_0 clocks FF1FF_1, and Q1Q_1 clocks FF2FF_2. J=K=1J=K=1 for all flip-flops (toggle mode), triggered on the falling edge. Q0Q_0 is the LSB and Q2Q_2 the MSB.

Count sequence table:

ClockQ2Q_2Q1Q_1Q0Q_0Decimal
00000
10011
20102
30113
41004
51015
61106
71117
80000

Timing diagram: Q0Q_0 toggles on every falling edge of the clock, so its frequency is f/2f/2. Q1Q_1 toggles on every falling edge of Q0Q_0 (frequency f/4f/4). Q2Q_2 toggles on every falling edge of Q1Q_1 (frequency f/8f/8). Each waveform is delayed from the previous by one flip-flop propagation delay, so the delay builds up from stage to stage. After 8 pulses the counter returns to 000. It is a MOD-8 counter.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 10 marks

Define ECL. Explain 3-bit even parity generator and checker.

Answer

ECL (Emitter-Coupled Logic)

ECL is a non-saturating bipolar logic family. Its transistors work as a current-steering differential amplifier (the emitters are coupled to a common current source) and are never driven into saturation, so there is no storage-time delay. This makes it the fastest logic family (propagation delay below 1 ns). Its logic levels are about −0.9-0.9 V (high) and −1.7-1.7 V (low), it has small voltage swing, so noise margin is low, and power dissipation is high. It has OR and NOR outputs at the same time. It is used in very high-speed computers and communication circuits.

3-bit even parity generator

An even parity bit PP is added to the 3-bit message ABCABC so that the total number of 1s in the 4-bit word is even.

AABBCCPP
0000
0011
0101
0110
1001
1010
1100
1111

P=A⊕B⊕CP=A\oplus B\oplus C

Circuit: two XOR gates in cascade: (A⊕B)⊕C(A\oplus B)\oplus C.

4-bit even parity checker

At the receiver, the four bits A,B,C,PA,B,C,P are checked. The parity error check output is PEC=A⊕B⊕C⊕PPEC=A\oplus B\oplus C\oplus P

Circuit: three XOR gates (two in the first level and one in the second level, or in cascade).

  • PEC=0PEC=0: the number of 1s is even, so there is no error (for single-bit errors).
  • PEC=1PEC=1: odd number of 1s, so an error has occurred in transmission.

For example, for ABC=101ABC=101 the transmitted word is 10101010 (P=0P=0). If BB is corrupted, the received word is 11101110, which has an odd number of 1s, so PEC=1⊕1⊕1⊕0=1PEC=1\oplus1\oplus1\oplus0=1 and the error is detected.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 10 marks

Explain the design procedure of a clocked sequential circuit. Design a clocked sequential circuit whose state diagram is given in the figure.

Answer

Design procedure of a clocked sequential circuit

  1. Obtain the word description of the circuit and draw the state diagram.
  2. Convert it into a state table (present state, input, next state, output).
  3. Decide the number of flip-flops nn from the number of states (2n≥2^n\ge states) and assign binary codes to the states.
  4. Choose the type of flip-flop and, using its excitation table, find the flip-flop input values needed for every transition.
  5. Simplify the flip-flop input equations and output equations using K-maps (unused states are don't cares).
  6. Draw the logic diagram and check that it works (and that it is self-starting from unused states).

Design

The state diagram has four states 00,01,10,1100,01,10,11 (flip-flops A,BA,B) and an input xx. On x=0x=0 the circuit stays in its present state, except 01→1001\to10. On x=1x=1 the circuit moves 00→0100\to01, 01→0101\to01, 10→1110\to11, 11→0011\to00. JK flip-flops are used.

State table and excitation:

AABBxxA+A^+B+B^+JAJ_AKAK_AJBJ_BKBK_B
000000X0X
001010X1X
010101XX1
011010XX0
10010X00X
10111X01X
11011X0X0
11100X1X1

Using the JK excitation table (0→00\to0: 0X0X; 0→10\to1: 1X1X; 1→01\to0: X1X1; 1→11\to1: X0X0) and K-maps: JA=Bxˉ,KA=BxJ_A=B\bar x,\quad K_A=Bx JB=x,KB=AxJ_B=x,\quad K_B=Ax

Circuit: two JK flip-flops with a common clock. JAJ_A is an AND of BB and xˉ\bar x; KAK_A is an AND of BB and xx; JBJ_B is connected directly to xx; KBK_B is an AND of AA and xx. All four states are used, so there is no unused state to check.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 5 marks

Differentiate between combinational and sequential logic circuits. Implement a full adder circuit using a decoder and two OR gates.

Answer

Combinational vs sequential circuits

Combinational circuitSequential circuit
Output depends only on present inputsOutput depends on present inputs and past state
No memory elementHas memory (flip-flops)
No feedbackFeedback from output to input
Usually no clockUsually clocked
Faster and simplerSlower and more complex
Examples: adder, MUX, decoderExamples: counter, register

Full adder using a decoder and two OR gates

A full adder has inputs A,B,CinA,B,C_{in} and outputs S=∑m(1,2,4,7),Cout=∑m(3,5,6,7)S=\sum m(1,2,4,7),\qquad C_{out}=\sum m(3,5,6,7)

AABBCinC_{in}SSCoutC_{out}
00000
00110
01010
01101
10010
10101
11001
11111

Use a 3×83\times8 decoder with A,B,CinA,B,C_{in} as the inputs (with AA as MSB). Its outputs D0…D7D_0\dots D_7 are the minterms m0…m7m_0\dots m_7. Then:

  • Connect outputs D1,D2,D4,D7D_1,D_2,D_4,D_7 to a 4-input OR gate to get SS.
  • Connect outputs D3,D5,D6,D7D_3,D_5,D_6,D_7 to a second 4-input OR gate to get CoutC_{out}.

(The decoder outputs must be active high; with an active-low decoder, NAND gates are used in place of the OR gates.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 5 marks

Define priority encoder. Explain 8-to-3 priority encoder in detail.

Answer

Priority encoder

A priority encoder is an encoder that produces the binary code of the highest-priority active input when two or more inputs are 1 at the same time. A valid output VV shows whether any input is active (so that the output 000000 from D0D_0 can be distinguished from "no input").

8-to-3 priority encoder (D7D_7 has the highest priority, D0D_0 the lowest)

It has 8 inputs D7…D0D_7\dots D_0 and 3 outputs Y2Y1Y0Y_2Y_1Y_0 and VV.

D7D_7D6D_6D5D_5D4D_4D3D_3D2D_2D1D_1D0D_0Y2Y_2Y1Y_1Y0Y_0VV
00000000XXX0
000000010001
0000001X0011
000001XX0101
00001XXX0111
0001XXXX1001
001XXXXX1011
01XXXXXX1101
1XXXXXXX1111

Boolean expressions: Y2=D7+D6+D5+D4Y_2=D_7+D_6+D_5+D_4 Y1=D7+D6+Dˉ5Dˉ4D3+Dˉ5Dˉ4D2Y_1=D_7+D_6+\bar D_5\bar D_4D_3+\bar D_5\bar D_4D_2 Y0=D7+Dˉ6D5+Dˉ6Dˉ4D3+Dˉ6Dˉ4Dˉ2D1Y_0=D_7+\bar D_6D_5+\bar D_6\bar D_4D_3+\bar D_6\bar D_4\bar D_2D_1 V=D7+D6+D5+D4+D3+D2+D1+D0V=D_7+D_6+D_5+D_4+D_3+D_2+D_1+D_0

Working: Y2Y_2 is 1 whenever any of the upper four inputs is active. The terms with complemented inputs in Y1Y_1 and Y0Y_0 ensure that a lower-priority input affects the output only if all higher-priority inputs are 0. For example, if D5=D2=1D_5=D_2=1 and the rest are 0, then Y2=1Y_2=1, Y1=0Y_1=0, Y0=1Y_0=1, giving 101101 for D5D_5 and ignoring D2D_2.

Circuit: NOT gates for the complemented inputs, AND gates for the product terms, and OR gates to form Y2,Y1,Y0,VY_2,Y_1,Y_0,V.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 5 marks

Explain the duality theorem with an example. Draw logic gates that implement the expression:

Answer

Duality theorem

The dual of a Boolean expression is obtained by interchanging the OR (+) and AND (·) operations and interchanging the constants 0 and 1, while leaving the variables (and complements) unchanged. The duality theorem states that if two Boolean expressions are equal (an identity is true), then their duals are also equal. Every postulate and theorem of Boolean algebra therefore appears as a pair.

IdentityIts dual
x+0=xx + 0 = xx⋅1=xx \cdot 1 = x
x+x′=1x + x' = 1x⋅x′=0x \cdot x' = 0
x+xy=xx + xy = xx(x+y)=xx(x+y) = x
(x+y)′=x′y′(x+y)' = x'y'(xy)′=x′+y′(xy)' = x'+y'

Example. Absorption law: x+x′y=x+yx + x'y = x + y.

Proof: x+x′y=(x+x′)(x+y)=1⋅(x+y)=x+yx + x'y = (x + x')(x + y) = 1\cdot(x+y) = x + y.

Its dual, obtained by swapping + and ·, is x(x′+y)=xyx(x' + y) = xy which is also true: x(x′+y)=xx′+xy=0+xy=xyx(x'+y) = xx' + xy = 0 + xy = xy.

Logic gates for an expression. An expression in sum-of-products form is built with one AND gate per product term feeding one OR gate. For F=AB+A′CF = AB + A'C:

  • NOT gate on AA gives A′A'.
  • AND gate 1 takes A,BA, B and gives ABAB.
  • AND gate 2 takes A′,CA', C and gives A′CA'C.
  • OR gate takes both AND outputs and gives F=AB+A′CF = AB + A'C.
A ──┬──────────┐
    │          AND ── AB ──┐
B ──┼──────────┘           OR ── F
    │  ┌─NOT─┐             │
    └──┤     AND ── A'C ───┘
C ─────┴─────┘

Using the dual, the same function can be implemented as product-of-sums, F=(A+C)(A′+B)F = (A + C)(A' + B), with two OR gates feeding one AND gate.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 5 marks

Write short notes on (any two):
a) State reduction table
b) Multiplexe
c) Synchronous and Asynchronous counter

Answer

a) State reduction table

In a sequential circuit, the number of flip-flops depends on the number of states. Two states are equivalent if, for every input sequence, they give the same output and go to equivalent next states. Equivalent states can be merged, which reduces the states, the flip-flops and the gates needed. The state table is reduced by finding equivalent rows.

Example:

PresentNext (x=0)Next (x=1)Output (x=0)Output (x=1)
aab00
bcd00
cad00
def01
eaf01
fgf01
gaf01

States ee and gg have identical next states and outputs, so gg is replaced by ee. Then dd and ff become equivalent and ff is replaced by dd. The table reduces from 7 states to 5 (a, b, c, d, e), needing 3 flip-flops either way, but with simpler logic.

b) Multiplexer

A multiplexer (MUX) is a combinational circuit that selects one of 2n2^n data inputs and sends it to a single output, using nn select lines. It is a data selector.

A 4-to-1 MUX has inputs I0I_0-I3I_3, select lines S1,S0S_1, S_0 and output Y=S1′S0′I0+S1′S0I1+S1S0′I2+S1S0I3Y = S_1'S_0' I_0 + S_1'S_0 I_1 + S_1S_0' I_2 + S_1S_0 I_3

S1S0Y
00I0
01I1
10I2
11I3

It is built from four AND gates, one OR gate and inverters. Uses: data routing, parallel-to-serial conversion, and implementing Boolean functions.

c) Synchronous and asynchronous counters

Asynchronous (ripple) counterSynchronous counter
Clock is applied only to the first flip-flop; each later flip-flop is clocked by the previous outputAll flip-flops receive the same clock simultaneously
Delays add up (propagation delay ×\times n), so it is slowOnly one flip-flop delay, so it is fast
Simple, little hardwareNeeds extra combinational logic for the inputs
Glitches in decoding intermediate statesNo such glitches
Limited to lower frequenciesSuitable for high frequencies

A 3-bit ripple counter uses three T flip-flops with T=1T = 1, each clocked by the previous QQ. In a synchronous counter T0=1T_0 = 1, T1=Q0T_1 = Q_0, T2=Q0Q1T_2 = Q_0Q_1.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 10 marks

Differentiate between PAL and PLA. Design a combinational circuit with four inputs (BCD digit) and four outputs lines that generate the 2'Complements of the binary input pattern with circuit diagram, truth table, and block diagram.

Answer

PAL versus PLA

PLA (Programmable Logic Array)PAL (Programmable Array Logic)
Both AND array and OR array are programmableAND array is programmable, OR array is fixed
More flexible, product terms can be shared among outputsLess flexible, product terms are not shared
More expensive and slowerCheaper, faster and easier to program
Harder to program and useSimpler to use

Design: 2's complement generator

Inputs A B C DA\,B\,C\,D (AA is the MSB), outputs W X Y ZW\,X\,Y\,Z with WXYZWXYZ = 2's complement of ABCDABCD = (ABCD)′+1(ABCD)' + 1 (mod 16). For BCD input only 0-9 occur; 10-15 are don't-care.

Truth table

DecimalA B C DW X Y Z
00 0 0 00 0 0 0
10 0 0 11 1 1 1
20 0 1 01 1 1 0
30 0 1 11 1 0 1
40 1 0 01 1 0 0
50 1 0 11 0 1 1
60 1 1 01 0 1 0
70 1 1 11 0 0 1
81 0 0 01 0 0 0
91 0 0 10 1 1 1
10-15X X X X

Simplification. To form a 2's complement, copy bits from the LSB up to and including the first 1, then complement the remaining bits. This gives Z=DZ = D Y=C⊕DY = C \oplus D X=B⊕(C+D)X = B \oplus (C + D) W=A⊕(B+C+D)W = A \oplus (B + C + D)

Check with 6 (01100110): Z=0Z = 0, Y=1⊕0=1Y = 1\oplus 0 = 1, X=1⊕1=0X = 1 \oplus 1 = 0, W=0⊕1=1W = 0 \oplus 1 = 1, giving 10101010. Correct. Check with 9 (10011001): Z=1Z=1, Y=0⊕1=1Y=0\oplus1=1, X=0⊕1=1X = 0\oplus1=1, W=1⊕1=0W = 1\oplus 1 = 0, giving 01110111. Correct.

Block diagram

A ─┐            ┌─ W
B ─┤  2's       ├─ X
C ─┤ complement ├─ Y
D ─┘ generator  └─ Z

Circuit diagram: ZZ is connected straight to DD. One OR gate gives C+DC+D and an XOR gate with BB gives XX. An XOR gate on C,DC, D gives YY. A three-input OR gate on B,C,DB, C, D followed by an XOR with AA gives WW.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 10 marks

Explain shift register with parallel load. Design a synchronous Mod-10 counter to count in the sequence 0,2,4,5,6,8 using T flip-flops.

Answer

Shift register with parallel load

A shift register is a group of flip-flops connected in cascade so that the stored binary data shifts by one position on each clock pulse. A shift register with parallel load can also load all bits at once from parallel inputs.

Each stage has a 2-to-1 multiplexer in front of its D flip-flop, controlled by a Shift/Load line:

  • Shift/Load = 0: the D input takes the output of the previous stage (serial shift).
  • Shift/Load = 1: the D input takes the parallel data input IiI_i (parallel load).

For a 4-bit register: D3=D_3 = Shift/Load′⋅'\cdot Serial-in + Shift/Load ⋅I3\cdot I_3, and Di=D_i = Shift/Load′⋅Qi+1+'\cdot Q_{i+1} + Shift/Load ⋅Ii\cdot I_i for the others. On the clock pulse the register either shifts right by one bit or loads all four bits simultaneously.

Counter design with T flip-flops

The sequence is 0→2→4→5→6→8→00 \to 2 \to 4 \to 5 \to 6 \to 8 \to 0. The state is ABCDABCD (four flip-flops). Unused states 1, 3, 7, 9, 10-15 are don't-care. For a T flip-flop T=Q⊕Q+T = Q \oplus Q^+.

Present ABCDNext ABCDTATBTCTDT_A T_B T_C T_D
000000100 0 1 0
001001000 1 1 0
010001010 0 0 1
010101100 0 1 1
011010001 1 1 0
100000001 0 0 0

K-map simplification (using the don't cares):

  • TA=1T_A = 1 for 0110 and 1000: TA=A+BCT_A = A + BC
  • TB=1T_B = 1 for 0010 and 0110: TB=CT_B = C
  • TC=1T_C = 1 for 0000, 0010, 0101, 0110: TC=A′B′+C+DT_C = A'B' + C + D
  • TD=1T_D = 1 for 0100 and 0101: TD=BC′T_D = BC'

Check: in state 0100 all of TA=0+0=0T_A = 0 + 0 = 0, TB=0T_B = 0, TC=0+0+0=0T_C = 0+0+0 = 0, TD=1T_D = 1, giving 01010101. In state 0110: TA=1T_A = 1, TB=1T_B = 1, TC=1T_C = 1, TD=0T_D = 0, giving 10001000. Correct.

The circuit has four T flip-flops on a common clock, with TAT_A from an OR of AA and the AND BCBC; TBT_B directly from CC; TCT_C from an OR of A′B′A'B', CC and DD; and TDT_D from the AND BC′BC'.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 10 marks

Explain how race condition in JK flip-flop can be resolved. A sequential circuit with two D Flip-Flops (A, B), inputs x,yx, y, and output zzis defined by:A(t+1)=xy′+xBB(t+1)=x′B+xAz=A\begin{aligned} A(t+1) &= xy' + xB \\ B(t+1) &= x'B + xA \\ z &= A \end{aligned}

Answer

Race condition in a JK flip-flop

When J=K=1J = K = 1 the JK flip-flop toggles. If the clock pulse stays at 1 for longer than the propagation delay of the flip-flop, the output toggles, the changed output feeds back to the inputs, and it toggles again, repeatedly during the same pulse. The final state is unpredictable. This is the race-around condition.

It is resolved by:

  1. Master-slave construction: two flip-flops in series, the master is enabled when the clock is 1 and the slave when the clock is 0. The output changes only when the clock falls, so feedback cannot reach the master during the same pulse.
  2. Edge triggering: the flip-flop responds only at the rising or falling clock edge, so the output changes once per clock.
  3. Narrow clock pulse: the pulse width is made shorter than the propagation delay (hard to ensure in practice).

Analysis of the sequential circuit

A(t+1)=xy′+xB=x(y′+B)A(t+1) = xy' + xB = x(y' + B), B(t+1)=x′B+xAB(t+1) = x'B + xA, z=Az = A.

State table (present state ABAB, next state A+B+A^+B^+):

ABx yA+B+z
0000000
0001000
0010100
0011000
0100010
0101010
0110100
0111100
1000001
1001001
1010111
1011011
1100011
1101011
1110111
1111111

State transitions (next state, by xyxy = 00, 01, 10, 11):

Present00011011
0000001000
0101011010
1000001101
1101011111

Output z=Az = A depends only on the present state (Moore machine). When x=0x = 0, AA is cleared and BB holds; when x=1x = 1, AA is set if y=0y = 0 or B=1B = 1, and BB takes the old value of AA.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

Questions from TU BCA 2018 First Semester Computer Fundamentals and Applications (TU board exam, 2018 (scanned paper compiled by Aadim College)), TU BCA 2019 First Semester Computer Fundamentals and Applications (TU board exam, 2019), TU BCA 2019 First Semester Computer Fundamentals and Applications (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2020 First Semester Computer Fundamentals and Applications (TU board exam, 2020), TU BCA 2021 First Semester Computer Fundamentals and Applications (TU board exam, 2021), TU BCA 2022 First Semester Computer Fundamentals and Applications (TU board exam, 2022), TU BCA 2023 First Semester Computer Fundamentals and Applications (TU board exam, 2023), TU BCA 2024 First Semester Computer Fundamentals and Applications (TU board exam, 2024), TU BCA 2025 First Semester Computer Fundamentals and Applications (TU board exam, 2025), TU BCA 2018 First Semester Digital Logic (TU board exam, 2018 (scanned paper compiled by Aadim College)), TU BCA 2019 First Semester Digital Logic (TU board exam, 2019), TU BCA 2019 First Semester Digital Logic (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2020 First Semester Digital Logic (TU board exam, 2020), TU BCA 2021 First Semester Digital Logic (TU board exam, 2021), TU BCA 2022 First Semester Digital Logic (TU board exam, 2022), TU BCA 2023 First Semester Digital Logic (TU board exam, 2023), TU BCA 2024 First Semester Digital Logic (TU board exam, 2024), TU BCA 2018 First Semester Mathematics I (TU board exam, 2018 (scanned paper compiled by Aadim College)), TU BCA 2019 First Semester Mathematics I (TU board exam, 2019), TU BCA 2020 First Semester Mathematics I (TU board exam, 2020), TU BCA 2021 First Semester Mathematics I (TU board exam, 2021), TU BCA 2022 First Semester Mathematics I (TU board exam, 2022), TU BCA 2023 First Semester Mathematics I (TU board exam, 2023), TU BCA 2024 First Semester Mathematics I (TU board exam, 2024), TU BCA 2018 First Semester English I (TU board exam, 2018 (scanned paper compiled by Aadim College)), TU BCA 2019 First Semester English I (TU board exam, 2019 (scanned paper compiled by Aadim College)), TU BCA 2019 First Semester English I (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2018 First Semester Society and Technology (TU board exam, 2018 (scanned paper compiled by Aadim College)), TU BCA 2019 First Semester Society and Technology (TU board exam, 2019 (scanned paper compiled by Aadim College)), TU BCA 2019 First Semester Society and Technology (TU board exam, listed as 2019 (a second 2019 set in the compilation)) and TU BCA 2019 First Semester Society and Technology (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)). Answers are written for this site; check them against your class notes.