Block: uSub



PIC




Inports


Plus

Minuend



Minus

Subtrahend






Outports


Out

Difference




Description:

Subtraction of input Minus from input Plus with output wrapping.

Calculation:

Out  =   Plus - Minus

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 5008
Revision 0.1
C filename uSub_FiP8.c
H filename uSub_FiP8.h

8 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *Plus; 
     int8          *Minus; 
     int8          Out; 
} USUB_FIP8;

Implementation: FiP16


Name FiP16
ID 5009
Revision 0.1
C filename uSub_FiP16.c
H filename uSub_FiP16.h

16 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *Plus; 
     int16         *Minus; 
     int16         Out; 
} USUB_FIP16;

Implementation: FiP32


Name FiP32
ID 5010
Revision 0.1
C filename uSub_FiP32.c
H filename uSub_FiP32.h

32 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *Plus; 
     int32         *Minus; 
     int32         Out; 
} USUB_FIP32;

Implementation: Float32


Name Float32
ID 5011
Revision 0.1
C filename uSub_Float32.c
H filename uSub_Float32.h

32 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float32       *Plus; 
     float32       *Minus; 
     float32       Out; 
} USUB_FLOAT32;

Implementation: Float64


Name Float64
ID 5012
Revision 0.1
C filename uSub_Float64.c
H filename uSub_Float64.h

64 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float64       *Plus; 
     float64       *Minus; 
     float64       Out; 
} USUB_FLOAT64;