Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

3.4.6. Exporting a Tcl Script

When you have configured your BSP to your satisfaction, you can export the BSP settings as a Tcl script. This feature allows you to perform the following tasks:
  • Regenerate the BSP from the command line
  • Recreate the BSP as a starting point for a new BSP
  • Recreate the BSP on a different hardware platform
  • Examine the Tcl script to improve your understanding of Tcl command usage

The exported Tcl script captures all BSP settings that you have changed since the previous time the BSP settings file was saved. If you export a Tcl script after creating a new BSP, the script captures all nondefault settings in the BSP. If you export a Tcl script after editing a pre-existing BSP, the script captures your changes from the current editing session.

To export a Tcl script, in the File menu, click Export BSP as Tcl Script, and specify a filename and destination path. The file extension is .tcl.

You can later run your exported script as a part of creating a new BSP.
Note: If you do not know what Tcl command is connected with a particular BSP settings, create an example BSP with the required configuration. After that, you can export it and review the file to check which command is connected with the required setting.