Forum Discussion
Altera_Forum
Honored Contributor
18 years agoHi,
I used the debugger , and i could c the following: In my design I have included an SDRAM controller with data width 16 bits and I have used it as main memory, though I have on chip memory for 50KB. ie; for CPU exception vector and reset vector. Now I c that int i; PERF_RESET(PERFORMANCE_COUNTER_BASE); PERF_START_MEASURING(PERFORMANCE_COUNTER_BASE); PERF_BEGIN(PERFORMANCE_COUNTER_BASE, 1); i=10; i=i+1; PERF_END(PERFORMANCE_COUNTER_BASE, 1); PERF_STOP_MEASURING(PERFORMANCE_COUNTER_BASE); these statements works fine with its address and data values, but when I include the "perf_print_formatted_report((void *)PERFORMANCE_COUNTER_BASE,ALT_CPU_FREQ, 1,"Time");" I get error from Nios build saying " Region needs to be 6684 bytes larger. ". The design works well for lights example from altera, but when I include my code which is above; it gives the region needs to be larger, I understand that this is because of lack of memory, but I dont understand why there is not enough memory, as I have included SDRAM also. In this I have not included the small C library option. Thanks, Anand