Sequential formulas
Sequential circuits: flip-flops, counters, shift registers, state machines and timing. 18 formulas for GATE EC, EE, IN Digital Electronics, each with when to use it. Each is explained in the topic notes.
IAE Academy: Sequential circuits: flip-flops, counters, shift registers, state machines and timing formulas (GATE EC, EE, IN)
All 18 Sequential formulas
CONDITION TO AVOID RACE-AROUND
= width of the HIGH clock pulse, = flip-flop propagation delay, = clock period. Applies to a level-triggered JK flip-flop in toggle mode ().
SR FLIP-FLOP
The constraint is part of the equation, because is not allowed. holds, sets, resets.
JK FLIP-FLOP
holds, resets, sets, toggles. No input combination is forbidden.
D FLIP-FLOP
The next state is the value of at the active edge, so a D flip-flop delays its input by one clock period.
T FLIP-FLOP
toggles, holds. In toggle mode the output frequency is half the clock frequency, and n toggling stages in cascade divide the clock by .
MINIMUM FLIP-FLOPS FOR N STATES
Applies to a mod-N counter and to an N-state machine with binary state encoding. The unused states must be checked for lock-out.
OUTPUT FREQUENCY OF A MOD-N COUNTER
is the rate at which the whole state repeats. In a binary mod-N counter it is also the frequency of the most significant output. Lower bits can repeat faster: in a mod-6 binary counter (0 to 5), still alternates 0, 1 on every clock, so its frequency is . The output need not have a 50% duty cycle; in a mod-5 binary counter the MSB is HIGH for 1 clock period in 5. A mod-M counter cascaded into a mod-N counter gives a mod- counter with . In a full n-bit binary (mod-) counter, bit ( for the LSB) has frequency and a 50% duty cycle.
MAXIMUM CLOCK FREQUENCY OF AN N-BIT RIPPLE COUNTER
The worst case is a transition in which all n stages change (for example 0111 to 1000 in a 4-bit up counter), which takes . The clock period must be at least this long for the count to settle, and be readable, before the next edge. If a decoder must also read the count, add its delay or strobe time : .
SYNCHRONOUS BINARY COUNTER WITH T FLIP-FLOPS
This is the up counter. Down counter: . Up/down with mode input (1 = up, 0 = down): . With JK flip-flops, use .
555 ASTABLE MULTIVIBRATOR
: an RC charge toward from to , or a discharge toward 0 from to , takes . Duty cycle , which is always above 50% in this basic circuit. Applies to the standard astable connection with the control pin unused.
555 MONOSTABLE PULSE WIDTH
charges from 0 toward , and the output falls when reaches . So . Applies with the control pin unused.
RING COUNTER WITH N FLIP-FLOPS (ONE CIRCULATING 1)
Each output is HIGH for one clock period in every n (duty cycle ). It is not self-starting without extra logic: from 0000, or from a state with two 1s, it never reaches the intended cycle.
JOHNSON COUNTER WITH N FLIP-FLOPS
Each output is a square wave with a 50% duty cycle. It is not self-starting without extra logic. In a 3-bit Johnson counter, for example, the unused states 010 and 101 switch back and forth between each other forever.
MINIMUM STATES TO DETECT ONE BIT PATTERN OF LENGTH L
Valid for both overlapping and non-overlapping detection. The states record how many pattern bits have been matched (0 to ), and a Moore machine needs one extra state whose output is 1. Minimum flip-flops = .
MAXIMUM CLOCK FREQUENCY (ZERO SKEW)
Follows from the setup constraint . Use the maximum clock-to-Q delay and the longest (critical) combinational path between any two flip-flops. Applies to synchronous counters, registers and FSMs.
HOLD CONSTRAINT (ZERO SKEW)
Uses the minimum (contamination) delays. The clock period does not appear, so slowing the clock cannot fix a hold violation. It is fixed by adding delay to the short path, or by using flip-flops with a shorter hold time or a longer minimum clock-to-Q delay.
SETUP CONSTRAINT WITH CLOCK SKEW
Positive skew gives the data extra time and relaxes setup; negative skew tightens it.
HOLD CONSTRAINT WITH CLOCK SKEW
Positive skew makes hold harder to meet; negative skew makes it easier. Skew therefore trades setup margin against hold margin.
Where this was asked: 2018 (5), 2020 (4), 2022 (4), 2023 (7), 2024 (3), 2025 (3), 2026 (4). See the 30 previous-year questions on Sequential. This shows what was asked, not what will be asked.