test_assignment_trait (::quartus::project)

The following table displays information for the test_assignment_trait Tcl command:

Tcl Package and Version

Belongs to ::quartus::project 4.0

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: Assigment <string> is not supported in this edition of the Quartus Prime software.
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.