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

Link between NIOS II & SOPC

Altera_Forum
Honored Contributor II
1,008 Views

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. 

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
295 Views

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.

0 Kudos
Reply