Professional Documents
Culture Documents
1 2
State Machines
In VHDL 6 3
5 4
example…
1
Declaring a State Signal State machines in VHDL
…with an enumerated type Two VHDL processes....
2
Example FSM - Robot Line Follower Robot FSM - State Diagram
State
Motors
010 "PL DL PR DR"
Inputs from
Sensors
Outputs
Forwards to motors
1010
110 011
010 010
100 001
010 000
Case Statement
Robot FSM - Output Process
3
Alternative: Nested Case Statement
Output Output
Clock and State Process Process Clock and State Process Process
(Moore) (Mealy)
State State