Nios® V Processor Software Developer Handbook

ID 743810
Date 10/31/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

12.5.3.1. add_class_sw_setting

Usage

add_class_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 driver class 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 software driver element class. The set_class_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_class_sw_setting MY_FAVORITE_SETTING String