5.8.11 Project Manager Tcl Command Reference

A Tcl (Tool Command Language) file contains scripts for simple or complex tasks. You can run scripts from either the Windows or UNIX command line or store and run a series of Tcl commands in a *.tcl batch file. You can also run scripts from within the GUI in Project Manager.

Tcl commands are case sensitive. However, their arguments are not. The Libero IDE Project Manager supports the following Tcl scripting commands:

Table 5-14. Tcl Commands and Actions

Command

Action

add_file_to_library

Adds a file to a library in your project

add_library

Adds a VHDL library to your project

add_modelsim_path

Adds a ModelSim simulation library to your project

add_profile

Adds a profile; sets the same values as the Add or Edit Profile dialog box

associate_stimulus

Associates a stimulus file in your project

change_link_source

Changes the source of a linked file in your project

check_hdl

Checks the HDL in the specified file

Table 5-15. Tcl Commands and Actions

Command

Action

check_schematic

Checks the schematic

close_project

Closes the current project in Libero IDE

create_links

Creates a link (or links) to a file/files in your project

create_symbol

Creates a symbol in a module

delete_files

Deletes files from your Libero IDE project

edit_profile

Edits a profile; sets the same values as the Add or Edit Profile dialog box

export_as_link

Exports a file to another directory and links to the file

export_io_constraints_from_adb

Exports the I/O constraints from your project ADB file to an output file

export_profiles

Exports your tool profiles; performs the same action as the Export Profiles dialog box

generate_ba_files

Generates the back-annotate files for your design

generate_hdl_from_schematic

Generates an HDL file from your schematic

generate_hdl_netlist

Generates the HDL netlist for your design and runs the design rule check

import_files (Libero IDE)

Imports files into your Libero IDE project

new_project

Creates a new project in the Libero IDE

open_project

Opens an existing Libero IDE project

organize_cdbs

Organizes the CDB files in your project

organize_constraints

Organizes the constraint files in your project

organize_sources

Organizes the source files in your project

project_settings

Modifies project flow settings for your Libero IDE project

Table 5-16. Tcl Commands and Actions

Command

Action

remove_core

Removes a core from your project

remove_library

Removes a VHDL library from your project

remove_profile

Deletes a tool profile

rename_library

Renames a VHDL library in your project

rollback_constraints_from_adb

Opens the ADB file, exports the PDC file, and then replaces it with the specified PDC file

run_designer

Runs Designer with compile and layout options (if selected)

run_drc

Runs the design rule check on your netlist and generates an HDL file

run_simulation

Runs simulation on your project with your default simulation tool and creates a logfile

run_synthesis

Runs synthesis on your project and creates a logfile

save_log

Saves your Libero IDE log file

save_project

Saves your project

save_project_as

Saves your project with a different name

select_profile

Selects a profile to use in your project

set_actel_lib_options

Sets your simulation library to default, or to another library

set_device (Project Manager)

Sets your device family, die, and package in the Project Manager

set_modelsim_options

Sets your ModelSim simulation options

set_option

Sets your synthesis options on a module

set_userlib_options

Sets your user library options during simulation

set_root

Sets the module you specify as the root

Table 5-17. Tcl Commands and Actions

Command

Action

synplify

Runs Synplify in batch mode and executes a Tcl script.

synplify_pro

Runs Synplify Pro in batch mode and executes a Tcl script.

unlink

Removes a link to a file in your project

use_file

Specifies which file in your project to use

use_source_file

Defines a module for your project