- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page