Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 10/04/2021

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

Document Table of Contents
Give Feedback 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

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

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_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: Ignored assignment: <string>. The assignment is no longer supported.
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.