SlideShare a Scribd company logo
1 of 18
9/15/09 - L22 Sequential Circuit
Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 1
Sequential Circuit Design
Creating a sequential circuit to address a
design need.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 2
Class 22-Sequential Circuit Design
 Steps in the design process for sequential
circuits
 State Diagrams and State Tables
 Examples
 Material from section 5-5 of text
Sequential Circuit Design Process
 Steps in Design of a Sequential Circuit
 1. Specification – A description of the sequential
circuit. Should include a detailing of the inputs, the
outputs, and the operation. Possibly assumes that
you have knowledge of digital system basics.
 2. Formulation: Generate a state diagram and/or a
state table from the statement of the problem.
 3. State Assignment: From a state table assign binary
codes to the states.
 4. Flip-flop Input Equation Generation: Select the
type of flip-flop for the circuit and generate the
needed input for the required state transitions
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 3
Sequential Circuit Design Process
2
 5. Output Equation Generation: Derive output
logic equations for generation of the output from
the inputs and current state.
 6. Optimization: Optimize the input and output
equations. Today, CAD systems are typically
used for this in real systems.
 7. Technology Mapping: Generate a logic
diagram of the circuit using ANDs, ORs,
Inverters, and F/Fs.
 8. Verification: Use a HDL to verify the design.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 4
Mealy and Moore
 Sequential machines are typically classified as
either a Mealy machine or a Moore machine
implementation.
 Moore machine: The outputs of the circuit
depend only upon the current state of the
circuit.
 Mealy machine: The outputs of the circuit
depend upon both the current state of the
circuit and the inputs.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 5
An example to go through the steps
 The specification: The circuit will have one
input, X, and one output, Z. The output Z
will be 0 except when the input sequence
1101 are the last 4 inputs received on X. In
that case it will be a 1.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 6
Generation of a state diagram
 Create states and meaning for them.
 State A – the last input was a 0 and previous inputs
unknown. Can also be the reset state.
 State B – the last input was a 1 and the previous input
was a 0. The start of a new sequence possibly.
 Capture this in a state diagram

9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 7
Notes on State diagrams
 Capture this in a state diagram
 Circles represent the states
 Lines and arcs represent the transition between state.
 The notation Input/Output on the line or arc specifies
the input that causes this transition and the output for
this change of state.

9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 8
Continue to build up the diagram
 Add a state C
 State C – Have detected the input sequence 11
which is the start of the sequence.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 9
Continue
 Add a state D
 State D – have detected the 3rd
input in the start of
a sequence, a 0, now having 110. From State D,
if the next input is a 1 the sequence has been
detected and a 1 is output.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 10
Add remaining transitions
 The previous diagram was incomplete.
 In each state the next input could be a 0 or a
1. This must be included.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 11
Now generate a state table
 The state table
 This can be done directly from the state
diagram.
 Now need to do a state assignment
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 12
Select a state assignment
 Will select a gray encoding
 For this state A will be encoded 00,
state B 01, state C 11 and state D 10
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 13
Flip-flop input equations
 Generate the equations for the flip-flop inputs
 Generate the D0 equation
 Generate the D1 equation
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 14
The output equation
 The next step is to generate the equation for
the output Z and what is needed to generate it.
 Create a K-map from the truth table.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 15
Now map to a circuit
 The circuit has 2 D type F/Fs
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 16
Verification
 Could write a VHDL model and verify
operation.
 For complex circuits this is essential to insure
that the design performs as specified.
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 17
Class 22 assignment
 Covered sections 5-5
 Problems for hand in
 5-14 and 5-28a,b
 Problems for practice
 5-13, 5-18, 5-19, 5-22, 5-25, 5-27
 Reading for next class: none
9/15/09 - L22 Sequential
Circuit Design
Copyright 2009 - Joanne DeGroat, ECE, OSU 18

More Related Content

Similar to Lect 22 sequential circuit design (1)

Unit I_CDA-1 computer design and applications.
Unit I_CDA-1 computer design and applications.Unit I_CDA-1 computer design and applications.
Unit I_CDA-1 computer design and applications.
brijeshgolani77
 
Find all hazards in this circuit. Redesign the circuit as a three-le.pdf
Find all hazards in this circuit.  Redesign the circuit as a three-le.pdfFind all hazards in this circuit.  Redesign the circuit as a three-le.pdf
Find all hazards in this circuit. Redesign the circuit as a three-le.pdf
Arrowdeepak
 
Iaetsd fuel cell based single-input multiple-output dc–
Iaetsd fuel cell based single-input  multiple-output  dc–Iaetsd fuel cell based single-input  multiple-output  dc–
Iaetsd fuel cell based single-input multiple-output dc–
Iaetsd Iaetsd
 

Similar to Lect 22 sequential circuit design (1) (20)

Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuits
 
Unit I_CDA-1 computer design and applications.
Unit I_CDA-1 computer design and applications.Unit I_CDA-1 computer design and applications.
Unit I_CDA-1 computer design and applications.
 
07 seq logicii-ix2
07 seq logicii-ix207 seq logicii-ix2
07 seq logicii-ix2
 
Combinational logic circuits
Combinational logic circuitsCombinational logic circuits
Combinational logic circuits
 
Find all hazards in this circuit. Redesign the circuit as a three-le.pdf
Find all hazards in this circuit.  Redesign the circuit as a three-le.pdfFind all hazards in this circuit.  Redesign the circuit as a three-le.pdf
Find all hazards in this circuit. Redesign the circuit as a three-le.pdf
 
Synchronous sequential Circuits
Synchronous sequential CircuitsSynchronous sequential Circuits
Synchronous sequential Circuits
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 
Design of a Low-Power 1.65 GBPS Data Channel for HDMI Transmitter
Design of a Low-Power 1.65 GBPS Data Channel for HDMI TransmitterDesign of a Low-Power 1.65 GBPS Data Channel for HDMI Transmitter
Design of a Low-Power 1.65 GBPS Data Channel for HDMI Transmitter
 
Digital Design Session 27
Digital Design Session 27Digital Design Session 27
Digital Design Session 27
 
combinational logic circuit and sequential logic circuit.pptx
combinational logic circuit and sequential logic circuit.pptxcombinational logic circuit and sequential logic circuit.pptx
combinational logic circuit and sequential logic circuit.pptx
 
PWM Step-down Converter(NJM2309)
PWM Step-down Converter(NJM2309)PWM Step-down Converter(NJM2309)
PWM Step-down Converter(NJM2309)
 
Iaetsd fuel cell based single-input multiple-output dc–
Iaetsd fuel cell based single-input  multiple-output  dc–Iaetsd fuel cell based single-input  multiple-output  dc–
Iaetsd fuel cell based single-input multiple-output dc–
 
Stepper motor controller using c
Stepper motor controller using cStepper motor controller using c
Stepper motor controller using c
 
FPGA Based V/f Control of Three Phase Induction Motor Drives Integrating Supe...
FPGA Based V/f Control of Three Phase Induction Motor Drives Integrating Supe...FPGA Based V/f Control of Three Phase Induction Motor Drives Integrating Supe...
FPGA Based V/f Control of Three Phase Induction Motor Drives Integrating Supe...
 
A04220106
A04220106A04220106
A04220106
 
digital electronics Design of 101 sequence detector without overlapping for...
digital  electronics Design of 101 sequence detector without  overlapping for...digital  electronics Design of 101 sequence detector without  overlapping for...
digital electronics Design of 101 sequence detector without overlapping for...
 
Dual output DC-DC quasi impedance source converter
Dual output DC-DC quasi impedance source converterDual output DC-DC quasi impedance source converter
Dual output DC-DC quasi impedance source converter
 
19-MooreMealy.ppt
19-MooreMealy.ppt19-MooreMealy.ppt
19-MooreMealy.ppt
 
A modified Cuk DC-DC converter for DC microgrid systems
A modified Cuk DC-DC converter for DC microgrid systemsA modified Cuk DC-DC converter for DC microgrid systems
A modified Cuk DC-DC converter for DC microgrid systems
 
Power quality issues and challenges in RES based System
Power quality issues and challenges in RES based SystemPower quality issues and challenges in RES based System
Power quality issues and challenges in RES based System
 

Recently uploaded

Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Anamikakaur10
 
Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...
Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...
Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...
kauryashika82
 
VIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
GENUINE Babe,Call Girls IN Chhatarpur Delhi | +91-8377877756
GENUINE Babe,Call Girls IN Chhatarpur Delhi | +91-8377877756GENUINE Babe,Call Girls IN Chhatarpur Delhi | +91-8377877756
GENUINE Babe,Call Girls IN Chhatarpur Delhi | +91-8377877756
 
Booking open Available Pune Call Girls Budhwar Peth 6297143586 Call Hot Indi...
Booking open Available Pune Call Girls Budhwar Peth  6297143586 Call Hot Indi...Booking open Available Pune Call Girls Budhwar Peth  6297143586 Call Hot Indi...
Booking open Available Pune Call Girls Budhwar Peth 6297143586 Call Hot Indi...
 
VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Vishal Nagar WhatSapp Number 8005736733 With Elite Staff...
 
Get Premium Hoskote Call Girls (8005736733) 24x7 Rate 15999 with A/c Room Cas...
Get Premium Hoskote Call Girls (8005736733) 24x7 Rate 15999 with A/c Room Cas...Get Premium Hoskote Call Girls (8005736733) 24x7 Rate 15999 with A/c Room Cas...
Get Premium Hoskote Call Girls (8005736733) 24x7 Rate 15999 with A/c Room Cas...
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 8005736733 Starting From 5K to...
 
BOOK Call Girls in (Dwarka) CALL | 8377087607 Delhi Escorts Services
BOOK Call Girls in (Dwarka) CALL | 8377087607 Delhi Escorts ServicesBOOK Call Girls in (Dwarka) CALL | 8377087607 Delhi Escorts Services
BOOK Call Girls in (Dwarka) CALL | 8377087607 Delhi Escorts Services
 
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
 
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Shirwal 8250192130 Will You Miss This Cha...
 
DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024
 
Enhancing forest data transparency for climate action
Enhancing forest data transparency for climate actionEnhancing forest data transparency for climate action
Enhancing forest data transparency for climate action
 
Call Girls Magarpatta Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Magarpatta Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Magarpatta Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Magarpatta Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Katra Call Now 8617697112 Katra Escorts 24x7
(INDIRA) Call Girl Katra Call Now 8617697112 Katra Escorts 24x7(INDIRA) Call Girl Katra Call Now 8617697112 Katra Escorts 24x7
(INDIRA) Call Girl Katra Call Now 8617697112 Katra Escorts 24x7
 
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
 
Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...
Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...
Call Now ☎ Russian Call Girls Connaught Place @ 9899900591 # Russian Escorts ...
 
Presentation: Farmer-led climate adaptation - Project launch and overview by ...
Presentation: Farmer-led climate adaptation - Project launch and overview by ...Presentation: Farmer-led climate adaptation - Project launch and overview by ...
Presentation: Farmer-led climate adaptation - Project launch and overview by ...
 
Call Girls Moshi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Moshi Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Moshi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Moshi Call Me 7737669865 Budget Friendly No Advance Booking
 
CSR_Module5_Green Earth Initiative, Tree Planting Day
CSR_Module5_Green Earth Initiative, Tree Planting DayCSR_Module5_Green Earth Initiative, Tree Planting Day
CSR_Module5_Green Earth Initiative, Tree Planting Day
 
Book Sex Workers Available Pune Call Girls Kondhwa 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Kondhwa  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Kondhwa  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Kondhwa 6297143586 Call Hot India...
 
VIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Valsad 7001035870 Whatsapp Number, 24/07 Booking
 

Lect 22 sequential circuit design (1)

  • 1. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 1 Sequential Circuit Design Creating a sequential circuit to address a design need.
  • 2. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 2 Class 22-Sequential Circuit Design  Steps in the design process for sequential circuits  State Diagrams and State Tables  Examples  Material from section 5-5 of text
  • 3. Sequential Circuit Design Process  Steps in Design of a Sequential Circuit  1. Specification – A description of the sequential circuit. Should include a detailing of the inputs, the outputs, and the operation. Possibly assumes that you have knowledge of digital system basics.  2. Formulation: Generate a state diagram and/or a state table from the statement of the problem.  3. State Assignment: From a state table assign binary codes to the states.  4. Flip-flop Input Equation Generation: Select the type of flip-flop for the circuit and generate the needed input for the required state transitions 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 3
  • 4. Sequential Circuit Design Process 2  5. Output Equation Generation: Derive output logic equations for generation of the output from the inputs and current state.  6. Optimization: Optimize the input and output equations. Today, CAD systems are typically used for this in real systems.  7. Technology Mapping: Generate a logic diagram of the circuit using ANDs, ORs, Inverters, and F/Fs.  8. Verification: Use a HDL to verify the design. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 4
  • 5. Mealy and Moore  Sequential machines are typically classified as either a Mealy machine or a Moore machine implementation.  Moore machine: The outputs of the circuit depend only upon the current state of the circuit.  Mealy machine: The outputs of the circuit depend upon both the current state of the circuit and the inputs. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 5
  • 6. An example to go through the steps  The specification: The circuit will have one input, X, and one output, Z. The output Z will be 0 except when the input sequence 1101 are the last 4 inputs received on X. In that case it will be a 1. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 6
  • 7. Generation of a state diagram  Create states and meaning for them.  State A – the last input was a 0 and previous inputs unknown. Can also be the reset state.  State B – the last input was a 1 and the previous input was a 0. The start of a new sequence possibly.  Capture this in a state diagram  9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 7
  • 8. Notes on State diagrams  Capture this in a state diagram  Circles represent the states  Lines and arcs represent the transition between state.  The notation Input/Output on the line or arc specifies the input that causes this transition and the output for this change of state.  9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 8
  • 9. Continue to build up the diagram  Add a state C  State C – Have detected the input sequence 11 which is the start of the sequence. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 9
  • 10. Continue  Add a state D  State D – have detected the 3rd input in the start of a sequence, a 0, now having 110. From State D, if the next input is a 1 the sequence has been detected and a 1 is output. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 10
  • 11. Add remaining transitions  The previous diagram was incomplete.  In each state the next input could be a 0 or a 1. This must be included. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 11
  • 12. Now generate a state table  The state table  This can be done directly from the state diagram.  Now need to do a state assignment 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 12
  • 13. Select a state assignment  Will select a gray encoding  For this state A will be encoded 00, state B 01, state C 11 and state D 10 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 13
  • 14. Flip-flop input equations  Generate the equations for the flip-flop inputs  Generate the D0 equation  Generate the D1 equation 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 14
  • 15. The output equation  The next step is to generate the equation for the output Z and what is needed to generate it.  Create a K-map from the truth table. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 15
  • 16. Now map to a circuit  The circuit has 2 D type F/Fs 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 16
  • 17. Verification  Could write a VHDL model and verify operation.  For complex circuits this is essential to insure that the design performs as specified. 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 17
  • 18. Class 22 assignment  Covered sections 5-5  Problems for hand in  5-14 and 5-28a,b  Problems for practice  5-13, 5-18, 5-19, 5-22, 5-25, 5-27  Reading for next class: none 9/15/09 - L22 Sequential Circuit Design Copyright 2009 - Joanne DeGroat, ECE, OSU 18