type error resolving infix expression -- ERROR

Discussion in 'VHDL' started by senthil, Feb 26, 2004.

  1. senthil

    senthil Guest

    hi friends,

    i have one type of signal that contains 64 values, each value of type
    integer range -128 to 128. signal named as ifftre.

    subtype addr is integer range 0 to 63.
    type samp of array(addr) is integer range -128 to 128.
    signal ifftre : samp;
    subtype addr1 is integer range 0 to 79;
    type samp1 of array(addr1) is integer range -128 to 128
    signal cp : samp1;

    i got on output over that signal. then i want to get an another output
    of last 16 values with that of 64 values, total of 80 values i get and
    store it in another signal.
    for that i concatenate both values of same signal type

    cp <= ifftre(48 to 63) & ifftre ;

    and after i compile it

    i found one Error, in vhdl Modelsim 5.5 SE
    Error obtained as given below

    Type Error resolving infix expression -- at the coding where cp
    assigned.

    pls give some suggestion over that..
    expecting ur reply.
    senthil, Feb 26, 2004
    #1
    1. Advertising

  2. "senthil" <> wrote in message
    news:...
    > hi friends,
    >
    > i have one type of signal that contains 64 values, each value of type
    > integer range -128 to 128. signal named as ifftre.
    >
    > subtype addr is integer range 0 to 63.
    > type samp of array(addr) is integer range -128 to 128.
    > signal ifftre : samp;
    > subtype addr1 is integer range 0 to 79;
    > type samp1 of array(addr1) is integer range -128 to 128
    > signal cp : samp1;
    >
    > i got on output over that signal. then i want to get an another output
    > of last 16 values with that of 64 values, total of 80 values i get and
    > store it in another signal.
    > for that i concatenate both values of same signal type
    >
    > cp <= ifftre(48 to 63) & ifftre ;


    Remember that VHDL is a strongly type language. The type of cp is
    not the same as that of ifftre.
    Consider using an unconstrained array like:
    type samp is array(natural range <>) of integer range -128 to 128;
    signal ifftre : samp(0 to 63);
    signal cp : samp(0 to 79);

    cp <= ifftre(48 to 63) & ifftre ;

    Egbert Molenkamp
    Egbert Molenkamp, Feb 27, 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. KidLogik
    Replies:
    5
    Views:
    7,030
    David Rubin
    Feb 3, 2004
  2. Replies:
    8
    Views:
    394
    Chris Dollin
    Nov 20, 2006
  3. jens
    Replies:
    4
    Views:
    3,779
    Mike Treseler
    Oct 15, 2008
  4. Trit
    Replies:
    8
    Views:
    3,038
  5. tomer
    Replies:
    0
    Views:
    2,003
    tomer
    Jul 28, 2011
Loading...

Share This Page