Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Sequential Design. Types of Logic Circuits  Logic circuits can be: Combinational Logic Circuits-outputs depend only on current inputs.

Similar presentations


Presentation on theme: "Introduction to Sequential Design. Types of Logic Circuits  Logic circuits can be: Combinational Logic Circuits-outputs depend only on current inputs."— Presentation transcript:

1 Introduction to Sequential Design

2 Types of Logic Circuits  Logic circuits can be: Combinational Logic Circuits-outputs depend only on current inputs Sequential Logic Circuits-outputs depends not only on current inputs but also on the past sequence of inputs

3 Sequential Circuit Models

4 Combinational Logic Delay Shortest delay Longest delay Longest timing delay = 5ns+5ns+5ns+5ns = 20ns Shortest timing delay = 5ns We will use the longest delay to represent the combinational logic (CL) delay, tcl

5 Combinational Logic (CL) Cloud Model Tcl=20ns

6 Memory

7  We will add memory (or registers) to our logic circuits. This will allow us to design sequential circuits.

8 Registers  We will represent registers with the following block diagram Clock and reset are control signals Ns and ps are data signals

9 Sequential Systems Block Diagrams

10 Sequential Systems General Block Diagram Input Vector Output Vector Next State Present State Feedback Path CL= Combinational Logic Cloud Reg= D Registers Clock Reset

11 Sequential Systems General Block Diagram Input Vector Output Vector Next State Present State Feedback Path Clock Reset X is the input data vector Y is the output data vector

12 Sequential Systems Block Diagram Input Vector Output Vector Next State Present State Feedback Path Clock Reset Ns is the next state data vector Ps is the present state data vector

13 Sequential Systems Block Diagram Input Vector Output Vector Next State Present State Feedback Path Clock Reset Notice we have a feedback path which combines the ps data vector with the input vector to generate a new ns data vector.

14 Sequential Systems Block Diagram Input Vector Output Vector Next State Present State Feedback Path Clock Reset Mathematically, we say Or, ns is a function F of X and ps and Y is a function H of ps.

15 Example Circuit Schematic F LogicRegister H Logic (buffer) X input ns ps Block Diagram

16 Example Circuit Schematic F LogicRegister H Logic (buffer) X input ns ps State Equations

17 Finite State Machine (FSM) General Models

18 Moore FSM General Block Diagram Input Vector Output Vector Next State Present State Feedback Path CL= Combinational Logic Cloud Reg= D Registers Clock Reset

19 Moore FSM State Equations Input Vector Output Vector Next State Present State Feedback Path Clock Reset State Equations

20 Mealy FSM Block Diagram and State Equations Input Vector Output Vector Next State Present State Feedback Path Output Y is also a function of input X

21 Mealy-Moore FSM Block Diagram and State Equations Input Vector Next State Present State Mealy Outputs Moore Outputs

22 State Diagrams

23 State Bubble

24 State Bubble Example Unconditional Transition State name = S0 State value = 00 Y = 0 for this state Conditional Transition We leave this state if upn=1, We remain in this state if upn=0

25 Memory Devices

26  Data Latch (D-latch)  Flip-flops (edge triggered) D-FF, D Register JK-FF T-FF

27 D-FF Positive Edge Triggered Block Diagram Symbol 4 inputs: D,Clk,Pre,Rst One output: Q D = Data Input Clk = Clock Input Pre = Preset Input Rst = Reset Input

28 D-FF Truth Table DClk dd100 dd011 d011 d111 0110 1111 Symbol Equation (rising clock) Truth Table

29 D-FF Truth Table DClk dd100 dd011 d011 d111 0110 1111 Symbol Equation (rising clock) Truth Table Pre= Preset Input (active low) Rst = Reset Input (active low) Highest priority

30 D-FF Truth Table DClk dd100 dd011 d011 d111 0110 1111 Symbol Equation (rising clock) Truth Table D = Data Input Clk = Clock input Qn = Register Output

31 FSM Examples

32 Example– 2-bit Up Counter  State Diagram Clock is implied

33 Example – 2-bit Up Counter  State Table psnsy S0S10 S21 S32 S03 S0 = 00 S1 = 01 S2 = 10 S3 = 11 Let Let S0 = reset state State Value Assignment Output Vector

34 Example – 2-bit Up Counter  Truth Table ps1ps0ns1ns0y1y0 000100 011001 101110 110011

35 Example – 2-bit Up Counter  Excitation Equations

36 Moore FSM Input Vector Output Vector Next State Present State Feedback Path Clock Reset State Equations

37 Logic Diagram F Logic H Logic Reg Block Y Vector No X Vector in this Example No H Logic needed

38 Logic Diagram

39 Flash Animation

40 Example 3– 2-bit Down Counter  State Diagram Clock is implied

41 Example – 2-bit Down Counter  State Table psnsy S0S30 S23 S12 S01 S0 = 00 S1 = 01 S2 = 10 S3 = 11 Let Let S0 = reset state

42 Example – 2-bit Down Counter  Truth Table ps1ps0ns1ns0y1y0 001100 010001 100110 111011

43 Example – 2-bit Down Counter  Excitation Equations

44 Recall Moore FSM Input Vector Output Vector Next State Present State Feedback Path Clock Reset State Equations

45 Logic Diagram F Logic H Logic Reg Block Y Vector No X Vector in this Example

46 Logic Diagram

47 Example 4 – 2-bit Up/Down Counter  State Diagram

48 Example – 2-bit Up/Down Counter  State Diagram Shorthand Notation

49 Example – 2-bit Up/Down Counter  State Table psns upn ns upn y S0S1S30 S1S2S01 S2S3S12 S3S0S23 S0 = 00 S1 = 01 S2 = 10 S3 = 11 Let Let S0 = reset state

50 Example – 2-bit Up/Down Counter  Truth Table upnps1ps0ns1ns0y1y0 0000100 0011001 0101110 0110011 1001100 1010001 1100110 1111011

51 Example – 2-bit Up/Down Counter  Excitation Equations

52 Recall Moore FSM Input Vector Output Vector Next State Present State Feedback Path Clock Reset State Equations

53 Logic Diagram X Vector Y Vector F Logic H Logic Reg Block

54 Logic Diagram

55 Example 5– 3-bit Arbitrary Counter  Design a 3-bit arbitrary counter that will count in the following sequence 3,2,3,1,2,3 If a state is not used reset it to state zero. How may states do we have? How many registers do we need? How many bits do we need for Y?

56 Example 5– 3-bit Arbitrary Counter  State Diagram

57 Example – Arbitrary 3-bit Counter  State Table psnsy S0S13 S22 S33 S41 S02 S5S00 S6S00 S7S00 S0 = 000 S1 = 001 S2 = 010 S3 = 011 S4 = 100 S5 = 101 S6 = 110 S7 = 111 Let Let S0 = reset state Assign State Values

58 Develop Truth Table

59 Example – 2-bit Arbitrary Counter  Develop Excitation Equations -- F Logic

60 Develop Excitation Equations for Y Y1 Y0

61 Example – 2-bit Arbitrary Counter  Excitation Equations -- H Logic

62 Recall Moore FSM Input Vector Output Vector Next State Present State Feedback Path Clock Reset State Equations

63 Logic Circuit F H REGREG

64

65 Simulation

66 Example 5– 2-bit Up/Down Counter with Active Low Enable and Synchronous RESET (SRESET)  State Diagram Clock is implied

67 Example – 2-bit Up/Down Counter with Enable and SRESET  Functional Table srnenupnFunction 0dd Synchronous Reset (sreset) 11dHold 100Count Up 101Count Down Highest Level of PriorityLowest Level of Priority

68 State Table SrnEnup n ns 0ddS0 11dps 100ps+1 101ps -1

69 Truth Table (5 variables!!) Although, we could design this circuit directly from the truth table we will use design partitioning.

70 Moore FSM Architecture Input Vector Output Vector Next State Present State Feedback Path

71 Partitioned Design Note, with the partitioned design we can “reuse” already designed submodules to create the “new” design. SrnEnns 0dS0 11PS 10Count We have srn en

72 Top Level Block Diagram

73 UP/Down Logic Symbol Logic Circuit

74 Register Block Symbol Logic Circuit

75 2 Bit 4x1 Mux Symbol Circuit

76 1-bit 4x1 Mux Symbol Logic Circuit

77 1-bit 2x1 Mux Symbol Logic Circuit

78 Top Level Block Diagram

79 Simulation

80 Example 6 – FSM Controller State Diagram

81 Truth Table for NS Truth Table

82 Kmaps for NS1 and NS0 NS1 NS0

83 Truth Table and Equations for Y Truth Table By Inspection Recall, Moore FSM, so Y will Not be a function of T

84 Logic Circuit F H REGREG

85 Simulation

86 Memory Devices

87 Flip-Flops

88 D-FF Truth Table Qn follows D on Rising Edge of CLK DClk dd100 dd011 d011 d111 0110 1111 Symbol Equation (rising clock) Truth Table D = Data Input Clk = Clock input Qn = Register Output

89 T-FF (Toggle) Changes state on every tick of CLK TClk Dd100 Dd011 d011 d111 011 111 Symbol Equation (rising clock) Truth Table

90 SR-FF Set =>Qn=1 Reset=>Qn=0 SRClk ddd100 ddd011 dd011 dd111 0011 01110 10111 1111??? Symbol Equation (rising clock) Truth Table

91 JK-FF JKClk ddd100 ddd011 dd011 dd111 0011 01110 10111 1111 Symbol Equation (rising clock) Truth Table

92 Example: Design a JK-FF using only Logic and a D-FF JKClk ddd100 ddd011 dd011 dd111 0011 01110 10111 1111 Symbol Truth Table

93 Example State Diagram State Table Let s0=0 and s1=1

94 JK-FF Truth TableLogic Equations

95 Recall Moore FSM State Equations Input Vector Output Vector Next State Present State Feedback Path Clock Reset State Equations

96 JK Example Circuit Schematic F LogicD-Register H Logic (buffer) X input ns ps Block Diagram

97 JK Example Circuit Schematic Simulation

98 Latches

99 D-Latch Block Diagram Symbol 4 inputs: D,E,Pre,Rst One output: Q D = Data Input E = Enable Input Pre = Preset Input Rst = Reset Input

100 D-Latch Truth Table DE dd100 dd011 d011 01110 11111 Symbol Truth Table

101 D-Latch State Equations DE dd100 dd011 d011 01110 11111 Symbol Equation (level clock) Truth Table

102 SR-Latch State Equations SR dd100 dd011 0011 01110 10111 1111??? Symbol Equation (level clock) Truth Table

103 Example T-FF D-FF D-Latch

104 Simulation

105 Modular Sequential Logic

106 Shift Registers  Logic Design which manipulates the bit position of binary data by shifting it to the left or right.  Major application Serial Data to Parallel Data converters

107 Example  Design a three-bit shift register with the following functions S1S0Function 00 Synchronous Reset (sreset) 01Shift Right 10Shift Left 11No Shift

108 Partitioned Design

109 No Shift Equations and Circuit

110 Shift Left Equations and Circuit

111 Shift Right Equations and Circuit

112 Synchronous Reset Module

113 Registers

114 Total Design


Download ppt "Introduction to Sequential Design. Types of Logic Circuits  Logic circuits can be: Combinational Logic Circuits-outputs depend only on current inputs."

Similar presentations


Ads by Google