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

simulate c program from nios in modelsim 10.1

Altera_Forum
Honored Contributor II
1,491 Views

Hi everybody! 

 

This morning I have found this problem when I run my c program in Eclipse with Nios II modelsim configuration. 

 

This error message appears: 

 

Problem ocurred: 

 

Failed Executing: C:/altera/10.1/quartus\bin\perl\bin\perl.exe C:/altera/10.1/quartus\sopc_builder/bin/run_modelsim.pl C:\altera\10.1\modelsim_ase\win32aloem,C:/Users/ifdm/workspace/quartus/ifdm_project,mvbc_system return code: 127 

 

Can anybody help? 

 

Thank you very much.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
684 Views

ok I think I have fixed the problem runing from the console: 

 

perl c:/altera/10.1/quartus/sopc_builder/bin/run_modelsim.pl c:/altera/10.1/modelsim_ase/win32aloem,c:/Users/ifdm/workspace/quartus/ifdm_project,mvbc_system 

 

But my problem now is that in the simulation I don`t see any changes in the instruction buses of the cpu.  

Neither see any data in the jtag_uart_log. 

 

The ram is initalized with the code of the program with elf2hex, elf2dat and nios2_elf_nm because I have introduced this line 

 

NIOS2_BSP_ARGS="--default_sections_mapping sdram" 

 

in create-this-bsp file.  

 

My simulation lasts 1 ms, 1000 us , maybe is a short time. I am thinking of using these simulation options: small c library and reduced device drivers.  

 

Any idea in how to take less time in simulation and how to fix the problem no-instruction-interaction with the cpu in the program simulation?
0 Kudos
Altera_Forum
Honored Contributor II
684 Views

Hi, I'm getting the same error message too. How do you run it from the console window? I mean where do you type the text with the '\' changed into '/'? 

 

My error message is: 

 

Failed Executing: C:/altera/10.1/quartus\bin\perl\bin\perl.exe C:/altera/10.1/quartus\sopc_builder/bin/run_modelsim.pl C:\altera\10.1\modelsim_ase\win32aloem,C:/altera_trn/NiosII_HW/NiosII_1Day/NiosII_CIII_3C25/niosII_lab,niosII return code: 127 

 

 

--- Quote Start ---  

ok I think I have fixed the problem runing from the console: 

 

perl c:/altera/10.1/quartus/sopc_builder/bin/run_modelsim.pl c:/altera/10.1/modelsim_ase/win32aloem,c:/Users/ifdm/workspace/quartus/ifdm_project,mvbc_system 

 

 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
684 Views

In my computer  

 

"C:\altera\10.1\nios2eds\Nios II Command Shell gcc3.bat"
0 Kudos
Altera_Forum
Honored Contributor II
684 Views

Hi I have the same problem; 

I resolved opening modelsim directly from the SOPC Builder and then typing "s" and "w" into the transcript modelsim window. 

for more: http://cseweb.ucsd.edu/~tweng/cse143/nii_sopcbuilder_1day_labguide.pdf page 69. 

 

ale.
0 Kudos
Altera_Forum
Honored Contributor II
684 Views

There is a new patch in altera  

 

http://www.altera.com/support/kdb/solutions/rd01052011_557.html 

 

:D
0 Kudos
Reply