SlideShare a Scribd company logo
1
Advanced FPGA Based System Design
Lecture-11 & 12
VHDL
Finite State Machines
By: Dr Imtiaz Hussain
imtiaz.hussain@faculty.muet.edu.pk
2
Contents
• Finite State Machines
• Design Style#1
• Design Style#2
• Signals & Variables
3
Introduction
• Several approaches can be conceived to design a
FSM.
• We will discuss in detail one style that is well
structured and easily applicable.
4
Design Style#1
• In this style, the design of the lower section of the
state machine is completely separated from that of
the upper section.
5
Design Style#1
• It contains user-defined enumerated data type (here
called state), which lists all possible states of the
machine.
6
Design Style#1
• Design of Lower (Sequential) section
• The flip-flops are in the lower section, so clock and reset are
connected to it.
• The other lower section’s input is nx_state (next state), while pr_state
(present state) is its only output.
• Being the circuit of the lower (sequential) section, a PROCESS is
required, in which any of the sequential statements (IF, WAIT, CASE, or
LOOP, can be employed.
7
Design Style#1
• Design of Lower (Sequential) section
– A typical design template for the lower section is the
following:
8
Design Style#1
• Design of Upper (Combinational) section
• The upper section is fully combinational, so its code does not
need to be sequential; concurrent code can be used as well.
• In the design template shown in next slide, sequential code is
employed, with the CASE statement playing the central role.
9
10
Example-1
• A BCD counter is an example of Moore Machine
11
Example-1
12
Example-1
13
Example-1
14
Example-1
15
Example#2
• The system has two states (state A and state B).
• State must change from one to the other every time d = ‘1’ is
received.
• The desired output is x = a when the machine is in state A, or
x =b when in state B.
• The initial (reset) state is state A.
16
Example#2
17
Example#2
18
Example#2

More Related Content

PPT
19-MooreMealy.ppt
PPTX
Finite state machine and it's types and working
PPTX
bbbbbbbbbbbbbcsdasdabcddksrekkdkfjdslsdfrd
PPT
19-MooreMealy.ppt
PPT
moore melay of synchronous sequential circuits.ppt
PPTX
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
PPTX
Sometimes tells me funny stories from his childhood
19-MooreMealy.ppt
Finite state machine and it's types and working
bbbbbbbbbbbbbcsdasdabcddksrekkdkfjdslsdfrd
19-MooreMealy.ppt
moore melay of synchronous sequential circuits.ppt
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Sometimes tells me funny stories from his childhood

Similar to advanced fpga based system design VI.ppt (20)

PPT
19 moore mealy
PPTX
PPT
Introduction state machine
PPT
Short.course.introduction.to.vhdl for beginners
PDF
Finite State Machines In Hardware Unknown
PPT
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
PPT
chap8 synchronous sequential circuit design.ppt
PPT
Bit_logic_design_introduction_part_1.pptx
PPT
Embedded system design process_models
PPTX
Finite state machines
PPT
Short.course.introduction.to.vhdl
PDF
Combinational logic circuit by umakant bhaskar gohatre
PPTX
VLSI training PPT, vinay
PPTX
ASIC Design Laboratory Finite State Machines State Diagrams vs. Algorithmic S...
PPT
Ver6.ppt
PPT
PPTX
MOC2.PPT[1].pptx introduction to mealy machine and moore machine with eample ...
PPT
System design methodology
PDF
L0537075
19 moore mealy
Introduction state machine
Short.course.introduction.to.vhdl for beginners
Finite State Machines In Hardware Unknown
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
chap8 synchronous sequential circuit design.ppt
Bit_logic_design_introduction_part_1.pptx
Embedded system design process_models
Finite state machines
Short.course.introduction.to.vhdl
Combinational logic circuit by umakant bhaskar gohatre
VLSI training PPT, vinay
ASIC Design Laboratory Finite State Machines State Diagrams vs. Algorithmic S...
Ver6.ppt
MOC2.PPT[1].pptx introduction to mealy machine and moore machine with eample ...
System design methodology
L0537075
Ad

Recently uploaded (20)

PDF
Digital Logic Computer Design lecture notes
PPTX
bas. eng. economics group 4 presentation 1.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
web development for engineering and engineering
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
Construction Project Organization Group 2.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPT
introduction to datamining and warehousing
Digital Logic Computer Design lecture notes
bas. eng. economics group 4 presentation 1.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
web development for engineering and engineering
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
CH1 Production IntroductoryConcepts.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Safety Seminar civil to be ensured for safe working.
Construction Project Organization Group 2.pptx
additive manufacturing of ss316l using mig welding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
OOP with Java - Java Introduction (Basics)
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
introduction to datamining and warehousing
Ad

advanced fpga based system design VI.ppt

  • 1. 1 Advanced FPGA Based System Design Lecture-11 & 12 VHDL Finite State Machines By: Dr Imtiaz Hussain imtiaz.hussain@faculty.muet.edu.pk
  • 2. 2 Contents • Finite State Machines • Design Style#1 • Design Style#2 • Signals & Variables
  • 3. 3 Introduction • Several approaches can be conceived to design a FSM. • We will discuss in detail one style that is well structured and easily applicable.
  • 4. 4 Design Style#1 • In this style, the design of the lower section of the state machine is completely separated from that of the upper section.
  • 5. 5 Design Style#1 • It contains user-defined enumerated data type (here called state), which lists all possible states of the machine.
  • 6. 6 Design Style#1 • Design of Lower (Sequential) section • The flip-flops are in the lower section, so clock and reset are connected to it. • The other lower section’s input is nx_state (next state), while pr_state (present state) is its only output. • Being the circuit of the lower (sequential) section, a PROCESS is required, in which any of the sequential statements (IF, WAIT, CASE, or LOOP, can be employed.
  • 7. 7 Design Style#1 • Design of Lower (Sequential) section – A typical design template for the lower section is the following:
  • 8. 8 Design Style#1 • Design of Upper (Combinational) section • The upper section is fully combinational, so its code does not need to be sequential; concurrent code can be used as well. • In the design template shown in next slide, sequential code is employed, with the CASE statement playing the central role.
  • 9. 9
  • 10. 10 Example-1 • A BCD counter is an example of Moore Machine
  • 15. 15 Example#2 • The system has two states (state A and state B). • State must change from one to the other every time d = ‘1’ is received. • The desired output is x = a when the machine is in state A, or x =b when in state B. • The initial (reset) state is state A.