Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12615 Discussions

Nios II CPU signals for signal tap 2

Altera_Forum
Honored Contributor II
1,223 Views

I'm using Signal Tap 2 to analyze nios ii signals, namely the program counter signals. When I add nodes to be analyzed, I see a long list of signals in the cpu. Does anyone know if there is any documentation on what those signals do? For example, there's a signal called NiosII | cpu:the_cpu | F_pcb, which I know has something to do with the program counter, but I would like to have documentation on what each of those signals means so I don't have to guess.

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
286 Views

The "F_" is the fetch stage. Page 10 in this document shows all the stages for the Nios II 'f' core. As you can see the fetch stages is the first one. 

 

If you are trying to follow what the CPU is executing you probably want to look at the execute stage ("E_") assuming synthesis doesn't rip it out. Otherwise just be aware that that the F_pcb is a few cycles ahead of what is actually being executed by the CPU. 

 

Now if you simulated this you'll see copies of the program counter at every stage since you are looking directly at the HDL names instead of post synthesis names (most of which synthesis will rip out of your design). Typically I simulate my code running so that I can see all the program counter copies at the same time and see how the system is behaving around the processor. 

 

I have never tried this myself but you might find this to be useful: http://www.altera.com/literature/an/an446.pdf
0 Kudos
Reply