Forum Discussion
Altera_Forum
Honored Contributor
10 years agoNIOS 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?
Altera_Forum
Honored Contributor
10 years ago 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.