Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
747 Views

NIOS 2 Modelsim simulation debugging

May i know how do i add a debug message, i.e. like $display() in verilog, in the NIOS C program and display it in modelsim simulation environment?

0 Kudos
1 Reply
Highlighted
Honored Contributor I
24 Views

See AN351 https://www.altera.com/support/support-resources/design-examples/intellectual-property/embedded/nios... 

 

Use a JTAG UART with a BSP configured to use that UART as STDOUT, and then just use printf() from your application software. 

The JTAG UART will use $write() to output your characters.
0 Kudos