Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

16.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"