Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

ASM STATE mashine vs FSM

Hello.

i am new to vhdl world and we learned at out collge about state machine 2 ind ASM + FSM i did not realy get the diffrence coul u help me to understand it?

Thx.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thx but it did not helped since from what we learned there is a difference i just can't put my finger on it bu thx any way

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    i am new to vhdl world and we learned at out collge about state machine 2 ind ASM + FSM i did not realy get the diffrence coul u help me to understand it?

    --- Quote End ---

    There is no difference.

    An ASM chart is just an unambiguous way to draw an FSM.

    What do I mean by unambiguous? Well, unlike drawing an FSM with a bubble diagram, an ASM chart has to have all exits from decision logic shown, i.e., each path of an if-then-else is shown.

    For an example of code and an ASM chart, look at the SRAM controller discussed in this thread:

    http://www.alteraforum.com/forum/showthread.php?t=31457

    See p29 for the ASM chart, and download the code to see how it codes nicely into VHDL.

    Cheers,

    Dave