21.3.55 get_tool_options
(Ask a Question)Description
This Tcl command retrieves the configured options or parameters of a tool in the Libero Design Flow. You can use it to obtain the value of a single tool option or multiple tool options.
Important: You can repeat the
                -params argument for multiple parameters.
get_tool_options -name {tool_name} -params {parameter_names}Arguments
| Parameter | Type | Description | 
|---|---|---|
| name | string | Specifies the name of tool for which you want to know the configured tool options. It is
                                mandatory. 
  | 
| params | string | Specifies the tool options/parameters for which you want to know the configured value. It is optional. It can either take single parameter or multiple parameters at a time. If omitted, all configured options/parameters are returned. | 
| Return Type | Description | 
|---|---|
| options/parameters | Returns the configured options/parameters of a tool in the Libero Design Flow. | 
Error Codes
Error Code  | Description  | 
|---|---|
None  | Required parameter 'name' is missing.  | 
None  | Parameter value does not exist.  | 
None  | Parameter 'param_name' does not exist.  | 
None  | Parameter 'param_name' is not defined. Valid command formatting is 'get_tool_options -name "tool name" [-params "[params]+"]'.  | 
Supported Families
| Supported Families | 
|---|
| PolarFire® | 
| RTG4™ | 
| SmartFusion® 2 | 
| IGLOO® 2 | 
The following table lists all the tools for which this command is applicable.
| Tool Name (Tcl) | Tool Display Name | Supported Families | 
|---|---|---|
| SYNTHESIZE | Synthesize | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| COMPILE | Compile | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| PLACEROUTE | Place and Route | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| VERIFYTIMING | Verify Timing | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| VERIFYPOWER | Verify Power | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| EXPORTNETLIST | File > Export > Netlist | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| CONFIGURE_PROG_OPTIONS | Configure Programming Options | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| SPM | Configure Security | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| PROGRAMDEVICE | Run PROGRAM Action | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| GENERATEPROGRAMMINGFILE | Generate Bitstream | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| CONFIGURE_ACTION_PROCEDURES | Configure Actions and Procedures | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| FLASH_FREEZE | Configure Flash*Freeze | SmartFusion 2, IGLOO 2 | 
| INIT_LOCK | Configure Register Lock Bits | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| IO_PROGRAMMING_STATE | Configure I/O States During JTAG Programming | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| UPDATE_ENVM | Update eNVM Memory Content | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| EXPORTSDF | Generate Back Annotated Files | SmartFusion 2, IGLOO 2, RTG4, PolarFire | 
| PROGRAM_SPI_FLASH_IMAGE | Run PROGRAM SPI_IMAGE Action | PolarFire | 
| SPM_OTP | Configure Permanent Locks for Production | PolarFire | 
Example
- The following command retrieves the value of the
                        
RETIMINGparameter for theSYNTHESIZEtool.puts [get_tool_options -name {SYNTHESIZE} -params {RETIMING}] Output: true - The following example gets the values of multiple
                    parameters.
                    
set p [get_tool_options \ -name {PLACEROUTE} \ -params {REPAIR_MIN_DELAYEFFORT_LEVEL IOREG_COMBINING}] puts "$p" Output: REPAIR_MIN_DELAY true EFFORT_LEVEL true IOREG_COMBINING false - When no parameters are given, in this case the following command returns all configured parameters of a VERIFYTIMING Libero tool. 
puts [get_tool_options -name {VERIFYTIMING}] Output: CONSTRAINTS_COVERAGE true FORMAT XML MAX_TIMING_FAST_HV_LT false MAX_TIMING_MULTI_CORNER true MAX_TIMING_SLOW_LV_HT false MAX_TIMING_SLOW_LV_LT false MAX_TIMING_VIOLATIONS_FAST_HV_LT false MAX_TIMING_VIOLATIONS_MULTI_CORNER true MAX_TIMING_VIOLATIONS_SLOW_LV_HT false MAX_TIMING_VIOLATIONS_SLOW_LV_LT false MIN_TIMING_FAST_HV_LT false MIN_TIMING_MULTI_CORNER true MIN_TIMING_SLOW_LV_HT false MIN_TIMING_SLOW_LV_LT false MIN_TIMING_VIOLATIONS_FAST_HV_LT false MIN_TIMING_VIOLATIONS_MULTI_CORNER true MIN_TIMING_VIOLATIONS_SLOW_LV_HT false MI 
