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

Implementation: Float32_FiP8


Name Float32_FiP8
ID 208
Revision 0.1
C filename Real2Int_Float32_FiP8.c
H filename Real2Int_Float32_FiP8.h

32 Floating Point to 8 Bit Fixed Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

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

Implementation: Float32_FiP16


Name Float32_FiP16
ID 209
Revision 0.1
C filename Real2Int_Float32_FiP16.c
H filename Real2Int_Float32_FiP16.h

32 Floating Point to 16 Bit Fixed Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

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

Implementation: Float32_FiP32


Name Float32_FiP32
ID 210
Revision 0.1
C filename Real2Int_Float32_FiP32.c
H filename Real2Int_Float32_FiP32.h

32 Floating Point to 32 Bit Fixed Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

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

Implementation: Float64_FiP8


Name Float64_FiP8
ID 211
Revision 0.1
C filename Real2Int_Float64_FiP8.c
H filename Real2Int_Float64_FiP8.h

64 Floating Point to 8 Bit Fixed Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

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

Implementation: Float64_FiP16


Name Float64_FiP16
ID 212
Revision 0.1
C filename Real2Int_Float64_FiP16.c
H filename Real2Int_Float64_FiP16.h

64 Floating Point to 16 Bit Fixed Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

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

Implementation: Float64_FiP32


Name Float64_FiP32
ID 213
Revision 0.1
C filename Real2Int_Float64_FiP32.c
H filename Real2Int_Float64_FiP32.h

64 Floating Point to 32 Bit Fixed Point Implementation



Controller Parameters


scale

Scaling factor




Data Structure:

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