Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

simulate 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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 ---