Tcl_1_2015.00_SG
Tcl_1_2015.00_SG
Tcl_1_2015.00_SG
For additional reading, refer to SolvNet “Using Tcl with Synopsys Tools”,
v2014.09.
Tcl Tool Command Language
TNV Total Number of Violations
TNV Total Number of Violations
TNV Total Number of Violations
The redirect command will redirect all output, meaning intermediate output (eg. error, warning
or informational messages and the report itself) as well as the result of the command.
When there are errors during a redirect, a summary message will be printed to the screen.
pt_shell> man expr; # The expression in if statements are evaluated using expr
. . .
Operands may be specified in any of the following ways:
1. As an numeric value, either integer or floating-point.
2. As a Tcl variable, using standard $ notation. The variable's value will be
used as the operand.
3. As a string enclosed in double-quotes. The expression parser will perform
backslash, variable, and command substitutions on the information between the
quotes, and use the resulting value as the operand
4. As a string enclosed in braces. The characters between the open brace and
matching close brace will be used as the operand without any substitutions.
5. As a Tcl command enclosed in brackets. The command will be executed and
its result will be used as the operand.
6. As a mathematical function whose arguments have any of the above forms for
operands, such as sin($x). See below for a list of defined functions.
pt_shell> man info
. . .
info exists varName
Returns 1 if the variable named varName exists in the current context
(either as a global or local variable) and has been defined by being given a
value, returns 0 otherwise.
The above script is NOT representative of a recommended compile strategy. It is a
simple example to illustrate the expr command.
Available operators and functions with the expr command. More details available in the man pages.
MATH OPERATORS
- + ~ ! Unary minus, unary plus, bit-wise NOT, logical NOT
* / % Multiply, divide, remainder
+ - Add and subtract
<< >> Left and right shift
< > <= >= Boolean less, greater, less than or equal, and greater than or equal
== != Boolean equal and not equal
& | Bit-wise AND and OR
^ Bit-wise exclusive OR
&& || Logical AND and OR
x?y:z If-then-else, as in C
MATH FUNCTIONS
abs cosh log sqrt
acos double log10 srand
asin exp pow tan
atan floor rand tanh
atan2 fmod round
ceil hypot sin
cos int sinh
Defaulted arguments, if any, must be the last arguments for the procedure. If a default
is not specified, the argument is required. The following example is provided for
clarification: