[myhdl-list] State machine modeling
Brought to you by:
jandecaluwe
From: Oscar D. <osc...@gm...> - 2011-11-09 12:36:22
|
Hi Recently I had some problems converting state machines to VHDL. In my models I use two generators: one with the state sequence and another with the output based on the states. For this second generator I use @always_comb, since its just combinatorial logic. Works perfect in simulation but fails on conversion. Then I did a workaround: put manually a sensitivity list with @always(list_of_signals) and then the conversion step worked fine. I wonder if it's a bug in conversion, or if there's a better way to model a state machine. I attach a small example to show my dilemma. Best regards -- Oscar Díaz Key Fingerprint = 904B 306C C3C2 7487 650B BFAC EDA2 B702 90E9 9964 gpg --keyserver subkeys.pgp.net --recv-keys 90E99964 I recommend using OpenDocument Format for daily use and exchange of documents. http://www.spreadopendocument.org/ |