Altera's Nios II Software Developer's Handbook
Chapter 13 of the Altera Nios II Software Developer's Handbook explains the process of publishing component information from hardware components to embedded software tools. This information is used by tools such as C compilers and board support package (BSP) generators to interpret hardware configurations correctly.
The document details how to use Tcl assignment statements within component description files (_hw.tcl) to pass data to these software tools. These assignments are organized into specific namespaces, including 'C Macro' for generating #define statements and 'Configuration' for passing runtime settings.
You can publish hardware component information for use by software, such as a C compiler and a board support package generator.
A component publishes information by including Tcl assignment statements in its component description file.
Assignments that apply to the entire component are set using the set_module_assignment command.