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++
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.
12437 Discussions

How to print string/integer to board/terminal in Nios ii Assembly

Honored Contributor II

I am writing nios ii assembly programs for the DE1 Altera board/software. We have been tasked with writing a program to count the number of set bits in a 32 bit word. I have written the program and as of now it has the correct answer in the registers but I can’t figure out how to print to the terminal in the software or print to the board’s display if that is at all possible.  

If anyone can help me with the correct nois ii code of how to print using board it would be greatly appreciated. I have searched online and in all the altera documents and still can’t find anything on how to print/output a string or number saved in a register. Please help or direct me to someone/something that can help.
0 Kudos
1 Reply
Honored Contributor II

I think the example(s) that are part of the Nios II EDS would work for you...particularly this one: