Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12366 Discussions

NIOS 2 Modelsim simulation debugging

Altera_Forum
Honored Contributor I
788 Views

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
Altera_Forum
Honored Contributor I
65 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.
Reply