Block: Int2Real



PIC




Inports


In

Integer input






Outports


Out

Real output






Mask Parameters


Scale

Scaling factor from integer to real




Description:

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

Out = In * Scale

Implementations:
FiP8_Float32 8 Bit Fixed Point to 32 Bit Floating Point Implementation
FiP16_Float32 16 Bit Fixed Point to 32 Bit Floating Point Implementation
FiP32_Float32 32 Bit Fixed Point to 32 Bit Floating Point Implementation
FiP8_Float64 8 Bit Fixed Point to 64 Bit Floating Point Implementation
FiP16_Float64 16 Bit Fixed Point to 64 Bit Floating Point Implementation
FiP32_Float64 32 Bit Fixed Point to 64 Bit Floating Point Implementation

Implementation: FiP8_Float32


Name FiP8_Float32
ID 192
Revision 0.1
C filename Int2Real_FiP8_Float32.c
H filename Int2Real_FiP8_Float32.h

8 Bit Fixed Point to 32 Bit Floating Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In; 
     float32       Out; 
     float32       scale; 
} INT2REAL_FIP8_FLOAT32;

Implementation: FiP16_Float32


Name FiP16_Float32
ID 193
Revision 0.1
C filename Int2Real_FiP16_Float32.c
H filename Int2Real_FiP16_Float32.h

16 Bit Fixed Point to 32 Bit Floating Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     float32       Out; 
     float32       scale; 
} INT2REAL_FIP16_FLOAT32;

Implementation: FiP32_Float32


Name FiP32_Float32
ID 194
Revision 0.1
C filename Int2Real_FiP32_Float32.c
H filename Int2Real_FiP32_Float32.h

32 Bit Fixed Point to 32 Bit Floating Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     float32       Out; 
     float32       scale; 
} INT2REAL_FIP32_FLOAT32;

Implementation: FiP8_Float64


Name FiP8_Float64
ID 195
Revision 0.1
C filename Int2Real_FiP8_Float64.c
H filename Int2Real_FiP8_Float64.h

8 Bit Fixed Point to 64 Bit Floating Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In; 
     float64       Out; 
     float64       scale; 
} INT2REAL_FIP8_FLOAT64;

Implementation: FiP16_Float64


Name FiP16_Float64
ID 196
Revision 0.1
C filename Int2Real_FiP16_Float64.c
H filename Int2Real_FiP16_Float64.h

16 Bit Fixed Point to 64 Bit Floating Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     float64       Out; 
     float64       scale; 
} INT2REAL_FIP16_FLOAT64;

Implementation: FiP32_Float64


Name FiP32_Float64
ID 197
Revision 0.1
C filename Int2Real_FiP32_Float64.c
H filename Int2Real_FiP32_Float64.h

32 Bit Fixed Point to 64 Bit Floating Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     float64       Out; 
     float64       scale; 
} INT2REAL_FIP32_FLOAT64;