Int32

signal TPT.Int32([string name])

Declares a new assessment variable of type int32 (-2^31 .. 2^31-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.Int32() leads to a new assessment variable with logical name foo

Returns:

new assessment variable

Examples:

   # create an int32 assessment variable with name "dv" and set the value to constantly 2
   dv = TPT.Int32();
   dv := 2;
   
   # create an int32 assessment variable with name "dc"
   dc = TPT.Int32();
   dc(t) := (t < 1sec) ? 13 : 17; # value changes from 13 to 17 after 1sec