Forum Discussion
Altera_Forum
Honored Contributor
12 years agoNewbie memory question
Hi, I got a Terasic DE0-nano board with a Cyclone IV FPGA. My design is writing data in the memory. I use a NIOS II softcore too and I'd like it to read the FPGA memory and the data I wrote in a h...
Altera_Forum
Honored Contributor
12 years agoI don't exactly have that line. What seems to be the same is# define ONCHIP_MEM_BASE 0x8000
It's only a matter of name but there's a matter of address too. I use a 32000 bytes memory so I need 15 bits for the address. Does 0x8000 mean that the memory is uncached and the 15 LSBs represant the address? So I could read the nth word with printf("%d\n",ONCHIP_MEM_BASE+(n-1))? I tried that in the HelloWorld template but a window open claiming "Errors exist in a required project." I don't have more information. What can I do?