Skip to topic
    ← Back to course topics

    Sequential logic (A-level only) — AQA A-Level Physics

    Teaching note checked against the official specification.

    Sequential logic is the branch of digital electronics that uses logic gates with feedback to create circuits whose output depends not only on current inputs but also on the history of previous inputs. In AQA A-Level Physics, you must understand latches, flip-flops, clocks, and counters, and be able to analyse timing diagrams and design simple state machines.

    Test yourself on Sequential logic (A-level only) with AQA A-Level practice questions.

    Start free

    A week of Premium from your first lesson · Then the free plan continues · No card, no charge

    Sequential logic (A-level only) explained

    Sequential logic (A-level only) covers 5 specification points, including Binary counter BCD counter Johnson counter.

    Read the full explanation

    and Inputs to the circuits, clock, reset, up/down.. Open a point below for its explanation and revision guidance.

    Counting circuits: Binary counter BCD counter Johnson counter.

    Counting circuits are sequential logic systems built from flip-flops that advance through a defined sequence of output states each time a clock pulse arrives. A binary counter counts in natural binary, so an n-bit counter has 2ⁿ states and recycles after reaching its maximum. A BCD counter counts only from 0000 to 1001 (0 to 9) and then resets, making it suitable for driving decimal displays. A Johnson counter uses a shift register with the inverted last output fed back to the first input, producing a sequence of 2n states for n flip-flops. You analyse each circuit by writing the next-state table, predicting outputs after successive clock edges, and identifying the modulus. For example, a 3-bit binary counter cycles through 000, 001, 010, 011, 100, 101, 110, 111 before repeating, giving a modulus of 8.

    Inputs to the circuits, clock, reset, up/down.

    Sequential counting circuits are controlled by several inputs. The clock is the continuous square-wave signal whose active edge triggers each state change; without it the circuit holds its current state. The reset input asynchronously or synchronously forces all outputs to zero, clearing the count to 0000 regardless of the current state. The up/down input selects the direction of counting: when it is at one logic level the counter increments, and at the other level it decrements, so the same circuit can count forwards or backwards. You analyse these inputs by tracing how each one affects the next-state logic, for example showing that a reset pulse overrides the clock and returns a 3-bit counter to 000, while changing up/down reverses the sequence from 000, 001, 010 to 000, 111, 110.

    Outputs from the circuits.

    Sequential logic circuits produce outputs that depend on present inputs and stored past states, so reading outputs means tracking how each stage changes over time. In A-level work, you analyse circuits built from logic gates and flip-flops, stating the output of each gate or pin for a given clock sequence. A practical method is drawing a timing diagram: label each clock pulse, mark the state of every flip-flop after each active edge, then evaluate combinational gates. For example, a D-type flip-flop clocked by a square wave passes its D input to Q on each rising edge. Crucially, while flip-flop states update on clock edges, combinational outputs can change asynchronously if external inputs change between pulses.

    Modulo- n counter from basic counter with the logic driving a reset pin.

    A modulo-n counter counts from 0 up to n − 1 and then resets to 0, so it has n distinct states. You build one from a basic binary counter by decoding the first unwanted state and feeding that decoded signal to the counter's reset pin. For example, a modulo-6 counter using a 4-bit binary counter must reset when the count reaches 6, which is 0110 in binary. A logic gate combines the appropriate Q outputs so that its output goes high only at that state; that signal drives the asynchronous reset, clearing the counter to 0000. The decoded state may appear briefly, so the reset pulse must be short and the gate must respond to the correct combination of outputs. The result is a counter whose sequence repeats every n clock pulses.

    The gates should be treated as building blocks. The internal structure or circuit of the gates is not required.

    Logic gates are studied as functional blocks: you need to know what each gate outputs for given inputs, and how gates combine into larger systems, but not how transistors inside a gate are arranged. Treat a gate as a black box with defined behaviour. For example, a two-input AND gate outputs 1 only when both inputs are 1; a NOT gate inverts its single input. You use these blocks to build truth tables, combine gates into circuits, and analyse sequential systems such as latches and flip-flops. Assessment focuses on correct input-output behaviour, truth tables, Boolean expressions and circuit analysis, not on internal transistor-level construction.

    Your focus

    1. Describe the counting sequence and modulus of binary, BCD and Johnson counters.
    2. Predict the output state of a counting circuit after a given number of clock pulses.
    3. Compare counting circuits in terms of number of flip-flops, feedback and number of states.
    Show all 15 objectives
    1. Explain the function of the clock, reset and up/down inputs in a counting circuit.
    2. Analyse how changing a control input alters the output sequence of a counter.
    3. Apply the correct priority of reset and clock signals when predicting circuit behaviour.
    4. Determine the output state of each node in a sequential logic circuit for a given clock sequence.
    5. Construct a timing diagram or state table showing how outputs change over successive clock pulses.
    6. Distinguish between synchronous outputs that change on clock edges and asynchronous outputs that respond immediately to external inputs.
    7. Design a modulo-n counter by decoding the first unwanted state and driving the reset pin.
    8. Explain how the decoded state causes the counter to clear and repeat its sequence.
    9. Describe the sequence of states produced by a modulo-n counter.
    10. State the output of a named logic gate for any given input combination.
    11. Complete a truth table for a circuit containing multiple gates.
    12. Explain why gates can be treated as building blocks without reference to internal structure.

    Which command word is this?

    A concise answer with no explanation required. For example, 'State the next state of the counter after 101' expects just '110'.

    Sequential logic (A-level only) exam tips

    Topic Overview

    Sequential logic is a fundamental topic in digital electronics, forming the basis of memory elements, counters, and state machines. Unlike combinational logic, where outputs depend solely on current inputs, sequential circuits use feedback to store past states, enabling them to 'remember' information. This makes them essential in devices such as registers, timers, and computer memory.

    In the AQA A-Level Physics specification, you are expected to understand the operation of SR latches, D-type and JK flip-flops, and simple counters. You must be able to analyse timing diagrams, construct state tables, and design basic synchronous and asynchronous circuits. This topic bridges the gap between simple logic gates and complex microprocessor systems, providing a foundation for further study in electronics and computer architecture.

    Key Concepts
    • →Feedback is the key mechanism that distinguishes sequential logic from combinational logic; cross-coupled gates create a bistable memory element.
    • →The SR latch has set, reset, hold, and invalid states; the invalid state occurs when both S and R are HIGH simultaneously in a NOR-based latch.
    • →Edge-triggered flip-flops (D-type, JK) change state only on a clock edge (rising or falling), while level-triggered latches are transparent when enabled.
    • →Counters can be asynchronous (ripple) or synchronous; asynchronous counters suffer from propagation delay, causing temporary incorrect states.
    • →State tables and state diagrams are used to design and analyse sequential circuits, showing the next state for each combination of present state and inputs.
    Marking Points
    • States that a binary counter with n flip-flops has 2ⁿ distinct output states and a modulus of 2ⁿ.
    • Describes a BCD counter as one that counts from 0000 to 1001 and then returns to 0000, giving a modulus of 10.
    • Explains that a Johnson counter feeds the inverse of the last flip-flop output back to the first input, producing 2n states for n flip-flops.
    • Constructs or completes a next-state table showing the output after each clock pulse for a given counting circuit.
    • Identifies the modulus of a counter from its sequence or from the number of flip-flops and circuit type.
    • Distinguishes between free-running binary counting and truncated sequences such as BCD or Johnson counting.
    • Identifies the clock as the input that synchronises state changes and states that the active edge triggers each transition.
    • Explains that the reset input clears the counter outputs to zero, either immediately or on the next active clock edge depending on the design.
    • Describes the up/down input as selecting whether the counter increments or decrements on each clock pulse.
    • Traces the effect of each control input on the next-state table or output sequence of a given circuit.
    • Explains the priority of reset over normal counting when both reset and clock signals are present.
    • Identify each output node in the circuit and state whether it is taken from a flip-flop (Q or Q̄) or from a combinational gate.
    • Track the state of every storage element after each active clock edge before evaluating downstream gates.
    • Evaluate combinational gates using the current stored states and any external inputs, applying the correct truth table for each gate.
    • Present outputs as a timing diagram or state table with clearly labelled clock pulses and output levels.
    • Recognise that while flip-flop states change only at active clock edges, combinational outputs may change asynchronously if external inputs vary between clock pulses.
    • Check that unused or asynchronous inputs are held at defined logic levels so outputs are not indeterminate.
    • State the number of distinct states n and the binary value of the first unwanted state, which is n itself.
    • Select the counter outputs that are high in that unwanted state and combine them with a logic gate to produce the reset signal.
    • Connect the decoded signal to the reset pin so the counter clears to zero when the unwanted state is reached.
    • Describe the repeating sequence of states from 0 to n − 1 and back to 0.
    • Explain that the reset is usually asynchronous, so the counter may clear before the next clock edge.
    • Check that the decoding gate produces a high output only for the unwanted state and not for any valid state.
    • State the output of each basic gate (NOT, AND, OR, NAND, NOR, XOR) for all input combinations.
    • Construct and complete truth tables for circuits containing several gates.
    • Derive or interpret a Boolean expression from a gate network.
    • Combine gates as building blocks to realise a required logic function.
    • Analyse sequential circuits by treating each gate as a block with defined behaviour.
    Examiner Tips
    • 💡Draw the full state sequence before answering, then count the states to confirm the modulus.
    • 💡For BCD questions, explicitly state the reset condition, for example that 1010 is detected and forces the counter back to 0000.
    • 💡When comparing counters, tabulate the number of flip-flops, number of states and feedback arrangement side by side.
    • 💡Label the clock, reset and up/down inputs clearly on any circuit diagram before tracing the sequence.
    • 💡State the active edge, for example rising or falling, whenever you describe when the count changes.
    • 💡Use a short timing diagram or state table to show how reset and up/down alter the sequence, rather than describing it only in words.
    • 💡Draw a timing diagram with one row per signal and align all transitions to clock edges or asynchronous input changes.
    • 💡Label each clock pulse number so your sequence is easy to follow and check.
    • 💡State the logic level of each output at each step rather than describing it vaguely.
    • 💡Write the binary value of n before choosing which outputs to decode.
    • 💡State clearly which outputs feed the gate and what the gate output does.
    • 💡Describe the full repeating sequence so the modulo behaviour is unambiguous.
    • 💡Mention that the reset is asynchronous if the circuit uses an asynchronous reset pin.
    • 💡Write a truth table with every input combination before deducing any output.
    • 💡Label intermediate nodes in a multi-gate circuit so each gate's output is tracked clearly.
    • 💡Check the final output against the Boolean expression you have written to confirm consistency.
    • 💡Always draw timing diagrams with clearly labelled clock edges and show the propagation delay if asked about asynchronous circuits. Marks are awarded for correct relative timing, not just final values.
    • 💡When describing a sequential circuit, explicitly state the type of triggering (edge or level) and the clock input. Use correct terminology such as 'set', 'reset', 'toggle', and 'hold'.
    • 💡For design questions, show your working using a state table and excitation table. Even if the final circuit is not perfect, you can gain method marks for correct intermediate steps.
    Common Mistakes
    • Assuming a BCD counter has a modulus of 16 because it uses four flip-flops; the correct modulus is 10 because it is truncated at 1001.
    • Confusing a Johnson counter with a ring counter; a ring counter recirculates a single 1 and has n states, whereas a Johnson counter inverts the feedback and has 2n states.
    • Forgetting that the count advances on the active clock edge, so the output listed for a state is the value after that edge, not before it.
    • Treating the clock as a level-sensitive input rather than an edge-triggered one; the correction is that state changes occur only on the specified active edge.
    • Assuming reset always acts immediately; the correction is that some counters reset synchronously on the next clock edge, so the design must be checked.
    • Believing that up/down changes the clock frequency; the correction is that it changes the direction of the count sequence, not the timing.
    • Treating a flip-flop output as changing immediately with its input; the correction is that Q changes only on the active clock edge.
    • Evaluating gates before updating the flip-flop states; the correction is to update storage elements first, then evaluate combinational logic.
    • Assuming all circuit outputs are strictly synchronous; the correction is to check if combinational gates are connected to external inputs that can change between clock edges.
    • Leaving unused inputs floating; the correction is to tie them to a defined logic level so the output is predictable.
    • Decoding the state n − 1 instead of n; the correction is to reset on the first state that must not appear, which is n.
    • Using an AND gate when the required outputs are not all high; the correction is to choose the gate that matches the polarity of the outputs being decoded.
    • Forgetting that the reset clears the counter to zero rather than to one; the correction is to state the reset state explicitly.
    • Assuming the decoded state is stable for a full clock period; the correction is to note that asynchronous reset may clear the counter almost immediately.
    • Attempting to explain gate operation using internal transistor arrangements; the correction is to describe only the input-output relationship of the gate.
    • Confusing NAND with AND or NOR with OR; the correction is to remember that NAND and NOR are the inverted forms of AND and OR respectively.
    • Assuming a gate output depends on past inputs; the correction is to treat combinational gates as responding only to their present inputs.
    • Students often think that a latch and a flip-flop are the same thing. In reality, a latch is level-triggered and transparent when enabled, while a flip-flop is edge-triggered and only changes on a clock edge.
    • Many believe that the invalid state in an SR latch is harmless. In fact, if both S and R are HIGH and then both go LOW, the output state is unpredictable and may oscillate, so this condition must be avoided in design.
    • Students frequently assume that asynchronous counters count in perfect binary order with no glitches. Due to propagation delays, intermediate states can appear, which may cause errors in connected circuitry.
    Revision Plan
    1. 1Day 1-2: Revise logic gates and combinational logic. Ensure you can write truth tables and Boolean expressions confidently.
    2. 2Day 3-4: Study the SR latch in detail. Draw the circuit, derive its truth table, and practise timing diagrams for various input sequences.
    3. 3Day 5-6: Learn about D-type and JK flip-flops. Compare edge-triggered and level-triggered behaviour. Practice drawing output waveforms for given clock and input signals.
    4. 4Day 7-8: Explore counters. Build a 2-bit and 3-bit asynchronous counter, then a synchronous counter. Draw state tables and timing diagrams.
    5. 5Day 9-10: Attempt past paper questions on sequential logic. Focus on design and analysis questions. Review mark schemes to understand the level of detail required.
    Exam Question Types
    • 📋Timing diagram analysis: Given a circuit and input waveforms, sketch the output waveform. Advice: carefully track each gate's output, remember feedback, and label propagation delays if asynchronous.
    • 📋Circuit design: Design a sequential circuit (e.g., a modulo-5 counter) using flip-flops. Advice: start with a state table, derive excitation inputs, and draw the final circuit clearly.
    • 📋Explanation of operation: Describe how a given sequential circuit works, including its states and transitions. Advice: use correct terminology and refer to the clock and feedback paths.
    • 📋Comparison question: Compare synchronous and asynchronous counters, or latches and flip-flops. Advice: structure your answer in a table or bullet points, highlighting differences in triggering, speed, and application.
    Command Word Expectations (AQA)
    State

    A concise answer with no explanation required. For example, 'State the next state of the counter after 101' expects just '110'.

    Describe

    Give a detailed account of the operation or structure. For example, 'Describe how the SR latch stores a bit' requires mention of feedback and the set/reset inputs.

    Explain

    Give reasons or mechanisms. For example, 'Explain why an asynchronous counter may produce glitches' requires reference to propagation delay and ripple effect.

    Design

    Produce a circuit or state diagram that meets the specification. Marks are awarded for correct state table, excitation inputs, and final circuit.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Students often describe a latch as 'remembering' without explaining the feedback mechanism, or they confuse edge-triggered and level-triggered devices, leading to lost marks on timing diagram questions.
    ❌ Weak Answer (Loses Marks):A latch stores a bit because it has two inputs and two outputs. When you press a button it remembers the value.
    Example improved answer:A NOR-based SR latch consists of two cross-coupled NOR gates. When S is momentarily HIGH, Q goes HIGH and Q-bar goes LOW. When S returns LOW, the feedback from Q-bar to the lower NOR gate keeps Q HIGH, so the circuit latches the set state. The output is therefore dependent on past inputs as well as present ones, making it a sequential circuit.
    Examiner Tip: Always refer to the cross-coupling wires and the feedback path explicitly. Use the terms 'set', 'reset', 'hold', and 'invalid' for the SR latch, and state whether the device is level-triggered or edge-triggered.
    Pitfall: In counter and state machine questions, students frequently forget to include the clock input in their description or fail to state that the output changes only on a clock edge, resulting in vague answers that miss the sequential nature of the circuit.
    ❌ Weak Answer (Loses Marks):A counter counts the clock pulses and outputs binary numbers. It uses JK flip-flops connected together.
    Example improved answer:A 3-bit asynchronous counter uses three JK flip-flops in toggle mode (J=K=1). The clock signal is applied to the first flip-flop, and its output Q0 drives the clock of the second flip-flop, whose output Q1 drives the third. Each flip-flop toggles on the falling edge of its input, so the outputs Q2 Q1 Q0 cycle through 000, 001, 010, ... 111 and then reset to 000. The propagation delay causes the counter to be asynchronous, meaning the outputs do not change simultaneously.
    Examiner Tip: For any sequential circuit, always state the clocking arrangement (synchronous or asynchronous) and the trigger condition (rising or falling edge). Include a timing diagram or state table where possible to secure full marks.
    Step-by-Step Worked Solutions

    Question: A NOR-based SR latch has inputs S and R. Sketch the output waveforms Q and Q-bar for the input sequence: S=0,R=0; S=1,R=0; S=0,R=0; S=0,R=1; S=0,R=0. Assume initial state Q=0.

    1. 1.Step 1: Identify the initial state: Q=0, Q-bar=1.
    2. 2.Step 2: For S=0,R=0 (hold), Q remains 0 and Q-bar remains 1.
    3. 3.Step 3: For S=1,R=0 (set), Q becomes 1 and Q-bar becomes 0.
    4. 4.Step 4: For S=0,R=0 (hold), Q remains 1 and Q-bar remains 0.
    5. 5.Step 5: For S=0,R=1 (reset), Q becomes 0 and Q-bar becomes 1.
    6. 6.Step 6: For S=0,R=0 (hold), Q remains 0 and Q-bar remains 1.
    Final Answer: The waveform for Q is: 0, 1, 1, 0, 0. Q-bar is the complement: 1, 0, 0, 1, 1.

    Question: Design a 2-bit synchronous binary counter using JK flip-flops that counts 00, 01, 10, 11 and repeats. Draw the state table and determine the J and K inputs for each flip-flop.

    1. 1.Step 1: Define present state (Q1 Q0) and next state (Q1+ Q0+).
    2. 2.Step 2: For a binary up-counter, the sequence is 00 -> 01 -> 10 -> 11 -> 00.
    3. 3.Step 3: Use the JK excitation table: 0->0: J=0,K=X; 0->1: J=1,K=X; 1->0: J=X,K=1; 1->1: J=X,K=0.
    4. 4.Step 4: For Q0 (LSB): it toggles every clock, so J0=1, K0=1.
    5. 5.Step 5: For Q1 (MSB): it toggles when Q0=1, so J1=Q0, K1=Q0.
    6. 6.Step 6: Connect a common clock to both flip-flops for synchronous operation.
    Final Answer: J0=1, K0=1; J1=Q0, K1=Q0. The counter is synchronous because both flip-flops share the same clock.
    Active Recall Memory Test
    What is the key difference between a latch and a flip-flop?
    Key Fact: A latch is level-triggered and transparent when enabled, while a flip-flop is edge-triggered and only changes state on a clock edge.
    What is the invalid state in a NOR-based SR latch and why is it a problem?
    Key Fact: The invalid state occurs when S=1 and R=1. When both inputs return to 0, the output state is unpredictable and may oscillate, so it must be avoided.
    How does an asynchronous counter differ from a synchronous counter?
    Key Fact: In an asynchronous counter, the clock is applied only to the first flip-flop, and subsequent flip-flops are clocked by the output of the previous stage, causing a ripple effect. In a synchronous counter, all flip-flops share the same clock, so they change state simultaneously.
    What is the purpose of a state table in sequential circuit design?
    Key Fact: A state table lists the next state for each combination of present state and inputs, helping to derive the required flip-flop inputs and simplify the circuit design.
    Frequently Asked Questions
    What is sequential logic in A-Level Physics?
    Sequential logic is a type of digital circuit where the output depends on both the current inputs and the previous history of inputs. It uses feedback to store state, enabling memory and counting functions. In AQA A-Level Physics, you study latches, flip-flops, and counters, and learn to analyse timing diagrams and design simple state machines.
    How do I revise sequential logic for AQA A-Level Physics?
    Start by mastering combinational logic and truth tables. Then focus on the SR latch, drawing its circuit and truth table. Move on to edge-triggered flip-flops, practising timing diagrams. Finally, study counters, both asynchronous and synchronous, and attempt past paper questions. Use flashcards for key terms and draw diagrams from memory to reinforce learning.
    What is the difference between a latch and a flip-flop?
    A latch is level-triggered, meaning it is transparent and its output follows the input when the enable signal is active. A flip-flop is edge-triggered, meaning it only changes state on a rising or falling clock edge. Flip-flops are more reliable in synchronous systems because they prevent race conditions and glitches.
    Why is the invalid state in an SR latch a problem?
    When both S and R are HIGH in a NOR-based SR latch, both outputs are forced LOW, which violates the complementary nature of Q and Q-bar. When both inputs then return to LOW, the feedback loop may cause the outputs to oscillate or settle unpredictably, leading to unreliable circuit operation. Therefore, this state is avoided in practical designs.
    How do I draw a timing diagram for a sequential circuit?
    First, identify the clock edges and the initial state. Then, for each clock edge, determine the next state based on the inputs and the type of flip-flop. Draw the output waveform, ensuring that changes occur only at the active clock edge (for edge-triggered devices). For asynchronous circuits, include propagation delays and show the ripple effect. Label all axes and states clearly.
    What is the difference between synchronous and asynchronous counters?
    In a synchronous counter, all flip-flops are clocked by the same signal, so they change state simultaneously. This avoids propagation delays and glitches. In an asynchronous counter, only the first flip-flop is clocked directly; subsequent flip-flops are clocked by the output of the previous stage, causing a ripple effect and temporary incorrect states. Synchronous counters are faster and more reliable but require more complex logic.