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:
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
with (variables ).
Minterms of (ABCD):
- , so
- , so
- , so
Don't cares:
- , so
- , so
K-map (rows , columns ; X = don't care)
| AB \ CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 1 | 0 | 0 | X |
| 01 | 0 | X | 0 | 1 |
| 11 | 0 | 0 | 0 | 1 |
| 10 | 1 | 0 | 0 | X |
SOP:
- Quad gives
- Quad gives
POS: group the 0s (using the X in and where useful):
- (all cells) gives
- gives
Both forms are equal: .
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
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 , columns ; X = don't care):
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | X | 1 | 0 | 0 |
| 01 | 0 | 0 | 0 | X |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 1 | 0 | X | 0 |
SOP form (group the 1s, using don't cares where useful)
- Cells 12, 13, 15, 14 (row ):
- Cells 8, 12:
- Cells 0 (X), 1:
POS form (group the 0s, using don't cares where useful)
- Cells 2, 3, 10, 11 (X): , so the sum term is
- Cells 4, 5, 7, 6 (X): , so the sum term is
- Cells 9, 11 (X): , so the sum term is
Check: for minterm 9 () the last factor is , so as required; for minterm 8 () all three factors are 1, so 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
So at 0, 1, 3, 7, 8, 12; don't care at 5, 10, 13, 14; and at the remaining minterms 2, 4, 6, 9, 11, 15.
K-map (rows , columns )
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)
- gives (uses X at 10, 14).
- gives (uses X at 13).
- gives (uses X at 5), covering .
POS (group the 0s)
- gives (uses X at 10, 14), covering 8 and 12.
- gives (uses X at 5), covering 1, 3, 7.
- gives , covering 0.
Complementing:
Check: at : , , , so . At : , so . At : all three factors are 1, so . At : , so . At : all 1, so .
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 and and outputs and . It removes the invalid state of the SR flip-flop: when 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 , and ; its output is .
- Lower gate: inputs , and ; its output is .
- These feed the cross-coupled NAND latch whose outputs are and .
The feedback of and to the input gates is what makes toggle the output.
Truth table (at an active clock pulse)
| Operation | |||
|---|---|---|---|
| 0 | 0 | No change | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic table
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
Characteristic equation: .
Excitation table (what inputs are needed for a required transition)
| 0 | 0 | 0 | X |
| 0 | 1 | 1 | X |
| 1 | 0 | X | 1 |
| 1 | 1 | X | 0 |
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 . On the active clock edge the output takes the value of , so . It is also called a delay or data flip-flop. It is made from an SR flip-flop by connecting and , so the invalid state cannot occur.
| D | Q(t+1) |
|---|---|
| 0 | 0 |
| 1 | 1 |
Clocked RS flip-flop
Logic diagram: the basic cross-coupled NAND (or NOR) latch is preceded by two gates. Input is ANDed with the clock to give the set input of the latch, and 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 and reach the latch.
Operation:
- : no change.
- : reset, .
- : set, .
- : invalid, since both outputs go to the same level and the final state is unpredictable.
Truth table
| CP | S | R | Q(t+1) | State |
|---|---|---|---|---|
| 0 | X | X | Q(t) | No change |
| 1 | 0 | 0 | Q(t) | No change |
| 1 | 0 | 1 | 0 | Reset |
| 1 | 1 | 0 | 1 | Set |
| 1 | 1 | 1 | ? | Invalid |
Characteristic equation: , with .
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 flip-flops. A synchronous design with JK flip-flops follows. States are .
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 ABC | Next ABC | JA | KA | JB | KB | JC | KC |
|---|---|---|---|---|---|---|---|
| 000 | 001 | 0 | X | 0 | X | 1 | X |
| 001 | 010 | 0 | X | 1 | X | X | 1 |
| 010 | 011 | 0 | X | X | 0 | 1 | X |
| 011 | 100 | 1 | X | X | 1 | X | 1 |
| 100 | 000 | X | 1 | 0 | X | 0 | X |
| 101, 110, 111 | unused (don't care) |
K-map simplification (states 101, 110, 111 as don't cares)
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:
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 .
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 , that is .
Write the subtrahend with 4 integer bits: .
Using 2's complement
1's complement of is . Add 1 at the last bit: 2's complement .
The carry out is discarded (it indicates a positive result), so the answer is .
Using 1's complement
1's complement of is .
There is an end-around carry: remove the carry and add it to the last bit.
Answer: () 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 as ):
For D flip-flops and .
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 term is shared and can use a single gate), two 2-input OR gates and two D flip-flops. The output is taken directly from .
2. State table (present state , inputs )
| Present | Next | Next | ||
|---|---|---|---|---|
| 00 | 00 | 0 | 0 | 0 |
| 00 | 01 | 1 | 0 | 0 |
| 00 | 10 | 0 | 0 | 0 |
| 00 | 11 | 0 | 0 | 0 |
| 01 | 00 | 0 | 1 | 1 |
| 01 | 01 | 1 | 1 | 1 |
| 01 | 10 | 0 | 0 | 1 |
| 01 | 11 | 0 | 0 | 1 |
| 10 | 00 | 0 | 0 | 0 |
| 10 | 01 | 1 | 0 | 0 |
| 10 | 10 | 1 | 1 | 0 |
| 10 | 11 | 1 | 1 | 0 |
| 11 | 00 | 0 | 1 | 1 |
| 11 | 01 | 1 | 1 | 1 |
| 11 | 10 | 1 | 1 | 1 |
| 11 | 11 | 1 | 1 | 1 |
For example, with , : , .
3. State diagram
The states are (labelled ). The output depends only on the state: in states 01 and 11, in states 00 and 10. Transitions are labelled :
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 , loads and holds its value; when , holds its value and loads . State 11 is reached and held while and ; from 11 the circuit leaves only through (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 are the maxterms 0, 2, 4, 6, 8, 10, 12, 14, so for the odd minterms 5, 7, 13, 15, and the don't-care conditions are the cells 1, 3, 9, 11.
K-map (rows , columns ; X = don't care):
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 0 | X | X | 0 |
| 01 | 0 | 1 | 1 | 0 |
| 11 | 0 | 1 | 1 | 0 |
| 10 | 0 | X | X | 0 |
SOP form. The cells with (the whole column and : cells 1, 3, 5, 7, 9, 11, 13, 15) form one octet, using the don't cares as 1. The octet is independent of , and :
POS form. Group the 0s (cells 0, 2, 4, 6, 8, 10, 12, 14), which form the octet . Writing the group as the product and complementing it (De Morgan) gives the sum term , with no other variable involved:
Both forms give the same result, , so the function needs no gate at all, only a wire from input .
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 and and the carry-in , giving a sum and a carry-out .
Truth table:
| A | B | S | ||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
From the truth table, and .
K-map simplification of gives
Logic diagram: two half adders and an OR gate. The first half adder takes and (XOR gives , AND gives ). The second half adder takes and (XOR gives the sum , AND gives ). An OR gate combines the two AND outputs to give .
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
- State the problem and decide the number of inputs and outputs.
- Assign letter symbols to the inputs and outputs.
- Derive the truth table that defines the relation between inputs and outputs.
- Obtain the simplified Boolean expression for each output (K-map or Boolean algebra).
- Draw the logic diagram with the simplified expressions and verify it.
Half adder
A half adder adds two single bits and and gives a sum and a carry .
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Boolean expressions:
Logic diagram: an XOR gate with inputs 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 , ; input ; output .
(i) Logic diagram
- : a NOT gate on and an OR gate with give , connected to flip-flop .
- : a NOT gate on and an AND gate with give , connected to flip-flop .
- Output: a NOT gate on and an OR gate with give .
- Both flip-flops share one clock.
(ii) State table
| 0 | 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 |
(iii) State diagram (Moore type, because depends only on the present state: in states and in state )
- State : on go to ; on go to .
- State : on or go to .
- State : on go to ; on go to .
- State : on or go to .
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
| Latch | Flip-flop |
|---|---|
| Level sensitive: the output follows the inputs for as long as the enable is active | Edge 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 hardware | More hardware, but reliable in synchronous circuits |
Clocked SR flip-flop
It is an SR latch with two extra NAND gates that gate the inputs and with the clock . When the flip-flop holds its state; when the inputs act on it.
Logic diagram:
S ──┐
NAND ──┐
CLK─┤ │
└──────┼── NAND (Q) ──── Q
│ ╳ cross-coupled
┌──────┼── NAND (Q') ─── Q'
CLK─┤ │
NAND ──┘
R ──┘
Truth table (with )
| S | R | Q(t+1) | Operation |
|---|---|---|---|
| 0 | 0 | Q(t) | No change |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | ? | Invalid (forbidden) |
Characteristic table
| S | R | Q(t) | Q(t+1) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | X |
| 1 | 1 | 1 | X |
Characteristic equation: with the constraint .
Excitation table
| Q(t) | Q(t+1) | S | R |
|---|---|---|---|
| 0 | 0 | 0 | X |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | X | 0 |
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 .
Using 10's complement
10's complement of (3 integer digits):
The carry (leftmost 1) is discarded, so the result is 219.2.
Using 9's complement
9's complement of :
The end-around carry is added to the result:
The answer is 219.2 by both methods. Check: .
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:
- AND: NAND followed by a NAND used as NOT:
- OR: invert each input with a NAND, then NAND them: (De Morgan)
NOR as a universal gate
- NOT: tie the inputs together:
- OR: NOR followed by a NOR used as NOT:
- AND: invert each input with a NOR, then NOR them: (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 (or fewer) input lines and 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 to , 3 outputs )
| D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | A2 | A1 | A0 |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 |
Boolean equations
Logic diagram: three 4-input OR gates.
- OR gate 1 takes and gives .
- OR gate 2 takes and gives .
- OR gate 3 takes and gives .
is not connected to any gate, because the all-zero output already represents .
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 , , , share one clock.
- The serial input goes to of .
- feeds of , feeds of , and feeds of .
- The four outputs 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 . After four clock pulses the four serial bits are available in parallel. The first bit entered is in .
Operation example: serial input 1, 0, 1, 1 (register initially 0000)
| Clock | Serial in | ||||
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | |
| 1 | 1 | 1 | 0 | 0 | 0 |
| 2 | 0 | 0 | 1 | 0 | 0 |
| 3 | 1 | 1 | 0 | 1 | 0 |
| 4 | 1 | 1 | 1 | 0 | 1 |
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 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.
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 programmable | Only the AND array is programmable; the OR array is fixed |
| More flexible; product terms can be shared among outputs | Less flexible; product terms cannot be shared |
| More complex and costly | Simpler, cheaper and faster |
| Needs more fuses to program | Needs fewer fuses |
PLA design
,
K-map simplification
: minterms 2 (010) and 3 (011) combine to ; minterm 5 (101) is alone, .
: minterms 0 and 4 combine to ; minterms 5 and 7 combine to .
The PLA needs four distinct product terms:
, , , .
PLA program table
| Product term | Product | |||||
|---|---|---|---|---|---|---|
| 0 | 1 | - | 1 | - | ||
| 1 | 0 | 1 | 1 | - | ||
| - | 0 | 0 | - | 1 | ||
| 1 | - | 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: , .)
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: . It stores one bit and delays the data by one clock period, so it is also called a delay flip-flop.
| 0 | 0 |
| 1 | 1 |
Master-slave flip-flop using JK flip-flops
An ordinary level-triggered JK flip-flop suffers from the race-around condition: when 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 , and the clock CLK. The second (slave) receives the master's outputs and as its and , and the inverted clock CLK'. The final outputs and 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 , (and its own feedback), while the slave is disabled (its clock CLK' = 0), so the output 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)
| Operation | |||
|---|---|---|---|
| 0 | 0 | No change | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic equation: . Connecting and 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) counter | Synchronous counter |
|---|---|
| Clock is applied only to the first flip-flop; each next flip-flop is clocked by the previous output | The 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 limited | Faster; higher operating frequency |
| Simple circuit, no extra gates | Needs additional combinational logic (AND gates) |
| Glitches may occur in decoded states | No such glitches |
| Example: ripple counter | Example: 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 so that each toggles on a clock edge. Outputs with the LSB. The flip-flops are negative-edge triggered, the clock goes to FF0 and the output 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: .
State table
| Clock pulse | Decimal | ||||
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 2 | 0 | 0 | 1 | 0 | 2 |
| 3 | 0 | 0 | 1 | 1 | 3 |
| 4 | 0 | 1 | 0 | 0 | 4 |
| 5 | 0 | 1 | 0 | 1 | 5 |
| 6 | 0 | 1 | 1 | 0 | 6 |
| 7 | 0 | 1 | 1 | 1 | 7 |
| 8 | 1 | 0 | 0 | 0 | 8 |
| 9 | 1 | 0 | 0 | 1 | 9 |
| 10 | 1 | 0 | 1 | 0 | 10 |
| 11 | 1 | 0 | 1 | 1 | 11 |
| 12 | 1 | 1 | 0 | 0 | 12 |
| 13 | 1 | 1 | 0 | 1 | 13 |
| 14 | 1 | 1 | 1 | 0 | 14 |
| 15 | 1 | 1 | 1 | 1 | 15 |
| 16 | 0 | 0 | 0 | 0 | 0 (recycles) |
State diagram: (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
has half the clock frequency, a quarter, an eighth and 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 -bit binary code on its inputs into a maximum of unique output lines, activating exactly one output for each input combination. It is the opposite of an encoder.
3-to-8 line decoder
Inputs ( MSB), outputs to . Each output is a minterm of the inputs. Optionally an enable input is ANDed with each output.
Truth table
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Output equations
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 address inputs and outputs has words of bits. Internally it is a fixed AND array (an -to- 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 () and 2 outputs (), so a ROM is required (4 words of 2 bits).
| Address | Stored word |
|---|---|
| 00 | 1 0 |
| 01 | 0 1 |
| 10 | 1 1 |
| 11 | 1 0 |
From the table:
ROM structure: a 2-to-4 decoder produces the word lines to (the minterms); the OR array connections (fuses left intact) are:
A1 -->[ 2-to-4 ]--> W0 --------+-------> OR --> F1
A0 -->[ decoder ]--> W1 -----+--|-------> OR --> F2
W2 -----+--+--(to both ORs)
W3 ---------+-------> F1 OR
That is, feed the OR gate of and feed the OR gate of . 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
- Invalid state: when with CLK = 1, both outputs become 1 (or both 0 in a NOR version), violating the condition . When the clock then falls, the next state is unpredictable.
- Forbidden input condition: the user must make sure and are never 1 together, which restricts its use.
- No toggle operation: there is no input combination that complements the output, so counters and similar circuits cannot be built directly.
- Race/indeterminate behaviour: if and 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 and are fed back to the input gates so that and . The input condition 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
- : no change, .
- : reset, .
- : set, .
- : toggle, . Because of the feedback the invalid state never occurs.
Characteristic table
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
Characteristic equation: .
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
,
Simplification
: pairs , , .
: pairs , , and minterm 7 .
To reduce the number of product terms, also simplify the complement of . :
Now and share and , so only four distinct product terms are needed (, , , ) instead of six. Output is taken as the complement of this sum (PLA outputs have an XOR gate to select true or complemented form).
PLA program table
| Product term | Product | (C) | (T) | |||
|---|---|---|---|---|---|---|
| 1 | 0 | 0 | - | 1 | - | |
| 2 | 0 | - | 0 | 1 | 1 | |
| 3 | - | 0 | 0 | 1 | 1 | |
| 4 | 1 | 1 | 1 | - | 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 and .
Verification: covers , whose complement is , which is . covers , which is .
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 logic | Sequential logic |
|---|---|
| Output depends only on the present inputs | Output depends on present inputs and on past inputs (stored state) |
| No memory element | Contains memory elements (flip-flops, latches) |
| No clock is needed | Usually clocked (synchronous) or event driven (asynchronous) |
| Described by a truth table or Boolean expression | Described by a state table, state diagram |
| Faster and simpler | Slower and more complex |
| Examples: adder, multiplexer, decoder, encoder, comparator | Examples: flip-flop, register, counter, memory |
Design procedure of combinational logic
- State the problem and determine the required number of input and output variables.
- Assign symbols to the input and output variables.
- Derive the truth table that defines the required relationship between inputs and outputs.
- Obtain the simplified Boolean function for each output using a K-map or Boolean algebra (SOP or POS).
- Draw the logic diagram using gates (possibly converting to NAND-only or NOR-only form to reduce the number of ICs).
- Verify the circuit by simulation or by checking the truth table.
Example: full adder
Inputs ; outputs Sum and carry .
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
K-map simplification gives
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 ?
(a) A3C.150
(b) B2B.140
(c) A3B.150
(d) B3A.150
Answer
(c) A3B.150
Convert each octal digit to 3 bits: . Regroup in fours from the point, padding the fraction with zeros: , which is .
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 ?
(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: . 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: , 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 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 ?
(a)
(b) 1
(c) 0
(d)
Answer
(b) 1
By the null (dominance) law of Boolean algebra, for both and .
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 (and ), and in the reset (clear) state when .
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- counter needs flip-flops with . For : and , 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 -stage register therefore stores 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) . A number has the value
For example, . Decimal (), binary (), octal () and hexadecimal () are positional systems.
(a) 35 − 21 using 2's complement (8 bits)
,
1's complement of 21 = ; adding 1 gives the 2's complement .
The carry out of the MSB is discarded (it shows that the result is positive), so the result is , which agrees with .
(b) in single precision (IEEE 754)
Integer part: . Fraction: . So .
Normalise: .
- Sign bit = 0 (positive).
- Biased exponent .
- Mantissa (23 bits) = the bits after the leading 1, padded with zeros: .
In hexadecimal this is .
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:
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Venn diagram: with two overlapping circles A and B inside a rectangle (the universe), the NAND output is the whole rectangle except the overlap (it is shaded everywhere except the common region).
Building other gates from NAND: NOT ; AND ; OR .
NOR gate
- Symbol: an OR gate with a small circle at the output.
- Expression:
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
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 .
Building other gates from NOR: NOT ; OR ; AND .
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 -bit binary code on its inputs into a unique one-of- 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 and activates the one output to corresponding to the octal digit.
Block diagram:
+-----------+
A2 ----->| |-----> D0
A1 ----->| 3 to 8 |-----> D1
A0 ----->| DECODER |-----> ...
| |-----> D7
E ----->| (enable) |
+-----------+
Truth table:
| A2 | A1 | A0 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Output equations (each output is one minterm):
Logic diagram: three NOT gates produce . 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 to (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 -to-1 MUX has data inputs and select lines. It is also called a data selector.
4:1 multiplexer
It has four data inputs to , two select lines and one output .
Block diagram:
I0 ---->| |
I1 ---->| 4 : 1 |
I2 ---->| MUX |----> Y
I3 ---->| |
^ ^
S1 S0
Truth table:
| S1 | S0 | Y |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Output equation:
Logic diagram: two NOT gates give and . Four 3-input AND gates are fed with , , and . Their outputs go to a 4-input OR gate whose output is .
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 -bit binary numbers at once. It is made by connecting 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 and are applied simultaneously. The first stage has carry-in (0 for addition), and the outputs are the sum bits and the final carry .
A3 B3 A2 B2 A1 B1 A0 B0
| | | | | | | |
+----+ +----+ +----+ +----+
| FA |<--| FA |<--| FA |<--| FA |<-- C0
+----+ +----+ +----+ +----+
C4 | S3 | S2 | S1 | S0
For stage : and . 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 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 has inputs, product terms and 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 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 the output toggles.
Logic diagram: a clocked SR flip-flop built from two cross-coupled NAND gates, with J gated with and K gated with 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 on the right.
Characteristic table:
| J | K | Operation | |
|---|---|---|---|
| 0 | 0 | No change | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic equation:
Excitation table:
| J | K | ||
|---|---|---|---|
| 0 | 0 | 0 | X |
| 0 | 1 | 1 | X |
| 1 | 0 | X | 1 |
| 1 | 1 | X | 0 |
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 and holds its state when .
Logic diagram: a JK flip-flop with both J and K connected to T (or a D flip-flop whose input is , using an XOR gate).
Graphical symbol: a rectangle with inputs T and clock, and outputs Q and .
Characteristic table:
| T | Operation | |
|---|---|---|
| 0 | No change | |
| 1 | Toggle |
Characteristic equation:
Excitation table:
| T | ||
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
The T flip-flop is mainly used in counters and frequency dividers, because with 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
| Basis | Synchronous | Asynchronous |
|---|---|---|
| Clock | All memory elements are triggered by a common clock | No common clock; elements change as the inputs or the outputs of other elements change |
| State change | Only at clock edges | At any time when inputs change |
| Speed | Limited by the clock period | Faster, no waiting for clock |
| Design | Easier, free from hazards and races | More difficult, races and hazards must be avoided |
| Memory elements | Clocked flip-flops | Unclocked latches or time delays |
| Example | Synchronous counter, shift register | Ripple (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 , 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; goes to D of FF2, to D of FF1, to D of FF0. The parallel outputs are .
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 (starting cleared to 0000):
Digit 2 (0010), serial input sequence 0, 1, 0, 0:
| Clock | Serial in | |
|---|---|---|
| 0 | - | 0000 |
| 1 | 0 | 0000 |
| 2 | 1 | 1000 |
| 3 | 0 | 0100 |
| 4 | 0 | 0010 |
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:
| Clock | Serial in | |
|---|---|---|
| 1 | 1 | 1000 |
| 2 | 0 | 0100 |
| 3 | 0 | 0010 |
| 4 | 0 | 0001 |
Timing diagram for digit 2 (serial input 0,1,0,0): the single 1 enters at on the second clock edge, moves to on the third and to 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 states is a MOD- counter.
Procedure to design a (synchronous) counter
- Decide the number of states (MOD) and the count sequence; find the number of flip-flops from .
- Draw the state diagram.
- Choose the type of flip-flop (JK, T or D) and prepare the state table with present state and next state.
- Use the excitation table of the flip-flop to find the required inputs for every state transition.
- Simplify the flip-flop input equations using K-maps (unused states as don't cares).
- 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)
, so flip-flops , with the sequence . There are no unused states.
State diagram: eight states 0 to 7 in a ring, .
JK excitation: : ; : ; : ; : .
| Present | Next | |||
|---|---|---|---|---|
| 000 | 001 | 0X | 0X | 1X |
| 001 | 010 | 0X | 1X | X1 |
| 010 | 011 | 0X | X0 | 1X |
| 011 | 100 | 1X | X1 | X1 |
| 100 | 101 | X0 | 0X | 1X |
| 101 | 110 | X0 | 1X | X1 |
| 110 | 111 | X0 | X0 | 1X |
| 111 | 000 | X1 | X1 | X1 |
K-map simplification:
- is 1 or X in every row, so .
- is 1 for 001 and 101 (X for 010, 011, 110, 111), giving .
- is 1 only for 011 (X for 100 to 111), giving .
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 . FF2 has J and K tied to the output of a 2-input AND gate with inputs and . The outputs 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 .
Using 9's complement
9's complement of .
There is an end-around carry, so remove the carry 1 and add it to the result:
Using 10's complement
10's complement of = 9's complement last place unit .
The carry is discarded (it shows the result is positive), giving .
Both methods give .
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 -bit coded input into a unique active output out of up to output lines.
BCD to decimal decoder (4-line to 10-line)
It accepts a 4-bit BCD digit ( is the MSB) and activates exactly one of the ten outputs to . 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:
| A | B | C | D | Active output |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | |
| 0 | 0 | 0 | 1 | |
| 0 | 0 | 1 | 0 | |
| 0 | 0 | 1 | 1 | |
| 0 | 1 | 0 | 0 | |
| 0 | 1 | 0 | 1 | |
| 0 | 1 | 1 | 0 | |
| 0 | 1 | 1 | 1 | |
| 1 | 0 | 0 | 0 | |
| 1 | 0 | 0 | 1 |
Each active output is 1 and the other nine are 0 for that row.
Mathematical expressions (each is the minterm of the input):
Using the don't cares for 1010 to 1111, these can be reduced, for example , , , , , .
Circuit diagram: four NOT gates produce ; 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 to .
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.
| Gate | Expression | Output |
|---|---|---|
| AND | 1 only when all inputs are 1 | |
| OR | 1 when any input is 1 | |
| NOT | Complement of the input |
Universal gates
NAND () and NOR () 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: .
- OR: NOR followed by a NOR used as inverter: .
- AND: invert each input with a NOR, then NOR them: (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 and , and one that combines and ). 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 counter | Asynchronous (ripple) counter |
|---|---|
| All flip-flops receive the same clock simultaneously | Clock 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 together | Flip-flops change one after another |
| Propagation delay is that of one flip-flop, so it is fast | Delays add up (), so it is slow |
| Needs extra gates for the inputs | Simple, no extra logic |
| No decoding glitches | Decoding glitches can occur |
| Used at high frequency | Used at low frequency |
3-bit up ripple counter
It counts to (MOD-8) using three JK flip-flops with (toggle mode), triggered on the falling edge.
Connections: the clock goes to the clock input of ( is the LSB). drives the clock of , and drives the clock of . for all three.
Count sequence:
| Clock | |||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 |
| 2 | 0 | 1 | 0 |
| 3 | 0 | 1 | 1 |
| 4 | 1 | 0 | 0 |
| 5 | 1 | 0 | 1 |
| 6 | 1 | 1 | 0 |
| 7 | 1 | 1 | 1 |
| 8 | 0 | 0 | 0 |
Working: toggles at every falling clock edge. toggles when falls (), and toggles when falls. So the frequencies are , and , and the counter returns to 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 inputs go to input buffers/inverters, which give each variable and its complement. These feed the programmable AND array, which produces 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 outputs . 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 (values 0 to 7). The largest output is , so 6 output bits are needed. A ROM of size is used: the 3 inputs go to a decoder (the address lines) and the OR/fuse array programs the output bits.
Truth table:
| Decimal | Square | |||||||
|---|---|---|---|---|---|---|---|---|
| 000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 001 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 010 | 2 | 4 | 0 | 0 | 0 | 1 | 0 | 0 |
| 011 | 3 | 9 | 0 | 0 | 1 | 0 | 0 | 1 |
| 100 | 4 | 16 | 0 | 1 | 0 | 0 | 0 | 0 |
| 101 | 5 | 25 | 0 | 1 | 1 | 0 | 0 | 1 |
| 110 | 6 | 36 | 1 | 0 | 0 | 1 | 0 | 0 |
| 111 | 7 | 49 | 1 | 1 | 0 | 0 | 0 | 1 |
Simplification: and always, so these need no ROM storage ( is connected directly to , to ground). The remaining outputs are ORs of decoder lines :
Circuit: the decoder produces . Programmable (blown/intact) connections feed into the OR for ; for ; for ; for .
Block diagram: 3 inputs ROM () 6 outputs .
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- counter has distinct states.
Design of a MOD-7 synchronous counter
Seven states ( to ) need 3 flip-flops ( is the MSB). JK flip-flops are used, and the unused state is treated as don't care.
State diagram: (a single loop of 7 states; the state is unused).
State table with flip-flop inputs:
| Present | Next | ||||||
|---|---|---|---|---|---|---|---|
| 000 | 001 | 0 | X | 0 | X | 1 | X |
| 001 | 010 | 0 | X | 1 | X | X | 1 |
| 010 | 011 | 0 | X | X | 0 | 1 | X |
| 011 | 100 | 1 | X | X | 1 | X | 1 |
| 100 | 101 | X | 0 | 0 | X | 1 | X |
| 101 | 110 | X | 0 | 1 | X | X | 1 |
| 110 | 000 | X | 1 | X | 1 | 0 | X |
| 111 | XXX | X | X | X | X | X | X |
K-map simplification (using the don't care ):
Circuit diagram: three JK flip-flops with a common clock. An AND gate gives ; is connected to ; to ; an OR gate gives ; a NAND gate gives ; is tied to logic 1.
Self-starting check: from the unused state : so ; so ; so . The next state is , 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 -to-1 MUX has data inputs, select lines and one output. It is also called a data selector.
4:1 multiplexer
Block diagram: a box with four data inputs , two select inputs , an enable (optional) and one output .
Truth table:
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Boolean expression:
Logic diagram: two NOT gates produce . 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 .
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 and use as the single select line: then , and 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 that is 1 when at least one input is 1.
4:2 priority encoder ( has the highest priority, the lowest)
Block diagram: four inputs go to the encoder, which has outputs and a valid bit .
Truth table (X = don't care):
| 0 | 0 | 0 | 0 | X | X | 0 |
| 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 0 | 0 | 1 | X | 0 | 1 | 1 |
| 0 | 1 | X | X | 1 | 0 | 1 |
| 1 | X | X | X | 1 | 1 | 1 |
Boolean expressions (from K-maps):
Circuit diagram: an OR gate on gives . A NOT gate on and an AND with , then an OR with , give . A 4-input OR gives .
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: .
- AND: a NAND followed by a NAND used as inverter: (2 gates).
- OR: invert each input with a NAND (as NOT), then NAND them: (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 , the output toggles during the whole time the clock is high. If the clock pulse width is longer than the propagation delay 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 and when .
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 of the master go to the inputs of the slave, and the slave outputs are fed back to the master's inputs ( and gates).
Working:
- When , the master is enabled and the slave is disabled. The master takes the state according to and , but the slave holds the old output.
- When , 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 and .
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 counter | Ripple (asynchronous) counter |
|---|---|
| Common clock to all flip-flops | Each flip-flop is clocked by the previous flip-flop's output |
| Flip-flops change state together | Flip-flops change one after the other |
| Total delay equals one flip-flop delay, so it is fast | Delays accumulate, so it is slow |
| Needs extra combinational gates | Simpler hardware |
| No glitches in decoding | May give glitches |
MOD-7 ripple counter
Three JK flip-flops (, falling-edge triggered) form a 3-bit ripple counter with 8 states. To make it MOD-7, a NAND gate detects the state (the 7th state) and its output is connected to the asynchronous clear inputs (active low) of all flip-flops, which resets the counter to at once. So the counter counts to ( to ) and the state lasts only for a very short time.
Sequence table:
| Clock | |||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 |
| 2 | 0 | 1 | 0 |
| 3 | 0 | 1 | 1 |
| 4 | 1 | 0 | 0 |
| 5 | 1 | 0 | 1 |
| 6 | 1 | 1 | 0 |
| 7 | 0 | 0 | 0 (via the transient ) |
State diagram: .
Logic diagram: clock to , clock of , clock of ; . A 3-input NAND gate with inputs drives of all three flip-flops.
Timing diagram: toggles at every falling clock edge (), toggles on each falling edge of , and on each falling edge of . At the 7th falling clock edge, momentarily becomes , the NAND output goes low and all outputs clear to . The output frequency of is therefore (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 input buffers (giving true and complement) programmable AND array (product terms) programmable OR array (sum terms) output buffers (optionally with XOR) 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 ( = MSB, digits to ) and the Gray output . The input combinations to are don't cares.
| Decimal | ||
|---|---|---|
| 0 | 0000 | 0000 |
| 1 | 0001 | 0001 |
| 2 | 0010 | 0011 |
| 3 | 0011 | 0010 |
| 4 | 0100 | 0110 |
| 5 | 0101 | 0111 |
| 6 | 0110 | 0101 |
| 7 | 0111 | 0100 |
| 8 | 1000 | 1100 |
| 9 | 1001 | 1101 |
K-map simplification (using the don't cares) gives:
PAL programming (AND array; each OR gate is fixed):
| Product term | Output | ||||
|---|---|---|---|---|---|
| 1 | 1 | – | – | – | |
| 2 | 1 | – | – | – | |
| 3 | – | 1 | – | – | |
| 4 | – | 0 | 1 | – | |
| 5 | – | 1 | 0 | – | |
| 6 | – | – | 0 | 1 | |
| 7 | – | – | 1 | 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 -bit register has flip-flops and can store 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 [4 flip-flops in a chain] serial data out, with a common clock. Logic diagram: four D flip-flops; the input of the first is the serial input, the of each is connected to the of the next, and the 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 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/ line. With LOAD, the parallel inputs 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).
| Type | Input | Output | Speed |
|---|---|---|---|
| SISO | Serial | Serial | Slowest |
| SIPO | Serial | Parallel | Slow load, fast read |
| PISO | Parallel | Serial | Fast load, slow read |
| PIPO | Parallel | Parallel | Fastest |
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 ), 52 mantissa bits.
Step 1: integer part. .
Step 2: fraction part. Multiply repeatedly by 2: so (after the first two bits "01", the block repeats).
Hence
Step 3: fields
- Sign: .
- Exponent: .
- Mantissa (52 bits, leading 1 dropped): followed by repeated 11 times. The next bits are , which start with 0, so rounding is downward.
Result:
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:
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
NOR gate
- Symbol: OR gate with a bubble at the output.
- Expression:
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
OR gate using NAND gates
By De Morgan's theorem:
Three NAND gates are used: two have their inputs joined (so they act as inverters giving and ), and the third NAND takes and gives .
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 |
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
K-map (rows , columns in the order ):
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 1 | 1 | 0 | 1 |
| 01 | 0 | 1 | 1 | 0 |
| 11 | 0 | 1 | 1 | 0 |
| 10 | 1 | 1 | 0 | 1 |
Minimal SOP (group the 1s)
- Quad :
- Quad (the four corners):
- Quad : (covers )
Realisation (basic gates): two NOT gates (, ) and a NOT for ; three AND gates (, , ) feeding one 3-input OR gate.
Minimal POS (group the 0s), zeros are :
- Quad : , giving the sum
- Pair : , giving the sum
Realisation: NOT gates for , , ; one 2-input OR gate for and one 3-input OR gate for ; 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 and with an input carry and produces a 4-bit sum and a final carry . 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).
- : inputs ; outputs
- : inputs ; outputs
- : inputs ; outputs
- : inputs ; outputs
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
- Half adder 1: inputs ; outputs and .
- Half adder 2: inputs and ; outputs and .
- An OR gate combines the carries: .
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 corresponds to one octal digit ( to ), so the converter has 3 inputs and 8 outputs (one line high for each octal digit). This is a decoder.
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Each output is a minterm:
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 (set) and (reset).
Block diagram: a box with inputs and outputs .
Logic diagram: NAND gate 1 has inputs and and output ; NAND gate 2 has inputs and and output .
Truth table:
| Operation | ||||
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | Invalid (both outputs 1) |
| 0 | 1 | 1 | 0 | Set |
| 1 | 0 | 0 | 1 | Reset |
| 1 | 1 | No change (hold) |
Working: a 0 on a NAND input forces its output to 1. With the output becomes 1, and then with the second gate gives (set). With , and (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: goes high when goes low, and stays high after returns high. goes low when goes low, and stays low after returns high. is always the complement of , except during the invalid case 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 -bit register has 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 input of the first flip-flop, the output of each flip-flop goes to the 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 ; the bits are entered in the order , first bit first; register starts at 00000):
| Clock | Serial input | |||||
|---|---|---|---|---|---|---|
| 0 | – | 0 | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
| 2 | 1 | 1 | 1 | 0 | 0 | 0 |
| 3 | 0 | 0 | 1 | 1 | 0 | 0 |
| 4 | 1 | 1 | 0 | 1 | 1 | 0 |
| 5 | 0 | 0 | 1 | 0 | 1 | 1 |
After 5 clock pulses the data is stored in the register ( holds the first bit entered). To read it out serially, apply more clocks with input 0: the output gives in the clock pulses 5 to 9 (states ), 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 -bit ring counter has states (MOD-).
For a 4-bit ring counter the sequence is . It uses flip-flops for 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 in a chain. The external clock goes to only. clocks , and clocks . for all flip-flops (toggle mode), triggered on the falling edge. is the LSB and the MSB.
Count sequence table:
| Clock | Decimal | |||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 |
| 2 | 0 | 1 | 0 | 2 |
| 3 | 0 | 1 | 1 | 3 |
| 4 | 1 | 0 | 0 | 4 |
| 5 | 1 | 0 | 1 | 5 |
| 6 | 1 | 1 | 0 | 6 |
| 7 | 1 | 1 | 1 | 7 |
| 8 | 0 | 0 | 0 | 0 |
Timing diagram: toggles on every falling edge of the clock, so its frequency is . toggles on every falling edge of (frequency ). toggles on every falling edge of (frequency ). 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 V (high) and 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 is added to the 3-bit message so that the total number of 1s in the 4-bit word is even.
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 |
Circuit: two XOR gates in cascade: .
4-bit even parity checker
At the receiver, the four bits are checked. The parity error check output is
Circuit: three XOR gates (two in the first level and one in the second level, or in cascade).
- : the number of 1s is even, so there is no error (for single-bit errors).
- : odd number of 1s, so an error has occurred in transmission.
For example, for the transmitted word is (). If is corrupted, the received word is , which has an odd number of 1s, so 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
- Obtain the word description of the circuit and draw the state diagram.
- Convert it into a state table (present state, input, next state, output).
- Decide the number of flip-flops from the number of states ( states) and assign binary codes to the states.
- Choose the type of flip-flop and, using its excitation table, find the flip-flop input values needed for every transition.
- Simplify the flip-flop input equations and output equations using K-maps (unused states are don't cares).
- 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 (flip-flops ) and an input . On the circuit stays in its present state, except . On the circuit moves , , , . JK flip-flops are used.
State table and excitation:
| 0 | 0 | 0 | 0 | 0 | 0 | X | 0 | X |
| 0 | 0 | 1 | 0 | 1 | 0 | X | 1 | X |
| 0 | 1 | 0 | 1 | 0 | 1 | X | X | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | X | X | 0 |
| 1 | 0 | 0 | 1 | 0 | X | 0 | 0 | X |
| 1 | 0 | 1 | 1 | 1 | X | 0 | 1 | X |
| 1 | 1 | 0 | 1 | 1 | X | 0 | X | 0 |
| 1 | 1 | 1 | 0 | 0 | X | 1 | X | 1 |
Using the JK excitation table (: ; : ; : ; : ) and K-maps:
Circuit: two JK flip-flops with a common clock. is an AND of and ; is an AND of and ; is connected directly to ; is an AND of and . 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 circuit | Sequential circuit |
|---|---|
| Output depends only on present inputs | Output depends on present inputs and past state |
| No memory element | Has memory (flip-flops) |
| No feedback | Feedback from output to input |
| Usually no clock | Usually clocked |
| Faster and simpler | Slower and more complex |
| Examples: adder, MUX, decoder | Examples: counter, register |
Full adder using a decoder and two OR gates
A full adder has inputs and outputs
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Use a decoder with as the inputs (with as MSB). Its outputs are the minterms . Then:
- Connect outputs to a 4-input OR gate to get .
- Connect outputs to a second 4-input OR gate to get .
(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 shows whether any input is active (so that the output from can be distinguished from "no input").
8-to-3 priority encoder ( has the highest priority, the lowest)
It has 8 inputs and 3 outputs and .
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | X | 0 | 0 | 1 | 1 |
| 0 | 0 | 0 | 0 | 0 | 1 | X | X | 0 | 1 | 0 | 1 |
| 0 | 0 | 0 | 0 | 1 | X | X | X | 0 | 1 | 1 | 1 |
| 0 | 0 | 0 | 1 | X | X | X | X | 1 | 0 | 0 | 1 |
| 0 | 0 | 1 | X | X | X | X | X | 1 | 0 | 1 | 1 |
| 0 | 1 | X | X | X | X | X | X | 1 | 1 | 0 | 1 |
| 1 | X | X | X | X | X | X | X | 1 | 1 | 1 | 1 |
Boolean expressions:
Working: is 1 whenever any of the upper four inputs is active. The terms with complemented inputs in and ensure that a lower-priority input affects the output only if all higher-priority inputs are 0. For example, if and the rest are 0, then , , , giving for and ignoring .
Circuit: NOT gates for the complemented inputs, AND gates for the product terms, and OR gates to form .
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.
| Identity | Its dual |
|---|---|
Example. Absorption law: .
Proof: .
Its dual, obtained by swapping + and ·, is which is also true: .
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 :
- NOT gate on gives .
- AND gate 1 takes and gives .
- AND gate 2 takes and gives .
- OR gate takes both AND outputs and gives .
A ──┬──────────┐
│ AND ── AB ──┐
B ──┼──────────┘ OR ── F
│ ┌─NOT─┐ │
└──┤ AND ── A'C ───┘
C ─────┴─────┘
Using the dual, the same function can be implemented as product-of-sums, , 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:
| Present | Next (x=0) | Next (x=1) | Output (x=0) | Output (x=1) |
|---|---|---|---|---|
| a | a | b | 0 | 0 |
| b | c | d | 0 | 0 |
| c | a | d | 0 | 0 |
| d | e | f | 0 | 1 |
| e | a | f | 0 | 1 |
| f | g | f | 0 | 1 |
| g | a | f | 0 | 1 |
States and have identical next states and outputs, so is replaced by . Then and become equivalent and is replaced by . 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 data inputs and sends it to a single output, using select lines. It is a data selector.
A 4-to-1 MUX has inputs -, select lines and output
| S1 | S0 | Y |
|---|---|---|
| 0 | 0 | I0 |
| 0 | 1 | I1 |
| 1 | 0 | I2 |
| 1 | 1 | I3 |
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) counter | Synchronous counter |
|---|---|
| Clock is applied only to the first flip-flop; each later flip-flop is clocked by the previous output | All flip-flops receive the same clock simultaneously |
| Delays add up (propagation delay n), so it is slow | Only one flip-flop delay, so it is fast |
| Simple, little hardware | Needs extra combinational logic for the inputs |
| Glitches in decoding intermediate states | No such glitches |
| Limited to lower frequencies | Suitable for high frequencies |
A 3-bit ripple counter uses three T flip-flops with , each clocked by the previous . In a synchronous counter , , .
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 programmable | AND array is programmable, OR array is fixed |
| More flexible, product terms can be shared among outputs | Less flexible, product terms are not shared |
| More expensive and slower | Cheaper, faster and easier to program |
| Harder to program and use | Simpler to use |
Design: 2's complement generator
Inputs ( is the MSB), outputs with = 2's complement of = (mod 16). For BCD input only 0-9 occur; 10-15 are don't-care.
Truth table
| Decimal | A B C D | W X Y Z |
|---|---|---|
| 0 | 0 0 0 0 | 0 0 0 0 |
| 1 | 0 0 0 1 | 1 1 1 1 |
| 2 | 0 0 1 0 | 1 1 1 0 |
| 3 | 0 0 1 1 | 1 1 0 1 |
| 4 | 0 1 0 0 | 1 1 0 0 |
| 5 | 0 1 0 1 | 1 0 1 1 |
| 6 | 0 1 1 0 | 1 0 1 0 |
| 7 | 0 1 1 1 | 1 0 0 1 |
| 8 | 1 0 0 0 | 1 0 0 0 |
| 9 | 1 0 0 1 | 0 1 1 1 |
| 10-15 | X 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
Check with 6 (): , , , , giving . Correct. Check with 9 (): , , , , giving . Correct.
Block diagram
A ─┐ ┌─ W
B ─┤ 2's ├─ X
C ─┤ complement ├─ Y
D ─┘ generator └─ Z
Circuit diagram: is connected straight to . One OR gate gives and an XOR gate with gives . An XOR gate on gives . A three-input OR gate on followed by an XOR with gives .
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 (parallel load).
For a 4-bit register: Shift/Load Serial-in + Shift/Load , and Shift/Load Shift/Load 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 . The state is (four flip-flops). Unused states 1, 3, 7, 9, 10-15 are don't-care. For a T flip-flop .
| Present ABCD | Next ABCD | |
|---|---|---|
| 0000 | 0010 | 0 0 1 0 |
| 0010 | 0100 | 0 1 1 0 |
| 0100 | 0101 | 0 0 0 1 |
| 0101 | 0110 | 0 0 1 1 |
| 0110 | 1000 | 1 1 1 0 |
| 1000 | 0000 | 1 0 0 0 |
K-map simplification (using the don't cares):
- for 0110 and 1000:
- for 0010 and 0110:
- for 0000, 0010, 0101, 0110:
- for 0100 and 0101:
Check: in state 0100 all of , , , , giving . In state 0110: , , , , giving . Correct.
The circuit has four T flip-flops on a common clock, with from an OR of and the AND ; directly from ; from an OR of , and ; and from the AND .
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 , and output is defined by:
Answer
Race condition in a JK flip-flop
When 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:
- 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.
- Edge triggering: the flip-flop responds only at the rising or falling clock edge, so the output changes once per clock.
- Narrow clock pulse: the pulse width is made shorter than the propagation delay (hard to ensure in practice).
Analysis of the sequential circuit
, , .
State table (present state , next state ):
| AB | x y | A+ | B+ | z |
|---|---|---|---|---|
| 00 | 00 | 0 | 0 | 0 |
| 00 | 01 | 0 | 0 | 0 |
| 00 | 10 | 1 | 0 | 0 |
| 00 | 11 | 0 | 0 | 0 |
| 01 | 00 | 0 | 1 | 0 |
| 01 | 01 | 0 | 1 | 0 |
| 01 | 10 | 1 | 0 | 0 |
| 01 | 11 | 1 | 0 | 0 |
| 10 | 00 | 0 | 0 | 1 |
| 10 | 01 | 0 | 0 | 1 |
| 10 | 10 | 1 | 1 | 1 |
| 10 | 11 | 0 | 1 | 1 |
| 11 | 00 | 0 | 1 | 1 |
| 11 | 01 | 0 | 1 | 1 |
| 11 | 10 | 1 | 1 | 1 |
| 11 | 11 | 1 | 1 | 1 |
State transitions (next state, by = 00, 01, 10, 11):
| Present | 00 | 01 | 10 | 11 |
|---|---|---|---|---|
| 00 | 00 | 00 | 10 | 00 |
| 01 | 01 | 01 | 10 | 10 |
| 10 | 00 | 00 | 11 | 01 |
| 11 | 01 | 01 | 11 | 11 |
Output depends only on the present state (Moore machine). When , is cleared and holds; when , is set if or , and takes the old value of .
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.