How to Convert State and Output Equations to a Logic Diagram

Last Modified:

How to Generate a Logic Diagram from State and Output Equations?

  1. Identify the number of inputs, outputs and flip-flops in the state/output equations.
  2. For D Flip-flops:
    1. Draw as many flip-flops as the number of state equations.
    2. Draw the logic diagram of the circuit represented by the state equation and attach its output to the input of the corresponding D flip-flop.
  3. Draw the logic diagram of the circuit represented by each output equation.

Example: Extract the Logic Diagram from the State and Output Equations

We begin with the following equations:

\begin{align*}
\mathsf{A(t+1) }& \mathsf{ =Ax+Bx=(A+B)x}\\
\mathsf{B(t+1) }& \mathsf{ =\overline{A}x}\\
\mathsf{y }& \mathsf{ =A\overline{x}+B\overline{x}=(A+B)\overline{x}}
\end{align*}

Step 1: Identify the number of inputs, outputs and flip-flops in the logic diagram

From the equations we can surmise that:

  • Total Inputs: 1 (External input \(\mathsf{x}\))
  • Total Flip-Flops: 2 flip-flops (Outputs \(\mathsf{A}\) and \(\mathsf{B}\))
  • Total Combinational Outputs: 1 (Output \(\mathsf{y}\))

Step 2 & 3:

To begin, draw two D-type flip-flops. Subsequently, construct the logic circuit represented by the next-state equations. Afterward, connect its output directly to the input of each D flip-flop. Furthermore, name the resulting output signals \(\mathsf{A}\) and \(\mathsf{B}\) to align with the equations. Next, take the final output equation and draw its corresponding circuit layout. Finally, designate the output of that circuit as \(\mathsf{y}\), establishing it as the primary output of the entire system.

The circuit is drawn here with each state and output equation written along side it:

the image shows a logic diagram of a sequential circuit implemented using D flip-flops, and the corresponding state and output equations
Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Like what you read on this page? Signup for our newsletter!

Your email address is only used to send you our newsletter and information about our company. Unsubscribe anytime using the link included in every email.

The WHATSAPP field must contain between 6 and 19 digits and include the country code without using +/0 (e.g. 1xxxxxxxxxx for the United States)
?