Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Nios simulation stops after reset vector

Altera_Forum
Honored Contributor II
1,050 Views

Hello,  

 

I try to simulate basic designs of NIOS2 with Modelsim,  

Basicly those are designs that are presented in different tutorials for NIOS 2.  

 

No metter what design I compile\build, NIOS2 always stops after reading first 8 addresses starting the reset vector address. The simulation then goes on but nothing happens.  

 

When I simulate the design with instruction set simulator or run it on taget board every thing works ok, for example: 

I slightly modify "hello world" program so that it will have infinite while loop with "printf", with instruction set simulation this works perfectly but in modelsim nothen happens after first 8 addresses.  

 

 

I follow the instruction of the tutorial for building Nios from scratch, I use on chip RAM,  

The SOPC generation and the software brojects are built successfuly I then verify that the initialization file for the memory(<memory_name>.dat _sim directory) is updated, that the memory initialization file in Test bench is correctly specified. 

 

I also verify that the first data read after the resert vector is the actual data in initialization file.  

 

I tried to play with the memories in SOPC builder, and with system libraries specificaions in NIOS 2 IDE but the result is still the same.  

 

It seems that there is some problem with reset vector, that prevents Nios from executing the program.  

 

I can't figure out what may be wrong?  

 

May be someone has encontered this problem before?  

 

Thank you.
0 Kudos
0 Replies
Reply