Académique Documents
Professionnel Documents
Culture Documents
is a behavioral model which is used to represent an software/hardware algorithm. consists of states, transitions
FSM
State: FSM consists of finite number of states, where each state represent unique configuration of the system. Transition is an action initiated by a condition. It starts from one state and ends in another/same state.
Datapath
Adders, subtractors, multipliers, dividers
Memory
Register file, ROMs, Caches
Controller
Controls how the system execute the data
Controllers
Depends who you ask. In the industry, they prefer Moore. Why?
It is not recommended to have the output influenced by input port. Most of the time you are better off Flopping/Latching the input ports of your design
State Assignment
State
In
Typical
assignment
Gray Encoding
10
One-hot Encoding
11
Unused States
Some
Unused means that the binary representation is not associated with any FSM state.
What
Safe (Fault-tolerant) FSM: got to an error state or return to the initial state.
Easy No
13
FSM Example
14
15
S1
1/1
Mealy
We
17
18
endmodule
19
20
endmodule
21
endmodule
22
23