Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 12/13/2021

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

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