Altera_Forum
Honored Contributor
9 years agoPIO base address constant, defined on design
Hi,
I have made some experiments on NIOS2 core with the Avalon PIO and it’s working fine. However, differently from some examples found on the Web, e.g iord(pio_0_base,0) - I had to manually paste the numerical base address of the pio_0 which was generated by Qsys. I had to do this way for the sake of Eclipse underlined this parameter warning that it was not recognized by compiler. Although I made a deep search on the content of all files of the design by Windows search tool, seeking some occurence of the partial word “PIO_0” assigned to something related to it current address “3030” ( actually, 0x0000_3030 ), could not find anything. Correct me if I’m wrong, but should I manually create my own assignments, or are there a better way ? I fear that after performing eventual updating on base addresses on Qsys this could change the value already defined#define PIO_0_BASE 0x00003030