signed signal assignment

Discussion in 'VHDL' started by mobini, Jun 5, 2004.

  1. mobini

    mobini Guest

    Hi
    I am trying to initialize my signed signal in below way
    constant a140 : buf3_16 := (4096,7807, -3733);
    or
    L <= 1253;
    when compiling it says "Type conflict in integer literal. Type signed
    versus integer"
    what can I do. How I can correct it?
    thank you in advance
    Nastaran
    mobini, Jun 5, 2004
    #1
    1. Advertising

  2. mobini wrote in message news:<>...

    > L <= 1253;
    > when compiling it says "Type conflict in integer literal.
    > Type signed versus integer"


    I'll assume L is unsigned:

    use ieee.numeric_std.all;
    -- . . .
    begin
    -- . . .
    L <= to_unsigned(1253, L'length);


    -- Mike Treseler
    Mike Treseler, Jun 7, 2004
    #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. Nicolas Moreau
    Replies:
    9
    Views:
    3,086
  2. kyrpa83
    Replies:
    1
    Views:
    615
    kyrpa83
    Oct 17, 2007
  3. Replies:
    9
    Views:
    493
  4. dibacco73
    Replies:
    1
    Views:
    630
    joris
    Feb 12, 2009
  5. Rob1bureau
    Replies:
    1
    Views:
    798
    joris
    Feb 27, 2010
Loading...

Share This Page