Practice Question

Duration: 29 min

This video lesson is available to enrolled students.

Enroll to watch — Bihar STET 2026 Paper II Computer Science

AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture demonstrates the design of a synchronous counter for the sequence 0 → 1 → 3 → 4 → 5 → 7 → 0 using T flip-flops. The instructor begins by presenting the problem and constructing a state table with present-state columns Q2, Q1, Q0 and next-state columns Q2+, Q1+, Q0+. He fills in the binary rows for states 0 through 7, marking unused or invalid transitions. Next, he derives the excitation inputs T2, T1, and T0 by comparing present and next states for each flip-flop, using the T flip-flop excitation rule where T = 0 means no change and T = 1 means toggle. He then simplifies the excitation equations using Karnaugh maps, obtaining T2 = Q1, T1 = Q0, and T0 = Q1 + Q̄0. Finally, he draws the three-flip-flop circuit with FF2, FF1, and FF0 connected according to these equations, and verifies the design by tracing the state sequence through a verification table. The lesson emphasizes systematic counter design: state assignment, excitation table construction, K-map minimization, circuit realization, and functional verification.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The instructor introduces the problem displayed at the top of the board: 'Q Design synchronous counter for sequence: 0 → 1 → 3 → 4 → 5 → 7 → 0, using T flip-flop.' He points to the question and begins writing state variable labels Q2, Q1, and Q0 in red near the top of the whiteboard. He then draws a two-part table headed 'Present State' with columns Q2, Q1, Q0 and 'Next State' with columns Q2+, Q1+, Q0+. This establishes the standard state-table format for synchronous sequential circuit design, where each row will represent one present state and its corresponding next state in the required counting sequence.

  2. 2:00 – 5:00 02:00-05:00

    The instructor fills in the state table row by row with binary digits under each column. The sequence 0 → 1 → 3 → 4 → 5 → 7 → 0 is mapped to three-bit binary values: state 0 (000) goes to state 1 (001), state 1 (001) goes to state 3 (011), and so on through the cycle. He then moves lower on the board to start a second table with columns labeled 'Present State Q', 'Next State Q+', and 'T'. This transition from the full state table to a per-flip-flop excitation analysis shows how each T input is determined independently by comparing the present and next values of its corresponding Q output.

  3. 5:00 – 10:00 05:00-10:00

    The board now displays the completed state table with rows 0–7 written in pink binary. A right-hand section headed T2, T1, T0 is being filled with excitation values. The instructor applies the T flip-flop excitation rule: if Q+ equals Q, then T = 0 (no toggle); if Q+ differs from Q, then T = 1 (toggle). Teal circles and digits are progressively added in the T columns across frames. In the last frame he draws a smaller grid on the right side with column labels 01, 11, and 10, beginning the Karnaugh map construction for one of the excitation equations. This step converts the tabular excitation data into a form suitable for Boolean minimization.

  4. 10:00 – 15:00 10:00-15:00

    The instructor continues building Karnaugh-style tables at the bottom of the board, headed 00, 01, 11, 10 with entries such as 4, 5, 6 and an arrow labeled Q1. The excitation columns T2, T1, T0 are filled with green 0s, 1s, checkmarks, and X marks representing don't-care conditions for unused states. He groups the 1s in each K-map to derive simplified Boolean expressions. The state table remains visible with rows numbered 0 through 7, and the right-hand section shows the completed excitation values. This window covers the critical minimization step that reduces the raw excitation table to implementable logic equations.

  5. 15:00 – 20:00 15:00-20:00

    The instructor fills in a grid table whose column headers read 00, 01, 11, 10, with the relation T0 = Q1 written to its right. He then draws a long red rectangle on the right side of the board, beginning the circuit diagram. Three flip-flop blocks labeled T2 FF2, T1 FF1, and T0 FF0 are drawn with their T inputs and Q outputs. Top equations include T1 = Q0 and T0 = Q1 + Q̄0, while the left side shows T2 = Q1. The circuit realization connects each flip-flop's T input to the appropriate combination of present-state outputs, completing the transition from Boolean equations to a physical synchronous counter circuit.

  6. 20:00 – 25:00 20:00-25:00

    The instructor points to the three-flip-flop circuit drawn in red on the whiteboard, showing boxes labeled FF2, FF1, and FF0 with T inputs and Q outputs. A top expression reads 'Q1 + Q0'. Green equations on the left read T2 = Q1, T1 = Q0, and T0 = Q1 + Q̄0. He then begins a verification table headed 'Present State' (Q2 Q1 Q0) and 'Next States' (Q2+ Q1+ Q0+), filling it row by row with 0s and 1s. This verification step confirms that the designed circuit produces exactly the required sequence by simulating each state transition using the derived excitation equations.

  7. 25:00 – 28:39 25:00-28:39

    The instructor continues the verification process, changing numeric values such as T2 = 0 and T1 = 1 to trace specific state transitions through the circuit. The purple table headed 'Present State' and 'Next States' is filled row by row, confirming that each present state maps to the correct next state in the sequence 0 → 1 → 3 → 4 → 5 → 7 → 0. The circuit diagram with FF2, FF1, and FF0 remains visible alongside the excitation equations. This final window demonstrates how to validate a synchronous counter design by stepping through all states and checking that the T inputs produce the required toggles, ensuring the counter operates correctly without entering invalid states.

The lecture follows a systematic five-step methodology for designing synchronous counters with T flip-flops. Step one is state assignment: the required sequence 0 → 1 → 3 → 4 → 5 → 7 → 0 is represented in three-bit binary, requiring three flip-flops. Step two constructs the state table listing each present state and its next state in the sequence, with unused states (2 and 6) treated as don't-care conditions. Step three derives the excitation table by applying the T flip-flop rule: T = 0 when Q+ = Q (hold) and T = 1 when Q+ ≠ Q (toggle), producing separate columns for T2, T1, and T0. Step four minimizes each excitation equation using Karnaugh maps with don't-care entries for invalid states, yielding T2 = Q1, T1 = Q0, and T0 = Q1 + Q̄0. Step five realizes the circuit by connecting each flip-flop's T input to its corresponding Boolean expression and verifying the design by simulating all state transitions. The key pedagogical insight is that T flip-flop counters are particularly straightforward because the excitation condition depends only on whether each bit changes, not on its absolute value. The verification step is essential to confirm that the counter cycles through exactly the required states and does not lock into a forbidden state. This approach generalizes to any synchronous sequential circuit design problem where the state transition diagram is fully specified.

Loading lesson…