Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Link between NIOS II & SOPC

Hello,

As a young amateur of NIOS, I have a question : I've done a SOPC on my Cyclone III development board, and for example I would like to turn ON one Led connected to one output of the FPGA. How do I know the name of the variable I have to set. In other word, I got a library with something like

# define IOADDR_ALTERA_AVALON_PIO_CLEAR_BITS(base)__IO_CALC_ADDRESS_NATIVE(base, 5)

so I can use this variable. But let say I want to create my own source files, how do I do ?

I was guessing there is a link between the name we put in Quartus on each pin (.bdf schematic), but it doesn't seem so.

Thanks !

Julien.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    u need to fill in the variable in the 'base' field as what you named it in sopc builder. let's say u name the led ports as LED_PIO, then you should fill in the 'base' with LED_PIO_BASE. if you are not sure about this, you can actually compile your design in nios II first to generate system.h file. inside this file, you can view all the ports that have been instantiated in sopc builder.