![]() |
|
|
|
#1 |
|
http://pastebot.perl.it/cgi-bin/Past...owpaste;id=542
this is my fsm, it works! but i think it's a bit verbose, don't u think? there's a way to make it shortly? Gandalf |
|
|
|
|
#2 |
|
Posts: n/a
|
Gandalf a écrit :
> http://pastebot.perl.it/cgi-bin/Past...owpaste;id=542 > > this is my fsm, it works! > but i think it's a bit verbose, don't u think? > > there's a way to make it shortly? Hi I've just had a *very* quick look at it. Are you sure you need that many states? Can't you use a counter in some states instead of a long sequence? Use ieee.numeric_std instead of ieee.std_logic_arith and ieee.std_logic_unsigned (there is a recent thread in this newsgroup about why you should) Nicolas Nicolas Matringe |
|
|
|
#3 |
|
Posts: n/a
|
i tryed to re-write the code to make it more shortly and i have this:
http://pastebot.perl.it/cgi-bin/Past...owpaste;id=547 i used the libreries u told me. this is a simulation with ModelSim: http://www.geocities.com/bagbyte/simulation.jpg how u can see, there is a small time in which the counter conta_rom change it's value 2 time so my FSM soesn't work how it could work! can u tell me why i have this result? this simulation is for the sates from s0 to s14. Gandalf |
|