About Generic

Discussion in 'VHDL' started by agou, May 25, 2006.

  1. agou

    agou Guest

    Hi,

    A newbie question. :)
    I declare a Generic in my entity e.g. LEN := 10.
    And then I multiply LEN by an integer in the code, e.g. LEN*5, I wonder
    whether the synthesizer would replace LEN*5 by 50 in the sythesize
    instead of multiplying it?

    Thanks
     
    agou, May 25, 2006
    #1
    1. Advertising

  2. agou

    jtw Guest

    The synthesizer will do the static math; it won't build a multiplier.

    JTW

    "agou" <> wrote in message
    news:...
    > Hi,
    >
    > A newbie question. :)
    > I declare a Generic in my entity e.g. LEN := 10.
    > And then I multiply LEN by an integer in the code, e.g. LEN*5, I wonder
    > whether the synthesizer would replace LEN*5 by 50 in the sythesize
    > instead of multiplying it?
    >
    > Thanks
    >
     
    jtw, May 25, 2006
    #2
    1. Advertising

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. Marek Ponca

    FC II & Generic

    Marek Ponca, Nov 21, 2003, in forum: VHDL
    Replies:
    1
    Views:
    482
    Marcin
    Nov 22, 2003
  2. valentin tihomirov

    generic vector

    valentin tihomirov, Jan 30, 2004, in forum: VHDL
    Replies:
    7
    Views:
    5,030
    valentin tihomirov
    Feb 3, 2004
  3. Murat Tasan
    Replies:
    1
    Views:
    8,051
    Chaitanya
    Feb 3, 2009
  4. Replies:
    2
    Views:
    437
  5. minlearn
    Replies:
    2
    Views:
    457
    red floyd
    Mar 13, 2009
Loading...

Share This Page