G
Gerardo Sosa
Guest
I want to test the example in page 217 of DK2 Handel-C Language
Reference Manual.
-------
ram unsigned 8 RAM1[4] = {0,1,2,3} with {block="BlockRAM"};
ram unsigned 8 RAM2[4] with {block="BlockRAM"};
signal s;
unsigned x;
unsigned i;
while(1)
{
par
{
s = RAM1;
RAM2 = s;
x = s;
i++;
}
}
-------
BUt it doesn't compile, I get the following error: Illegal
initializer. I suppose that I can't initialize the RAM, then why
Celoxica give examples that doesn't works? or what's missing?
Thanks
Gerardo
Reference Manual.
-------
ram unsigned 8 RAM1[4] = {0,1,2,3} with {block="BlockRAM"};
ram unsigned 8 RAM2[4] with {block="BlockRAM"};
signal s;
unsigned x;
unsigned i;
while(1)
{
par
{
s = RAM1;
RAM2 = s;
x = s;
i++;
}
}
-------
BUt it doesn't compile, I get the following error: Illegal
initializer. I suppose that I can't initialize the RAM, then why
Celoxica give examples that doesn't works? or what's missing?
Thanks
Gerardo