Need Help on VHDL to write a Finite State Machine

Status
Not open for further replies.

lahrach

Full Member level 3
Joined
Feb 6, 2009
Messages
170
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,285
Hi friends,

I need to write a FSM that do this work:
Send N bits and receive the N bits then compare the N bits sended and the N bits received

best regards,
 

pseudo code:

state1: send N bits
state2: receive N bits
state3: compare bits

done.
 

my answer is almost the same with ads_ee's, but add another initial state, state 0, to reset all signals. and after all process is done, the FSM returns to the initial state 0.
 

yeah I considered adding that state, but thought that might give away too much, considering how the OP wants us to write the FSM for him, instead of asking how to fix his broken implementation after trying to make it work on his own (perhaps even learning something on the way). ;-)
 


Doesn't this just drive you crazy? It's just amazing how people continually post: "This is hard, I can't be bothered trying to do this. Can you do my homework for me?".
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…