Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

15.5.3.11. get_module_sw_setting_value

Usage

get_module_sw_setting_value <setting-name>

Options

  • <setting-name> : Name of the module software setting to retrieve the value for, as defined by the add_module_sw_setting command.

Description

Given a module software setting name, return the setting value. The callback script using this command must be set in the *_sw.tcl file using the following command:

set_sw_property callback_source_file <filename>

You can use this command in a generation or validation callback to retrieve the current value of a setting created in an initialization callback.

Example

puts [get_module_sw_setting_value MY_SETTING]

Returns:

"My setting value"