Code File Location: VisualSim/simulators/sdf/lib/BitsToInt
This actor converts a sequence of BooleanTokens into a single IntToken. The number of Boolean tokens is specified by the numberOfBits parameter and should be a positive integer not larger than 32. Let k denotes the value of the numberOfBits parameter. The output integer is ranged from -2k to 2k - 1. The first boolean token received indicates the sign of the integer. If it is "false", the output integer is a non-negative number. If it is "true", the output integer is a negative number. The least significant bit is the last boolean token received.
public VisualSim.data.expr.Parameter numberOfBits
Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease