Converts a signal of any type to an integer. If i0 is boolean, then the resulting signal o will be 0 or 1. If i0 is real, then the fractional part will be truncated. Hence, 2.8 will be converted to 2, while -2.8 will be converted to -2. Integers are 32-bit signed integers in the simulator, while it is dependent on the target language in the code generator.
Primitive\Types\Int
Name | Type | Description |
---|---|---|
i0 | any | The signal to convert. |
Name | Type | Description |
---|---|---|
o | int | The resulting integer signal. |