--- Quote Start ---
The IDE might let you constrain the part of the SDRAM used for the nios code/data/stack/heap.
Alternatively the space can be reserved by writing a custom linker script.
The linker script can also assign symbolic names to the base (etc) of the reserved area.
But it you don't really care what the address is (because you are only referencing by its symbolic address) a static data item would suffice.
You might need to mark with __attribute__(aligned(32)) in order to stop cache line sharing. You could also use __attribute__(section("fubar"))) to make it easier to assign the item to a specific address using the linker script.
There are a lot of ways to hang yourself :-)
--- Quote End ---
Than you for your answer as well.
I think I need to know the address because i want to write data there before with vhdl logic and then access it through Nios. Would it be possible to divide the SDRAM in two? one half for data and one for code? Do you know were can I find information on the scripts that you are referring to?