Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

assigning integer value to an integer array

Status
Not open for further replies.

gloin

Newbie level 4
Joined
Nov 21, 2005
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,318
I defined my array and integer signal like this;

type time_array is array(0 to 25) of integer range 0 to 40;
signal store_high_time : Integer range 0 to 40;
signal store_low_time : Integer range 0 to 40;

assigning these signals to the array,

time_array(cnt) <= store_high_time;
or
time_array(cnt) <= store_low_time;

I m getting this error;
>The expression can not be converted to type time_array

With this code I m trying to write time values in to an array, how can I solve this problem?

regards,
Gloin
 

Hello,

the signal declaration is missing in your example, you only defined a type, which is necessary but not sufficiant.

You could supplement your code as follows:

type time_array_type is array(0 to 25) of integer range 0 to 40;
signal time_array: time_array_type;

Regards,
Frank
 

    gloin

    Points: 2
    Helpful Answer Positive Rating
Hello,

You cleared my mind, thank you

regards,
Gloin
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top