Forum Discussion
Altera_Forum
Honored Contributor
15 years agosimulate c program from nios in modelsim 10.1
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.5 Replies
- Altera_Forum
Honored Contributor
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? - Altera_Forum
Honored Contributor
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 --- - Altera_Forum
Honored Contributor
In my computer
"C:\altera\10.1\nios2eds\Nios II Command Shell gcc3.bat" - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
There is a new patch in altera
http://www.altera.com/support/kdb/solutions/rd01052011_557.html :D