easy one

Discussion in 'VHDL' started by crazyrdx, Sep 7, 2005.

  1. crazyrdx

    crazyrdx Guest

    How can I assign a signed vector of length 9 to a signed vector of
    length 12. ?
     
    crazyrdx, Sep 7, 2005
    #1
    1. Advertising

  2. Mike Treseler, Sep 7, 2005
    #2
    1. Advertising

  3. crazyrdx

    Andy Peters Guest

    crazyrdx wrote:
    > How can I assign a signed vector of length 9 to a signed vector of
    > length 12. ?


    Well, do you want the LSB of the 9-bit vector to be the LSB of the
    12-bit vector?

    -a
     
    Andy Peters, Sep 7, 2005
    #3
  4. crazyrdx

    Duane Clark Guest

    crazyrdx wrote:
    > How can I assign a signed vector of length 9 to a signed vector of
    > length 12. ?
    >


    v12 <= v9(8)&v9(8)&v9(8)&v9;
    Or is that not what you were looking for?
     
    Duane Clark, Sep 7, 2005
    #4
  5. crazyrdx

    crazyrdx Guest

    Thanks , got what I was looking for.
     
    crazyrdx, Sep 11, 2005
    #5
    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. Hazzard
    Replies:
    2
    Views:
    656
    Hazzard
    Apr 6, 2004
  2. news.frontiernet.net
    Replies:
    6
    Views:
    1,134
    news.frontiernet.net
    Apr 16, 2004
  3. loveNUNO
    Replies:
    2
    Views:
    933
    loveNUNO
    Nov 20, 2003
  4. Bruno Desthuilliers
    Replies:
    5
    Views:
    396
    Bruno Desthuilliers
    Aug 29, 2007
  5. Merciadri Luca
    Replies:
    4
    Views:
    828
Loading...

Share This Page