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. Advertisements

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

    FC II & Generic

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

    generic vector

    valentin tihomirov, Jan 30, 2004, in forum: VHDL
    Replies:
    7
    Views:
    5,564
    valentin tihomirov
    Feb 3, 2004
  3. valentin tihomirov
    Replies:
    1
    Views:
    687
    Jonathan Bromley
    Feb 18, 2004
  4. Steve Wenner

    generic mapping

    Steve Wenner, Apr 17, 2004, in forum: VHDL
    Replies:
    0
    Views:
    616
    Steve Wenner
    Apr 17, 2004
  5. ALuPin
    Replies:
    1
    Views:
    706
    Mike Treseler
    Jun 25, 2004
  6. Murat Tasan
    Replies:
    1
    Views:
    8,426
    Chaitanya
    Feb 3, 2009
  7. Replies:
    2
    Views:
    634
  8. minlearn
    Replies:
    2
    Views:
    650
    red floyd
    Mar 13, 2009
Loading...