SlideShare a Scribd company logo
1 of 17
ECE 287 – Lecture 15
Finite State Machines - II
Announcements
• Next Quiz on Wednesday
• Exam II – Nov 15th
FSM Example
For the given circuit, we want to use it to
store 16 bits of information and check if all
the 4 bit individual numbers (4 of them) are
all equal.
input
valid
clk

out
Algorithm
State Diagram
State Table
State Machine Circuit
What if clock is fast?

How does the system start up?
Actual Comparison Circuit
Verilog for FSMs
reset

In = 0

In = 0

B

A

Out = 1

Out = 0
In = 1
In = 1
Try and build the Verilog for bit
matching example at the start of class…
Problem Set
1. Build a verilog system for:
In = 0

In = 1
In = 0

B
Out = 1

A
Out = 0
In = 0

In = 1

G
Out = 1

In = 1
Problem Set
1. Build a verilog system for:
•

Design a state machine controller for an elevator. The elevator can be at one of two
floors: Ground or First. There is one button that controls the elevator, and it has two
values: Up or Down. Also, there are two lights in the elevator that indicate the current
floor: Red for Ground, and Green for First. At each time step (clock), the controller
checks the current floor and current input, changes floors and lights in the obvious way.

More Related Content

What's hot

Pantheon Demo
Pantheon DemoPantheon Demo
Pantheon Demo
Zac Ayers
 

What's hot (15)

Reactive programming at scale
Reactive programming at scale Reactive programming at scale
Reactive programming at scale
 
IPMR Box 6
IPMR Box 6IPMR Box 6
IPMR Box 6
 
06 - HAMS implementation
06 - HAMS implementation06 - HAMS implementation
06 - HAMS implementation
 
Cape2013 scilab-workshop-19Oct13
Cape2013 scilab-workshop-19Oct13Cape2013 scilab-workshop-19Oct13
Cape2013 scilab-workshop-19Oct13
 
LR(0) PARSER
LR(0) PARSERLR(0) PARSER
LR(0) PARSER
 
Mikio Braun – Data flow vs. procedural programming
Mikio Braun – Data flow vs. procedural programming Mikio Braun – Data flow vs. procedural programming
Mikio Braun – Data flow vs. procedural programming
 
Scilab-by-dr-gomez-june2014
Scilab-by-dr-gomez-june2014Scilab-by-dr-gomez-june2014
Scilab-by-dr-gomez-june2014
 
eventnet asynchronous recursive event processing
eventnet asynchronous recursive event processingeventnet asynchronous recursive event processing
eventnet asynchronous recursive event processing
 
Lect4 organization
Lect4 organizationLect4 organization
Lect4 organization
 
Functional Scala
Functional ScalaFunctional Scala
Functional Scala
 
Microprocessor Week2: Data Transfer
Microprocessor Week2: Data TransferMicroprocessor Week2: Data Transfer
Microprocessor Week2: Data Transfer
 
Abstract presentation on feature engineering on streaming data for pycon
Abstract presentation on feature engineering on streaming data for pyconAbstract presentation on feature engineering on streaming data for pycon
Abstract presentation on feature engineering on streaming data for pycon
 
Linear and Binary Search Algorithms.(Discrete Mathematics)
Linear and Binary Search Algorithms.(Discrete Mathematics)Linear and Binary Search Algorithms.(Discrete Mathematics)
Linear and Binary Search Algorithms.(Discrete Mathematics)
 
Clocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and designClocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and design
 
Pantheon Demo
Pantheon DemoPantheon Demo
Pantheon Demo
 

Similar to Lecture15 fsm i_ic

state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdf
rdjo
 
-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docx-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docx
janettjz6sfehrle
 
lecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.pptlecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.ppt
ssuser2ae35a
 

Similar to Lecture15 fsm i_ic (20)

Lecture14 fsm ic
Lecture14 fsm icLecture14 fsm ic
Lecture14 fsm ic
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuits
 
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
Application Of The Three-In-One Control Platform Based On OPC In The Lifting-...
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
final Line balancing slide12.ppt
final Line balancing slide12.pptfinal Line balancing slide12.ppt
final Line balancing slide12.ppt
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
Optimistic Algorithm and Concurrency Control Algorithm
Optimistic Algorithm and Concurrency Control AlgorithmOptimistic Algorithm and Concurrency Control Algorithm
Optimistic Algorithm and Concurrency Control Algorithm
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counter
 
Analysis and Design of PID controller with control parameters in MATLAB and S...
Analysis and Design of PID controller with control parameters in MATLAB and S...Analysis and Design of PID controller with control parameters in MATLAB and S...
Analysis and Design of PID controller with control parameters in MATLAB and S...
 
state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdf
 
-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docx-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docx
 
lecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.pptlecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.ppt
 
Elevator Control System using Verilog
Elevator Control System using VerilogElevator Control System using Verilog
Elevator Control System using Verilog
 
Lectures upto block diagram reduction
Lectures upto block diagram reductionLectures upto block diagram reduction
Lectures upto block diagram reduction
 
Digital logic and microprocessors
Digital logic and microprocessorsDigital logic and microprocessors
Digital logic and microprocessors
 
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdfD. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
 
CS-1(Ch.1).pdf
CS-1(Ch.1).pdfCS-1(Ch.1).pdf
CS-1(Ch.1).pdf
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 
Documentation
DocumentationDocumentation
Documentation
 

More from Konsta Anttila

More from Konsta Anttila (11)

Lecture15 fsm i_ic
Lecture15 fsm i_icLecture15 fsm i_ic
Lecture15 fsm i_ic
 
Lecture16 fsm iii_c
Lecture16 fsm iii_cLecture16 fsm iii_c
Lecture16 fsm iii_c
 
Lecture verilog ii_c
Lecture verilog ii_cLecture verilog ii_c
Lecture verilog ii_c
 
Lecture verilog ii_c
Lecture verilog ii_cLecture verilog ii_c
Lecture verilog ii_c
 
Lecture16 fsm iii_c
Lecture16 fsm iii_cLecture16 fsm iii_c
Lecture16 fsm iii_c
 
Lecture13 memory ii_c
Lecture13 memory ii_cLecture13 memory ii_c
Lecture13 memory ii_c
 
Lecture12 memory
Lecture12 memoryLecture12 memory
Lecture12 memory
 
Mbi121 11 f12notes
Mbi121 11 f12notesMbi121 11 f12notes
Mbi121 11 f12notes
 
Mbi121 13 f12ctrlgrthnotes
Mbi121 13 f12ctrlgrthnotesMbi121 13 f12ctrlgrthnotes
Mbi121 13 f12ctrlgrthnotes
 
Mbi121 9 f12-notes
Mbi121 9 f12-notesMbi121 9 f12-notes
Mbi121 9 f12-notes
 
Mbi121 8 f12-classnotes
Mbi121 8 f12-classnotesMbi121 8 f12-classnotes
Mbi121 8 f12-classnotes
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Lecture15 fsm i_ic

  • 1. ECE 287 – Lecture 15 Finite State Machines - II
  • 2. Announcements • Next Quiz on Wednesday • Exam II – Nov 15th
  • 3.
  • 4.
  • 5.
  • 6.
  • 7. FSM Example For the given circuit, we want to use it to store 16 bits of information and check if all the 4 bit individual numbers (4 of them) are all equal. input valid clk out
  • 12. What if clock is fast? How does the system start up?
  • 14. Verilog for FSMs reset In = 0 In = 0 B A Out = 1 Out = 0 In = 1 In = 1
  • 15. Try and build the Verilog for bit matching example at the start of class…
  • 16. Problem Set 1. Build a verilog system for: In = 0 In = 1 In = 0 B Out = 1 A Out = 0 In = 0 In = 1 G Out = 1 In = 1
  • 17. Problem Set 1. Build a verilog system for: • Design a state machine controller for an elevator. The elevator can be at one of two floors: Ground or First. There is one button that controls the elevator, and it has two values: Up or Down. Also, there are two lights in the elevator that indicate the current floor: Red for Ground, and Green for First. At each time step (clock), the controller checks the current floor and current input, changes floors and lights in the obvious way.