beautypg.com

3 multimebyint(), 4 divtimebyint() – Teledyne LeCroy SierraFC Verification Script Engine Reference Manual User Manual

Page 36

background image

Verification Script Engine Reference Manual

31

13.3 MulTimeByInt()

Multiplies VSE time object by integer value


Format :

MulTimeByInt (time, mult)


Return values:

Returns VSE time object presenting time interval equal to time * mult


Parameters:

time - VSE time object
mult - multiplier, integer value

Example:

t = Time(2, 200);

t1 = MulTimeByInt ( t, 2 ) # - returns VSE time object = 4 sec 400 ns.





13.4 DivTimeByInt()

Divides VSE time object by integer value


Format :

DivTimeByInt (time, div)


Return values:

Returns VSE time object presenting time interval equal to time / div


Parameters:

time - VSE time object
div - divider, integer value

Example:

t = Time(2, 200);

t1 = DivTimeByInt ( t, 2 ) # - returns VSE time object = 1 sec 100 ns.