Test_assignment_trait, Usage, Options – Altera Quartus II Scripting User Manual
Page 376: Description, Example, Test_assignment_trait –246
Advertising
3–246
Chapter 3: Tcl Packages & Commands
project
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
test_assignment_trait
Usage
test_assignment_trait -name <name> -trait <trait_name>
Options
-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
## 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."
}
Advertising