Specifications

Options
<property-name>: Name of the property to add to the BSP for a module instance
<property-value>: Value of the property to add to the BSP for a module instance
Description
This adds a software property to the BSP driver of this module instance. The BSP typically uses this
during the generate phase depending on the generator. This command is only valid for a callback script. A
callback script is set in the driver's *_sw.tcl file, using the command set_sw_property
callback_source_file <filename>.
Example
add_module_sw_setting MY_FAVORITE_SETTING String
add_module_sw_setting
Usage
add_module_sw_setting <setting-name> <setting-type>
Options
<setting-name>: Name of the setting to persist in the BSP settings file. This is prepended with the
module name associated with this callback script
<setting-type>: Type of the setting to persist in the BSP settings file.
Description
Creates a BSP setting that is associated with a particular instance of hardware module in a SOPC system.
The set_module_sw_setting_property command is required to set the values for fields pertaining to a
BSP software setting definition. This command is only valid for a callback script. A callback script is set in
the driver's *_sw.tcl file, using the command set_sw_property callback_source_file <filename>.
Example
add_module_sw_setting MY_FAVORITE_SETTING String
add_module_systemh_line
Usage
add_module_systemh_line <macro-name> <macro-value>
Options
<macro-name>: Macro to be added to the system.h file for the generated BSP
<macro-value>: Value associated with the macro-name to be added to the system.h file for the
generated BSP
Description
This adds a system.h assignment or macro during a driver callback execution. The BSP typically uses this
during the generate phase depending on the generator. This command is only valid for a callback script. A
NII5V2
2015.05.14
add_module_sw_setting
15-93
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback