Altera_Forum
Honored Contributor
13 years ago"Safe" state machine
Hi,
Attached herewith is the Altera safe_state example. I want to build my code around this kind of state machine (for robust design). My question is why didn't you used "when others" in your example. What would happen if I'll still write it down in the end of the case statement? In general, are there any restrictions that I should know before I'm implementing the "Safe" form in all my designs (a reference document will do as well…)? Is it o.k. that I'll add the one-hot to the safe statement*? Is it recommended? * attribute syn_encoding : string; attribute syn_encoding of state_type : type is "safe, one-hot"; Thanks, Idan