Help:efficient FSM coding

Discussion in 'VHDL' started by msd, Feb 22, 2005.

  1. msd

    msd Guest

    Hi everybody.
    I´d like to write an efficient fsm controller to control a AX88796
    ethernet mac/phy from a Xilinx FPGA. The interface of the mac/phy is
    similar to a SRAM. The problem is that I have no idea, how I should
    make the code indipendent from the clock frequency, to respect all
    setup and hold constraints. How do I control that the state of the fsm
    changes only after a paramatrized number of clock cycles, without
    inferring counters and comparators (which wouldn't achieve a ~70MHz
    performance)?

    Best Regards
    Marco
     
    msd, Feb 22, 2005
    #1
    1. Advertisements

  2. msd wrote:

    > The problem is that I have no idea, how I should
    > make the code indipendent from the clock frequency, to respect all
    > setup and hold constraints.


    Consider a synchronous design using the same clock as the mac/phy.

    > How do I control that the state of the fsm
    > changes only after a paramatrized number of clock cycles, without
    > inferring counters and comparators


    Those will be inferred, but it is not a problem.

    (which wouldn't achieve a ~70MHz performance)?

    70Mhz should be easy to achieve.


    -- Mike Treseler
     
    Mike Treseler, Feb 22, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E. Backhus
    Replies:
    2
    Views:
    7,337
    Alain
    Jul 25, 2003
  2. Ingmar Seifert

    tool to draw FSM bubble diagram

    Ingmar Seifert, Jul 31, 2003, in forum: VHDL
    Replies:
    5
    Views:
    24,036
    Pedro Claro
    Aug 1, 2003
  3. calmar
    Replies:
    11
    Views:
    1,347
    calmar
    Feb 21, 2006
  4. Pleg
    Replies:
    8
    Views:
    2,091
  5. ro888
    Replies:
    1
    Views:
    834
    jcayer
    Apr 30, 2008
  6. vidh97
    Replies:
    0
    Views:
    704
    vidh97
    Jan 29, 2009
  7. Mike Treseler

    Re: help with FSM

    Mike Treseler, Mar 9, 2009, in forum: VHDL
    Replies:
    1
    Views:
    444
    Mike Treseler
    Mar 9, 2009
  8. MBALOVER

    Ask for book for efficient coding in C

    MBALOVER, Feb 20, 2010, in forum: C Programming
    Replies:
    26
    Views:
    918
    Tim Rentsch
    Mar 26, 2010
Loading...