Forum Discussion

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

Have you ever met this strange problem?

Hi, everyone

Have you ever met this strange problem? I have use Q2 5.0 and NIOS IDE 5.0 to develope my project. My program is running in CFI flash and my FPGA is EP1C12Q240. A simple program is this:

.

.

float a = 2100;

.

main()

{

......

}

This program is running properly. But when I change the variable "a" 's initial value to 10500, the program became this:

.

.

float a = 10500;

.

main()

{

......

}

The program DONT RUN!!!. And the program did not optimize.

So I have to initialeze the varible in the "main" program:

.

float a;

.

main()

{

a = 10500;

......

}

Then the program can run porperly whenever I change the initial value.

did you ever met this?

Thanks
No RepliesBe the first to reply