Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
725 Views

How to simulate Nios II program with SOPC Builder

Hi everyone, 

 

I have an SOPC builder Avalon system with a NIOS-II processor. I want to simulate the whole thing with a program runnin in the NIOS-II. The program itself is very basic, a "hello world" message sent to the UART and some I/O operations. 

 

I have instantiated an onchip-memory in the SOPC. I have modified the linker script using the BSP editor tool to make the gcc compiler link the program to the address of the on-chip memory. 

 

But now I'm stuck, I can't find how to tell SOPC builder to use the hello_world.elf binary to initialize the content of the on-chip memory. 

 

What am I missing or what am I doing wrong? 

 

Thanks
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
24 Views

You could have a look on the AN351.

Altera_Forum
Honored Contributor I
24 Views

Thanks, but I use SOPC Builder (PCI core is not available with QSYS). 

 

I'll take a look but AFAIK, a lot of things don't apply.
Altera_Forum
Honored Contributor I
24 Views

Try to find an older release. I found one here http://www.scribd.com/doc/36117105/an-351 

 

The old NIOS doc is available here : http://www.altera.com/literature/lit-nio2.jsp