--- Quote Start ---
originally posted by ramesh_8051@Aug 16 2005, 04:18 AM
how can i write the program to access it..
can i access through c-program where i write my custom instruction..
and can i access any memory both by c-prog and h/w block(custom instruction) --- Quote End ---
It's going to look like any other memory, no special instructions needed.
As for Nios2 custom instructions, they live in the ALU and don't access memory themselves; the Nios2 CPU handles the memory access.
Did you mean custom hardware, like custom DMA peripherals? Custom hardware (Avalon bus masters) will see the SDRAM like any other memory. Additionally, custom hardware can take advantage of pipelined reads to increase bandwidth for block transfers; those details are in the Avalon Bus Specification, avazilable on the Altera web site.