Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > type error resolving infix expression -- ERROR

Reply
Thread Tools

type error resolving infix expression -- ERROR

 
 
senthil
Guest
Posts: n/a
 
      02-26-2004
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.
 
Reply With Quote
 
 
 
 
Egbert Molenkamp
Guest
Posts: n/a
 
      02-27-2004

"senthil" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: (infix expression) for formal "din" is not a globally static expression tomer VHDL 0 07-27-2011 11:43 PM
ERROR: infix expression "<=" with simple vectors Trit VHDL 8 02-23-2009 08:09 PM
Ambiguous type in infix expression jens VHDL 4 10-15-2008 11:59 AM
resolving ambiguities while parsing a c expression junky_fellow@yahoo.co.in C Programming 8 11-20-2006 11:55 AM
infix to postfix expression string for evalution. KidLogik C++ 5 02-03-2004 05:20 PM



Advertisments