Altera_Forum
Honored Contributor
20 years agoHow to access the Program Counter of Nios II
Hey everybody. I'm a fairly new user using this board, however I come here to search for topics that can help solve my problems. Lately I have been successful finding these troubleshooting topics except for one.
I'm trying to access the Program Counter (PC) register of the Nios II Processor. Is there any available software function (C/C++ macro) that I'm able to access the program counter and store its value into a variable? If this is not possible, then what other possible solutions that allows me to retrieve the value of the PC? Thanks a lot