Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHow to call tightly couple module during C code for NIOS II
Hi there... I am a new to NIOS II technology and I would like to ask... how can we call for module in C programming for NIOS II. Because from my understanding, we can add some module that coupled wit...
Altera_Forum
Honored Contributor
15 years agoAny information passed to the software environment accessible from C that are generated from SOPC are stored in system.h. Most C files will# include system.h to get the definitions for all of the components in the SOPC design. What is in system.h for your peripheral depends completely on the design of the peripheral. At a minimum you will have the base address. I would think you need to write a HAL (API) layer to read/write the peripheral to get it to do something and maybe to return a result. This is probably done with IORD and IOWR C macros to make your peripheral functional.
Bill