Block: Negation



PIC




Inports


In

Input






Outports


Out

Negated input value




Description:

Negation of input signal.

Calculation:

Out   =  - In

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: FiP8


Name FiP8
ID 5040
Revision 0.1
C filename Negation_FiP8.c
H filename Negation_FiP8.h

8 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In; 
     int8          Out; 
} NEGATION_FIP8;

Implementation: FiP16


Name FiP16
ID 5041
Revision 0.1
C filename Negation_FiP16.c
H filename Negation_FiP16.h

16 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     int16         Out; 
} NEGATION_FIP16;

Implementation: FiP32


Name FiP32
ID 5042
Revision 0.1
C filename Negation_FiP32.c
H filename Negation_FiP32.h

32 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     int32         Out; 
} NEGATION_FIP32;

Implementation: Float32


Name Float32
ID 5043
Revision 0.1
C filename Negation_Float32.c
H filename Negation_Float32.h

32 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float32       *In; 
     float32       Out; 
} NEGATION_FLOAT32;

Implementation: Float64


Name Float64
ID 5044
Revision 0.1
C filename Negation_Float64.c
H filename Negation_Float64.h

64 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float64       *In; 
     float64       Out; 
} NEGATION_FLOAT64;