Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sequential System Synthesis -- Introduction

Similar presentations


Presentation on theme: "Sequential System Synthesis -- Introduction"— Presentation transcript:

1 Sequential System Synthesis -- Introduction

2 Outline Combinational Circuits vs. Sequential Circuits Flip-Flop
Binary cell that can store one bit of information. Basic Flip-Flop Circuit Common Types of Flip-Flops: RS, JK, D, T. Mealy Machine and Moore Machine Design Flow of Sequential System Synthesis and Optimization Examples ENEE 644

3 Combinational Circuits
A circuit is combinational if it computes a function which depends only on the current inputs applied to the circuit; for every input set of values, there is a unique output set of values. Acyclic circuits are necessarily combinational Cyclic circuits can be combinational in fact, there are combinational circuits whose minimal implementation must have cycles [Kautz 1970] ENEE 644

4 Sequential Circuits In a sequential circuit, the output values may be different for the same set of input values; the output depends on the current contents of memory elements as well. Feedback (cyclic) is a necessary condition for a circuit to be sequential. Synthesis of sequential circuits is not as well developed as combinational. (only small circuits) Sequential synthesis techniques are not really used in commercial software (except maybe retiming). ENEE 644

5 Sequential Logic Circuit
Logic Circuits Combinational Sequential x0 z0 Combinational Logic Circuit x1 z1 xn zm outputs inputs Combinational Logic Circuit Memory Elements Sequential Logic Circuit ENEE 644

6 Basic Flip-Flop Two Output (Q and Q’) Various Ways to Feed Flip-Flops
NOR Gate Flip-Flops Q S Q’ R 1 2 NAND Gate Flip-Flops Q R Q’ S 1 2 S R Q Q’ 1 S R Q Q’ 1 ENEE 644

7 RS Flip-Flop > S Q S Q CP Q’ R Q’ R Three Inputs: Four States: 3 1
2 3 4 Q S > Q CP Q’ R Q’ R Three Inputs: Clock Pulse: additional input to control when state is changing. S(et) input R(eset) input Four States: Set state: S=1, R=0, CP=1 (Q=1, Q’=0) Reset state: S=0, R=1, CP=1 (Q=0, Q’=1) Indetermined: S=1, R=1, CP=1 (Q=1, Q’=1) No change: S=0, R=0, CP=1 ENEE 644

8 RS Flip-Flop (cont’d) Characteristic Equation: SR = 0
Q(t+1) = F(Q(t), S(t+1), R(t+1)) = S + R’Q SR = 0 Characteristic Table: S R Q Q(t+1) 1 i.d. ENEE 644

9 JK Flip-Flop > Three Inputs: Four States: K J Q Q’ CP J Q Q’ K
1 2 3 4 J Q > Q’ K Three Inputs: CP: Clock Pulse J: Set input K:Reset input Four States: Set state: J=1, K=0, CP=1 Reset state: J=0, K=1, CP=1 No change: J=0, K=0, CP=1 Complement: J=1, K=1, CP=1 ENEE 644

10 JK Flip-Flop (cont’d) Characteristic Equation: Characteristic Table:
Q(t+1) = F(Q(t), J(t+1), K(t+1)) = JQ’ + K’Q Characteristic Table: J K Q Q(t+1) 1 ENEE 644

11 D Flip-Flop > Two Inputs: Two States: Characteristic Equation: D Q
1 2 3 4 Q CP D Q > Q’ Q’ Two Inputs: CP: Clock Pulse D: Set input D’: Reset input Two States: Set state: D=1, CP=1 Reset state: D=0, CP=1 Characteristic Equation: Q(t+1) = F(Q(t), D(t+1)) = D ENEE 644

12 T Flip-Flop > One input JK flip-flop Two States:
3 1 Q T Q CP > Q’ Q’ 2 4 One input JK flip-flop Two States: No Change: T=0, CP=1 Complement: T=1, CP=1 Characteristic Equation: Q(t+1) = F(Q(t), T(t+1)) = TQ’+T’Q ENEE 644

13 Excitation Table Excitation table: the reverse of characteristic table, indicates how we should change flip-flop inputs to make the required state transition. S R Q Q(t+1) 1 i.d. Q(t) Q(t+1) S R x 1 excitation table characteristic table ENEE 644

14 Flip-Flop Excitation Tables
Q(t) Q(t+1) S R x 1 Q(t) Q(t+1) D 1 Q(t) Q(t+1) J K x 1 Q(t) Q(t+1) T 1 ENEE 644

15 State, State Reduction and Assignment
A state of a sequential circuit is defined by the binary information stored in the memory elements (e.g. flip-flop). One flip-flop stores one bit, so m flip-flops can define at most 2m states. Two states are equivalent if for any input, they produce the same outputs and move to the same or equivalent states. State Reduction problem: reduce the number of flip-flops in a sequential circuit. State Assignment problem: assign binary values to states such that the cost of the flip-flop input functions is reduced. ENEE 644

16 Mealy and Moore Models A sequential system is of Mealy type if output values depend on both present states and inputs. Recall that a state is a combination of the memory element’s content. A sequential system is of Moore type if output values depend only on the present states. This does not mean that output is independent of the inputs. Instead, the impact is through memory units. ENEE 644

17 Sequential Circuit Design
Given: system description Goal: logic diagram, Boolean function expression System specification State table/transition graph construction State reduction/minimization State assignment/encoding Flip-flop selection Excitation/output table derivation Logic simplification/minimization Logic diagram drawing ENEE 644

18 Example: Sequential System Design
System spec. → state transition table/graph Design a circuit with one input x and three outputs A,B,C. An external source feeds x one bit per clock cycle, when x=0, the outputs remain no change; otherwise, they repeat the binary sequence: 0,1,3,7,6,4, one at a time. current state next state x= x=1 A B C 1 0/000 1/001 S1 S2 S3 S4 S5 S6 1/011 1/111 1/110 1/100 1/000 0/001 0/011 0/100 0/110 0/111 ENEE 644

19 Example: Sequential System Design
State Minimization/Reduction Recall that two states are equivalent if for any input, they produce the same outputs and move to the same or equivalent states. We need only one state for all its equivalent states. Therefore, redundant states can be removed and hardware (e.g. flip-flops) can be saved. 00 10 11 01 1/1 0/0 0/1 1/0 00 11 01 1/1 0/0 0/1 1/0 10 01 = ENEE 644

20 Example: Sequential System Design
State Assignment/Encoding The goal is to assign binary values, each bit will be implemented by one flip-flop, to states. Sequential binary assignment: S1=001, S2=010, S3=011 S4=100, S5=101, S6=110 Average bits to be changed: [(0+2)+(0+1)+(0+3)+(0+1)+ (0+2)+(0+3)]/12 = 1 Ad hoc binary assignment: S1=000, S2=001, S3=011 S4=111, S5=110, S6=100 [(0+1)+(0+1)+(0+1)+(0+1)+(0+1)+(0+1)]/12 = 0.5 0/000 1/001 S1 S2 S3 S4 S5 S6 1/011 1/111 1/110 1/100 1/000 0/001 0/011 0/100 0/110 0/111 ENEE 644

21 Example: Sequential System Design
System spec. → state transition table/graph → state minimization/encoding → flip-flop selection → excitation/output table derivation 00 10 11 01 1/1 0/0 0/1 1/0 Current State In Out A B x TA TB y 1 Next State Flip-flop inputs Q(t) Q(t+1) T 1 ENEE 644

22 Example: Sequential System Design
System spec. → state transition table/graph → state minimization/encoding → flip-flop selection → excitation/output table derivation → logic simplification/minimization → logic diagram drawing Flip-flop input functions: TA = A B TB = (Ax)’ Output: y = ABx 00 10 11 01 1/1 0/0 0/1 1/0 T > Q Q’ B A CP x y ENEE 644


Download ppt "Sequential System Synthesis -- Introduction"

Similar presentations


Ads by Google