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++
12690 Discussions

Nios 2 peripheral register view

asuperman15
Beginner
877 Views

Hi All!

I'm using Nios II eclipse and I'd like to know if it is possible to have a "peripheral register view" similar to other ICs.

Eclipse Version: Kepler Service Release 2

Br,

Alberto

0 Kudos
9 Replies
JingyangTeh
Employee
820 Views

Hi


There is no register "peripheral view" in NiosII that you are looking for.

What are the settings that you are looking to set?


Regards

Jingyang, Teh


0 Kudos
asuperman15
Beginner
803 Views

Hi Jingyang, Teh

 

Thanks for answering my question. 

I was looking for the registers of some components like PIOs, Timers, etc. to see on live its configuration and in case of the PIOs see the state of the Output when I am debugging my application.

 

Best Regards,

Alberto

0 Kudos
JingyangTeh
Employee
754 Views

Hi


There is no PIO for the nios2 soft processor.

You could add in the PIO soft IP to interact with certain LED like in the example below:

https://www.intel.com/content/www/us/en/docs/programmable/683615/current/nios-ii-design-example.html


Regards

Jingyang, Teh


0 Kudos
asuperman15
Beginner
733 Views

Hi Jingyang, Teh

 

Thanks for the example.

 

I already have added my I/O outputs to PIO soft IP, I just wanted to see such registers information on live on Nios II eclipse.  

 

Basically, what you are saying is that there is no way to see any defined "component" registers information on live in Nios II eclipse for debugging purposes. 

Is there any way to see this registers information in a structural way?

 

Br,

Alberto

 

0 Kudos
JingyangTeh
Employee
689 Views

Hi Alberto


I think you are referring to the register list of the soft ip connected to the Nios2 instead of the Nios2 registers list correct?


If so , to access the registers list of the connected SoftIP like the PIO soft IP connected in your case.

You could assess the register list from the base address of the PIO (PIO_0_BASE ) from the address stated in the "system.h" file generated in the BSP folder.


All the connected SoftIp will address will be listed in the system.h file.


Regards

Jingyang, Teh




0 Kudos
asuperman15
Beginner
670 Views

Hi Jingyang, Teh

 

I like to know if there is a way to see the SoftIP like the PIO as shown in the picture attached.  Where I can see the registers and its content corresponding to the PIO, etc.

PeripheralRegisters.png

Br,

Alberto

0 Kudos
JingyangTeh
Employee
596 Views

Hi


You could find the register map for the PIO Soft IP.

https://www.intel.com/content/www/us/en/docs/programmable/683130/22-1/register-map-33025.html


Once you generate the BSP there are macros that are generate to interface with the soft IP.

For PIO there is this file "altera_avalon_pio_regs.h"



Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
556 Views

Hi


Any update on this case?

Did you managed to interface with the connected IP from Nios?


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
522 Views

Hi


As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



Regards

Jingyang, Teh



0 Kudos
Reply