Please allow me to give you a bit more detail because I've been there and still not sure how to proceed.
I'm using the Nios II/e along with jtag uart, sysid and onchip memory.
My objective here is to write to the onchip memory a value that I can
access and pinout to an LED on my cyclone III fpga.
So 2 issues as I see it:
1) how do I actually write to the onchip memory from my nios II
(i.e what is the syntax of a write and do i need some external libs)
2) once i write to the onchip memory, how do i actually access that memory from outside of my sopc project. How do I interface with the rest of my fpga?? Currently my nios system only has a reset and a clock port. How in the world am I to access the contents of memory of the onchip memory and then connect that to a pin on my fpga?
nios_test_system_1
(
.clk_0 (clk40),
.reset_n (1)
);