Synchronous Sequential Circuit Design

Synchronous Sequential Circuit Design turns a description of behavior over time into a circuit containing state storage and combinational logic. You encounter it when a controller must remember whether an operation has started, which step is active, or whether an event has already occurred. A successful design specifies both the correct sequence of states and enough time for signals to reach their destinations.

State changes at a clock edge

The current state is the information stored in the circuit’s state register. Inputs and current state determine what the register should store next. For rising-edge-triggered storage, that new value is captured at a rising clock edge, provided the timing requirements are satisfied.


Let Q[k]Q[k] be the state during cycle kk, and let X[k]X[k] be the input sampled at the edge ending that cycle. The governing relationship is


Q[k+1]=F(Q[k],X[k]).Q[k+1]=F(Q[k],X[k]).


The next-state function FF describes the required update. With D-type storage, the combinational logic supplies D=F(Q,X)D=F(Q,X). The register captures DD, and its outputs settle after the clock-to-output delay.


A state register feeds current state back through next-state logic and forward through Moore output logic.


All state bits capture together. Evaluate every next-state expression using the same old state; do not substitute a newly calculated state bit into another expression for that edge. Between active edges, the stored state holds its value, although combinational signals can change.



Translate behavior into a complete design

Begin by identifying the information the controller must remember. Give each distinct situation a state name, then specify the next state for every relevant combination of current state and input. State explicitly which action has priority when requests occur together.


Next, assign binary encodings. If NN distinct states are required, a compact binary encoding needs at least


n=⌈log⁡2N⌉n=\lceil\log_2 N\rceil


state bits. Other encodings may use more bits. Translate each next-state bit into a combinational function and connect that function to the corresponding register input.


Account for unused encodings as well. A defined recovery transition can return an unexpected encoding to a chosen safe state. Leaving these cases unspecified may simplify logic, but it does not establish recovery behavior.


Verify the result by tracing representative input sequences. At each edge, record the inputs, old state, and resulting new state. Include simultaneous requests, reset, and recovery cases.

Specify outputs and reset

An output equation determines whether an output depends only on stored state or also on the current input.


Output model

Governing equation

Response to an input change between edges

Moore

Y=G(Q)Y=G(Q)

No response caused solely by that input change

Mealy

Y=G(Q,X)Y=G(Q,X)

May respond after combinational propagation delay


Neither model requires a separate output register. A decoded Moore output can also experience a transient during a multibit state change; state dependence alone does not guarantee a glitch-free output.


Specify the reset state and reset timing. A synchronous reset takes effect at an active clock edge. If reset has priority, its asserted value overrides the ordinary next-state decision at that edge. Do not assume that powering up automatically produces the desired state.

Check setup and hold timing

For a register-to-register path, assume rising-edge operation, zero clock skew, and no additional clock uncertainty. The setup constraint is


Tclk≥tCQ,max+tlogic,max+tsetup.T_{\text{clk}}\geq t_{\text{CQ,max}}+t_{\text{logic,max}}+t_{\text{setup}}.


Here, tCQ,maxt_{\text{CQ,max}} is the launching register’s maximum clock-to-output delay, tlogic,maxt_{\text{logic,max}} includes the maximum logic and interconnect delay, and tsetupt_{\text{setup}} belongs to the receiving register. Check every constrained path and use the largest required period. Then fmax⁡=1/Tmin⁡f_{\max}=1/T_{\min}.


The hold constraint instead uses minimum delays:


tCQ,min+tlogic,min≥thold.t_{\text{CQ,min}}+t_{\text{logic,min}}\geq t_{\text{hold}}.


It prevents newly launched data from disturbing the receiving input too soon after the same edge. External inputs also need appropriate arrival-time constraints; register-to-register checks alone do not cover them.



What to remember

  • Define complete state transitions, priorities, outputs, and reset behavior.
  • Compute every next-state bit from the same old state.
  • Check maximum delays for setup and minimum delays for hold.

Example: Design a priority-reset alarm controller

A pump-monitoring controller stores an alarm bit QQ and drives an indicator with y=Qy=Q. At every rising clock edge, it applies these rules in order:

  • If synchronous reset r=1r=1, clear the alarm to Q=0Q=0.
  • Otherwise, if trip input t=1t=1, set the alarm to Q=1Q=1.
  • Otherwise, retain the current alarm state.

The inputs meet setup and hold requirements. Reset is implemented through the next-state logic, rather than through an asynchronous clear pin.


Trip and reset inputs feed next-state logic, while an alarm register supplies the indicator and state feedback.


a) Construct a compact state-transition table and derive the D-input equation.


Apply reset priority first. When r=1r=1, the next state is ________ regardless of the trip input or the old state. When r=0r=0, either an existing alarm or a new trip should make the next state ________.


In this compact state-transition table, “Either” means that the row applies to both binary values of that variable:


rtQQ+1EitherEither001Either100000011\begin{array}{cccc} r & t & Q & Q^{+} \\ 1 & \text{Either} & \text{Either} & 0 \\ 0 & 1 & \text{Either} & 1 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 1 \end{array}


Without reset, the set-or-retain decision is Q∨tQ\lor t. Reset priority requires this decision to be zero whenever r=1r=1, giving


D=Q+=r‾∧(Q∨t).D=Q^{+}=\overline r\land(Q\lor t).


Check the simultaneous-request case: if r=t=1r=t=1, then r‾=0\overline r=0, so D=0D=0. Thus reset wins as required. The indicator equation remains y=Qy=Q.


b) Initially Q=0Q=0. Find the settled alarm state after each of four rising edges with sampled inputs (r,t)=(0,1),(0,0),(1,1),(0,0)(r,t)=(0,1),(0,0),(1,1),(0,0).


Use the pre-edge state in the next-state equation, then replace it with the captured result. The indicator follows that stored result after the register’s clock-to-output delay.

  1. At edge 1, the old state is Q=0Q=0 and (r,t)=(0,1)(r,t)=(0,1). Thus D=1∧(0∨1)=1D=1\land(0\lor1)=1, so the new state is Q=y=1Q=y=1.
  2. At edge 2, the old state is Q=1Q=1 and (r,t)=(0,0)(r,t)=(0,0). Thus D=1∧(1∨0)=1D=1\land(1\lor0)=1, so the new state is Q=y=1Q=y=1.
  3. At edge 3, the old state is Q=1Q=1 and (r,t)=(1,1)(r,t)=(1,1). Thus D=0∧(1∨1)=0D=0\land(1\lor1)=0, so the new state is Q=y=0Q=y=0.
  4. At edge 4, the old state is Q=0Q=0 and (r,t)=(0,0)(r,t)=(0,0). Thus D=1∧(0∨0)=0D=1\land(0\lor0)=0, so the new state is Q=y=0Q=y=0.

The state sequence after the four edges is 1,1,0,01,1,0,0. The second edge demonstrates retention after the trip disappears. The third demonstrates reset priority when reset and trip are asserted together.


c) The register has tCQ,max=2.4 nst_{\text{CQ,max}}=2.4\ \text{ns}, tCQ,min=1.0 nst_{\text{CQ,min}}=1.0\ \text{ns}, setup time 1.5 ns1.5\ \text{ns}, and hold time 1.2 ns1.2\ \text{ns}. Across all state-feedback paths, the maximum logic and interconnect delay is 7.1 ns7.1\ \text{ns} and the minimum is 0.8 ns0.8\ \text{ns}. Find the minimum clock period, maximum clock frequency, and hold slack. Assume zero clock skew, no clock uncertainty, and no other limiting paths. Give frequency to one decimal place.


The next state launched after one rising edge must reach the register input early enough for the following rising edge. Add the maximum launch delay, maximum feedback-logic delay, and setup time:


Tmin⁡=tCQ,max+tlogic,max+tsetup=(2.4+7.1+1.5) ns=11.0 ns.\begin{aligned} T_{\min}&=t_{\text{CQ,max}}+t_{\text{logic,max}}+t_{\text{setup}}\\ &=(2.4+7.1+1.5)\ \text{ns}\\ &=11.0\ \text{ns}. \end{aligned}


Convert the period to seconds before taking its reciprocal:


fmax⁡=111.0×10−9 s≈9.0909×107 Hz≈90.9 MHz.\begin{aligned} f_{\max}&=\frac{1}{11.0\times10^{-9}\ \text{s}}\\ &\approx9.0909\times10^7\ \text{Hz}\\ &\approx90.9\ \text{MHz}. \end{aligned}


For hold, use the minimum delays because the concern is data arriving too soon after the same edge:


tearliest=(1.0+0.8) ns=1.8 ns.t_{\text{earliest}}=(1.0+0.8)\ \text{ns}=1.8\ \text{ns}.


The hold slack is


tearliest−thold=(1.8−1.2) ns=0.6 ns.t_{\text{earliest}}-t_{\text{hold}}=(1.8-1.2)\ \text{ns}=0.6\ \text{ns}.


The positive slack means the feedback paths satisfy hold timing under the stated assumptions. The results are Tmin⁡=11.0 nsT_{\min}=11.0\ \text{ns}, fmax⁡=90.9 MHzf_{\max}=90.9\ \text{MHz}, and hold slack 0.6 ns0.6\ \text{ns}.

A rising-edge-triggered machine has stored state bit QQ and a combinational output


y=Q∧x.y=Q\land x.


The state is initially Q=1Q=1. Between two rising clock edges, input xx changes from 00 to 11 and remains there. No reset is asserted. After the output logic settles, but before the next rising edge, what are QQ and yy?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A rising-edge-triggered pump controller has no asynchronous controls. Complete the descriptions using each phrase exactly once: present state; next state.


The values currently held in the controller's state register constitute its . The values computed by combinational logic for capture at the upcoming rising clock edge constitute its .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A conveyor controller contains two rising-edge-triggered registers with update equations


A+=x,B+=A.A^{+}=x,\qquad B^{+}=A.


Initially, (A,B)=(0,0)(A,B)=(0,0). The input values sampled at the next three rising edges are 11, 00, and 11, respectively. All setup and hold requirements are satisfied, and no reset occurs.


Two registers share a rising-edge clock, with input x feeding register A and A feeding register B.


Which sequence gives the settled state (A,B)(A,B) after each of those three edges?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice