streetHawkk
Newbie level 5
- Joined
- May 14, 2012
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,359
Dear Friends,
I need your expert advise in designing my state machine. I would like to understand if it is a
good practice to perform some complex computation inside states in the statemachine.
for eg:
pseudocode
Please comment. If this approach is not good then please suggest a better way to implement such cases.
Thanks in advance.
HwK
I need your expert advise in designing my state machine. I would like to understand if it is a
good practice to perform some complex computation inside states in the statemachine.
for eg:
pseudocode
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 statedecoder: process(currState, inputval ....) begin case currState: when STATE_1: -- do some complex computations -- like multiplication & addition etc and this state -- would not change for several 100clk cycles. when STATE_2: -- similar to the above state. ... ..
Please comment. If this approach is not good then please suggest a better way to implement such cases.
Thanks in advance.
HwK