Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThe system.h file is generated automatically by the IDE when you build the bsp. It obtains the info from the *.sopcinfo file generated by sopc builder.
You create the my_component_regs.h file by hand and include it in the include path of the compiler. The my_component_regs.h file will reference the *BASE define in the system.h file. See the section "Accessing Hardware" in the NIOS II Software Developers Handbook for more info.