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

Code simulation

Hello every body; 

how I can run a code in eclipse as a local c/c++ code, as I haven't a development kit in my class, and i want to run and debug my code offline. 

if there are any other simulation way. please tell me a bout. 

Thanks.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor I
21 Views

You can verify your code using NIOS II Modelsim option. If you want to verify your vhdl/verilog code then you can write test bench and verify it using simulator like Modelsim,NC Sim etc.

Altera_Forum
Honored Contributor I
21 Views

Thanks MR.zoomkrupesh for your attention, 

I have already tried to run my code project as modelsim, but the operation not completed and paused at the 57% from its progress, I simply want to see the "hello world" of my project on the screen, do you have any solution to me but with some details please. 

Thanks.
Altera_Forum
Honored Contributor I
21 Views

Would you please provide my your reference design?

Altera_Forum
Honored Contributor I
21 Views

I use the simple "Hello World" template example, did you mean by the reference design the .sopc info file.

Altera_Forum
Honored Contributor I
21 Views

I was asking about your Qsys or SOPC design. Anyway, I assume that your Qsys or SOPC design contains NIOSII CPU,JTAG UART and ONCHIP Memory(for both program and data memory). 

Have you selected enable_sim_optimize option under BSP Editor Setting? If not select it.(project name_bsp->right click->NIOSII->BSP Editor->select check box). 

 

Once Modelsim compiles all the files(it will do this automatically),type run -all command in transcript window.After 2-3 Minute it should display "Hello from NIOS II" in Modelsim transcript window. 

 

I am able to run hello_world program successfully after following the steps mentioned above.
Reply