get_design_info

Retrieves some basic details of your design. The result value of the command will be a string value.

 

get_design_info value

Arguments

value

Must be one of the valid string values summarized in the table below:

 

Value

Description

name

Design name. The result is set to the design name string.

family

Silicon family. The result is set to the family name.

design_path

Fully qualified path of the design file. The result is set to the location of the .adb file.  If a design has not been saved to disk, the result will be an empty string.  This command replaces the command get_design_filename.

design_folder

Directory (folder) portion of the design_path.

design_file

Filename portion of the design_path.

cwdir

Current working directory. The result is set to the location of the current working directory

die

Die name. The result is set to the name of the selected die for the design.  If no die is selected, this is an empty string.

Package

Package. The result is set to the name of the selected package for the design.  If no package is selected, this is an empty string.

Speed

Speed grade. The result is set to the speed grade for the design.  If no speed grade is selected, this is an empty string.

Supported Family

All

Exceptions

Example

The following example uses get_design_info to display the various values to the screen.

 

if { [ is_design_loaded ] } {

  puts "Design is loaded."

  set bDesignLoaded 1

} else {

  puts "No design is loaded."

  set bDesignLoaded 0

}

if { $bDesignLoaded != 0 } {

  set var [ get_design_info NAME ]

  puts "  DESIGN NAME:\t$var"

  set var [ get_design_info FAMILY ]

  puts "  FAMILY:\t$var"

  set var [ get_design_info DESIGN_PATH ]

  puts "  DESIGN PATH:\t$var"

  set var [ get_design_info DESIGN_FILE ]

  puts "  DESIGN FILE:\t$var"

  set var [ get_design_info DESIGN_FOLDER ]

  puts "  DESIGN FOLDER:\t$var"

  set var [ get_design_info CWDIR ]

  puts "  WORKING DIRECTORY:  $var"

  set var [ get_design_info DIE ]

  puts "  DIE:\t$var"

  set var [ get_design_info PACKAGE ]

  puts "  PACKAGE:\t'$var'"

  set var [ get_design_info SPEED ]

  puts "  SPEED GRADE:\t$var"

  if { [ is_design_modified ] } {

    puts "The design is modified."

  } else {

    puts "The design is unchanged"

  }

}

puts "get_design.tcl done"

See Also

get_design_filename

is_design_loaded

is_design_modified

is_design_state_complete