fsm

G

Gandalf

Guest
http://pastebot.perl.it/cgi-bin/PasteIt.pl?rm=showpaste;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 a écrit :
http://pastebot.perl.it/cgi-bin/PasteIt.pl?rm=showpaste;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
 
i tryed to re-write the code to make it more shortly and i have this:
http://pastebot.perl.it/cgi-bin/PasteIt.pl?rm=showpaste;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.
 

Welcome to EDABoard.com

Sponsor

Back
Top