Introduction to Sequential Circuit By : Pn Siti Nor Diana Ismail CHAPTER 5
What is Sequential Circuit? Its behaviour is from : Inputs Outputs Present state Includes flip-flops with clock inputs Logic diagram may or may not include combinational gates.
Sequential Circuit Diagram
Important element in sequential circuit : i. Input equations ii. State table iii. State diagram
Diagram (A)
Diagram (B)
From previous diagrams (A and B) You should be able to identify, which part is : The inputs The outputs The combinational circuits The flip-flop
i.Input Equation Algebraic expression specifying logic diagram of a sequential circuit Imply the type of FF used Fully specify the combinational circuit that drives the
Try to analyze this circuit
What are the elements that you can identify? Type of flip-flop; Input; Output; The equations of the circuit.
INPUT Equations D A = D B = Y = STATES The element are: - Type FFs : D FFs - Input : X, State:A,B - Output : Y - Equation : 3 equations, D A, D B and Y
ii.State Table Shows functional relationship between inputs, outputs and FF states. State table consists of: -Present state -Input -Next state -Output
Example : State table
How many rows in state table? FF = m Inputs = n Number of rows = 2 m+n
How to fill in the state table? STEP 1 : List all possible binary combinations of present state and inputs. STEP 2 : Next state column is determined by logic diagram or input equations of FF (get the value for all FF inputs and then refer to FF truth table to get the next state value). STEP 3 : Output column is determined by logic diagram or input equations.
STEP 1 List down all binary numbers from 0 to (2 m+n – 1) in present state and input column. Let’s say you have 3 FF and 1 input, number of rows = = 16 Binary numbers involved is 0 – 15
STEP 2 Determine the next column Substitute the values in every rows into the FF input equations that you have got earlier. You will get the input for each FF Trace down the value for the FF output
STEP 3 Determine the output Substitute the values in every rows into the input equations of output that you have got earlier. You will directly get the output value
Try to fill in this state table based on the given diagram
So, here is the answer
Types of sequential circuits Mealy model -Output depend on INPUTS and STATES Moore model -Output depend on STATES
Circuit Analysis :What type of this circuit?
Circuit Analyze Just take a look at the output equation Since Y involves both (A & B) states and (X) input, therefore it is a Mealy model.
Can you differentiate between the previous equation and this one? The output is Z. Only involves A (state).. So it is a Moore model
iii.State Diagram State – represented by a circle Transition between states – directed lines connecting the circles
Examples of State Diagram
Referring to State Diagram (a) Circuit diagram
State Table
Moore Model Circuit Diagram
Equation State Table
State Diagram (Mealy) Provide same info with state table Obtained from state table State (A B) Input (X) Output (Y)
State Diagram (Moore) Input X Input Y State Output
State Table
Exercise 1 A sequential circuit with two D flip-flops A and B, X input, and one output Y is specified by the following input equations : D A = XA D B = A+XB’ Y = XB Draw the logic diagram of the circuit Derive the state table State Diagram
Exercise 2 A sequential circuit with two D flip-flops A and B, two inputs X and Y, and one output Z is specified by the following input equations : D A = XA + XY D B = XA + XB Z = XB Draw the logic diagram of the circuit Derive the state table