Int16
signal TPT.Int16([string name])
Declares a new assessment variable of type int16 (-2^15 .. 2^15-1).
Parameters:
[name]
(optional)
logical name of the new assessment variable. This parameter is optional. If
not specified, the name will be automatically derived from the variable name it is
assigned to. Example foo = TPT.Int16()
leads to a new
assessment variable with logical name foo
Returns:
new assessment variable
Examples:
# create an int16 assessment variable with name "dv" and set the value to constantly 2 dv = TPT.Int16(); dv := 2; # create an int16 assessment variable with name "dc" dc = TPT.Int16(); dc(t) := (t < 1sec) ? 13 : 17; # value changes from 13 to 17 after 1sec