Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Channel and resources

Hi,

I have got a question about channels and ressources.

If I used this code:...

channel long int ChannelIMG __atribute((depth(10000)));

__kernel void WriteValue(...)

{...

write_channel_altera(ChannelIMG ,MyValue)...

}

...

__kernel void ReadValue

{

MyTmpValue = read_channel_altera(ChannelIMG)

}

If I changed the value of "10000" to 100, for example, the "Resource Usage Summary" didn't change. Is it normal, Why?

thanks

Dara

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Try checking the area.rpt and look at the total number of elementeds in each category. The reason might be because a change from 100 to 10000 may be insignificant and not affect the overall percent of resource usage, but you should be able to see the number of total elements reflected. Otherwise, I am not sure and would expect at least the total number of FFs or RAM to increase in order to hold the data in the buffer.