Block: Real2Int



PIC




Inports


In

Real input






Outports


Out

Integer output






Mask Parameters


Scale

Scaling factor from real to integer




Description:

Conversion block from real (floating point) datatypes to integer (fixed point) datatypes.

Out = In / Scale

Implementations:
Float32_FiP8 32 Floating Point to 8 Bit Fixed Point Implementation
Float32_FiP16 32 Floating Point to 16 Bit Fixed Point Implementation
Float32_FiP32 32 Floating Point to 32 Bit Fixed Point Implementation
Float64_FiP8 64 Floating Point to 8 Bit Fixed Point Implementation
Float64_FiP16 64 Floating Point to 16 Bit Fixed Point Implementation
Float64_FiP32 64 Floating Point to 32 Bit Fixed Point Implementation
Float32_Bool 32 Floating Point to Boolean Implementation
Float64_Bool 64 Floating Point to Boolean Implementation

Implementation: Float32_FiP8


32 Floating Point to 8 Bit Fixed Point Implementation



Inports Data Type


In

float32






Outports Data Type


Out

int8




Implementation: Float32_FiP16


32 Floating Point to 16 Bit Fixed Point Implementation



Inports Data Type


In

float32






Outports Data Type


Out

int16




Implementation: Float32_FiP32


32 Floating Point to 32 Bit Fixed Point Implementation



Inports Data Type


In

float32






Outports Data Type


Out

int32




Implementation: Float64_FiP8


64 Floating Point to 8 Bit Fixed Point Implementation



Inports Data Type


In

float64






Outports Data Type


Out

int8




Implementation: Float64_FiP16


64 Floating Point to 16 Bit Fixed Point Implementation



Inports Data Type


In

float64






Outports Data Type


Out

int16




Implementation: Float64_FiP32


64 Floating Point to 32 Bit Fixed Point Implementation



Inports Data Type


In

float64






Outports Data Type


Out

int32




Implementation: Float32_Bool


32 Floating Point to Boolean Implementation



Inports Data Type


In

float32






Outports Data Type


Out

bool




Implementation: Float64_Bool


64 Floating Point to Boolean Implementation



Inports Data Type


In

float64






Outports Data Type


Out

bool