Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 9/26/2022
Public

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

Document Table of Contents

4.1.29.48. test_assignment_trait (::quartus::project_ui)

The following table displays information for the test_assignment_trait Tcl command:

Tcl Package and Version

Belongs to ::quartus::project_ui

Syntax test_assignment_trait [-h | -help] [-long_help] -name <name> -trait <trait_name>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-name <name> Assignment name
-trait <trait_name> Trait name
Description
Checks whether the assignment name has the specified trait.
Returns 1, if the assignment name has the trait;
returns 0, otherwise.
Example Usage
## Test if the assignment name is case-sensitive
if {[test_assignment_trait -name VHDL_FILE -trait CASE_SENSITIVE]} {
	puts "VHDL_FILE assignment is case-sensitive."
} else {
	puts "VHDL_FILE assignment is not case-sensitive."
}
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_OK 0 INFO: Ignored assignment: <string>. The assignment is no longer supported.
TCL_ERROR 1 ERROR: Value <string> for the -<string> option is illegal. Specify a legal value.
TCL_ERROR 1 ERROR: Options cannot be specified together: -<string>, -<string> and -<string>. Specify only one or two of the three options.
TCL_ERROR 1 ERROR: Illegal assignment name: <string>. Specify a legal assignment name. To view the list of legal assignment names, run get_all_assignment_names.
TCL_ERROR 1 ERROR: Illegal trait: <string>. Specify a legal trait name.